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

IP scanning feature added. #23

Merged
merged 8 commits into from
Jun 13, 2020
Merged

IP scanning feature added. #23

merged 8 commits into from
Jun 13, 2020

Conversation

Kashish121
Copy link
Collaborator

  1. src/ipscanner.py feature added.
  2. Linting issue has been taken care of.
  3. Reading ip ranges from config.json.
  4. Multithreading used src/multi/scanner_thread.py.
  5. Resolves [New Feature][Network Scanner] Add a feature for scanning IPs #11 .

Getting a small issue due to multithreading. Please review.

@vinitshahdeo vinitshahdeo self-requested a review June 13, 2020 18:35
@vinitshahdeo vinitshahdeo changed the base branch from master to develop June 13, 2020 18:35
Copy link
Owner

@vinitshahdeo vinitshahdeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @Kashish121!
Added few comments, please have a look into this.

@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Users\\kashi\\.windows-build-tools\\python27\\python.exe"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore .vscode configurations.
@Kashish121 Add .vscode to .gitignore.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kashish121 Delete settings.json. The local settings shouldn't be pushed to the GitHub.

config.json Outdated
@@ -3,10 +3,12 @@
"low": "1",
"high": "8888"
},

"iprange": {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kashish121 - ipRange - follow the camel case for this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please clarify 'IPRange' or 'IpRange'?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IPRange

IpRange

ipRange ✔️

src/ipscanner.py Outdated Show resolved Hide resolved
src/ipscanner.py Outdated
for ip in xrange(range_low, range_high):
addr = net3+str(ip)
if (scan(addr)):
print addr + " this address is live\n"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this will read like - 192.0.0.1 this address is live
@Kashish121 It should better be 192.0.0.1 is live

src/ipscanner.py Show resolved Hide resolved
src/ipscanner.py Show resolved Hide resolved
@vinitshahdeo
Copy link
Owner

@ishika1727 Please pull @Kashish121's branch and test the functionality locally.

@ishika1727
Copy link
Collaborator

@Kashish121 ipscanner.py prints the same IP address more than one time. Please resolve the issue.

image

src/ipscanner.py Outdated
# Calculates the difference of time, to see how long it took to run the script
total = td2-td1
# Printing the information to screen
print "scanning completed in ", total
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kashish121 Capitalize the first letter.

@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Users\\kashi\\.windows-build-tools\\python27\\python.exe"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kashish121 Delete settings.json. The local settings shouldn't be pushed to the GitHub.

@vinitshahdeo vinitshahdeo changed the title IPscanning feature added. IP scanning feature added. Jun 13, 2020
Copy link
Owner

@vinitshahdeo vinitshahdeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kashish121 Great job! 👏

✅ from my end. I'll figure out a better way to test this. Allow me sometime.

@ishika1727 Try running once again, hopefully everything should work as expected.

PS: Will merge after @ishika1727 approves!

@vinitshahdeo
Copy link
Owner

@Kashish121 Make your PR ready to master from develop! ✌️

Copy link
Collaborator

@ishika1727 ishika1727 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on my system!

@vinitshahdeo vinitshahdeo merged commit 3020c65 into vinitshahdeo:develop Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Feature][Network Scanner] Add a feature for scanning IPs
3 participants