I came across a python program that was able to scan your network and tell you the hosts that are connected to it and / or kick unwanted users off your own network. It works well, but I'm not too familiar with Python syntax. I was just wondering if anyone with Python and Bash experience could tell me how to make something similar to the first part (Finding hosts on network and display them in a list) like this program does.

Link to Program Overview (Github):


Link to the Python Program Code (Github):


closed as too broad by Wildcard, Michael Homer, Jeff Schaller, Stephen Rauch, Satō Katsura Jul 11 '17 at 3:46

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 487 lines of code and you are just asking "how it works"? – Wildcard Jul 10 '17 at 22:13
  • Then link to that part, or excerpt it here. – Wildcard Jul 10 '17 at 22:28

Someone already said how to implement this on shell script ( and perl ) on superuser:

Superuser Version

And i found on github a full shell script version:

Github Bash version

Not the answer you're looking for? Browse other questions tagged or ask your own question.