Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCADA TYPE ERROR #7

Closed
miguelob opened this issue Sep 18, 2022 · 3 comments
Closed

SCADA TYPE ERROR #7

miguelob opened this issue Sep 18, 2022 · 3 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@miguelob
Copy link
Owner

hi @miguelob , thanks for the quick help, now it's working and I get into the menu.
Maybe I haven't understood the project correctly… I thought it's (also) meant to emulate ICS, e.g. a SCADA and S7 things, kind of like Snap7 or Bevywise do.
Trying to start the SCADA Lab I think I encountered a type error:

==========================

       ICS-Hacking

==========================
® by Miguel Oleo Blanco


1 -- S7Comm
2 -- S7Comm-plus
3 -- SCADA
4 -- Profinet & Profibus
5 -- Exit
Enter your choice: 3
Please, type in the destination IP: 192.168.1.10
Please, type in the RACK (DEFAULT IS 0): 0
Please, type in the the SLOT (DEFAULT IS 1): 1
Traceback (most recent call last):
  File "main.py", line 135, in <module>
    plc.connect(IP,RACK,SLOT)   #Connects to the client
  File "/home/tobjasr/.local/lib/python3.8/site-packages/snap7/client.py", line 25, in f
    code = func(*args, **kw)
  File "/home/tobjasr/.local/lib/python3.8/site-packages/snap7/client.py", line 197, in connect
    c_int(rack), c_int(slot))
TypeError: an integer is required (got type str)

Originally posted by @TobjasR in #6 (comment)

@miguelob
Copy link
Owner Author

I'll be working on a solution this week and I'll post whenever it is fixed with the commit version and the new release.

@miguelob
Copy link
Owner Author

Hi @TobjasR a new commit was released. Try and check it out and see if it fix the issue. A new release package is not launched so you might get the new version from the packet folder in the repo.

@miguelob miguelob self-assigned this Oct 10, 2022
@miguelob miguelob added the bug Something isn't working label Oct 10, 2022
@miguelob miguelob added this to the TEST milestone Oct 10, 2022
@miguelob miguelob added the help wanted Extra attention is needed label Oct 10, 2022
@miguelob miguelob pinned this issue Oct 10, 2022
@miguelob
Copy link
Owner Author

solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant