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

The low & high range of ports in scanner.py is hardcoded #1

Open
vinitshahdeo opened this issue Jun 4, 2020 · 6 comments
Open

The low & high range of ports in scanner.py is hardcoded #1

vinitshahdeo opened this issue Jun 4, 2020 · 6 comments

Comments

@vinitshahdeo
Copy link
Owner

Reading config.json and using range.low and range.high in scanner.py


The range for ports shouldn't be hardcoded. It should be ideally fetched from config.json as it's being used in server/index.js.

for port in range(1,8888):  
        sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        result = sock.connect_ex((remoteServerIP, port))
        if result == 0:
            print "Port {}: 	 Open".format(port)
        sock.close()
@TaniaMalhotra
Copy link

Hii
I have opened a PR for the same

@vinitshahdeo
Copy link
Owner Author

Thanks @TaniaMalhotra, will have a look into this. 👍

@tinovasq
Copy link

tinovasq commented Jun 7, 2020

Hello! I noticed that someone already solved this issue, but I wanted to go ahead and throw in my own since I didn't see the PR until I was finished with it. I also updated the necessary syntax to work in py3.8

@vinitshahdeo
Copy link
Owner Author

@tinovasq That's great. 👏 Will have look into this.

@vinitshahdeo
Copy link
Owner Author

@TaniaMalhotra Check Water Monitoring System. See if you can find something interesting there.

This was referenced Jun 9, 2020
vinitshahdeo added a commit that referenced this issue Jun 12, 2020
Solves issue #1 and modernizes for Python 3.8
@vinitshahdeo vinitshahdeo added this to Done in Network Scanner Jun 13, 2020
Kashish121 pushed a commit that referenced this issue Sep 1, 2020
@subhangi2731
Copy link

can you please assign it to me?

vinitshahdeo pushed a commit that referenced this issue Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants