#Windows network sniffer
1 messages · Page 1 of 1 (latest)
nice, do it shows the packet sends as well?
na i haven't added that yet
but i might later on
Pretty nice though your code can definitely get some improving. I like the design quite a lot though!
as the OP didn't post the Github link to the project here it is: https://github.com/WhoGiveAShit/Naughty-Network-Sniffer
Judging by the code it wouldn't be hard to make a Linux port. Also, I'd simplify some of your if statements. For example
if "*" in IP:
pass
if "[" in IP:
pass
elif "0.0.0.0" in IP:
pass
elif "127.0.0.1" in IP:
pass
elif "192.168.0.1" in IP:
pass
```You could just do
```python
if any(i in ["*", "[", "0.0.0.0", "127.0.0.1", "127.0.0.1"] for i in IP):
pass
yeah i will get around to cleaning code up
and i will also test it out on linux but it should work on there anyway
netstat isn't a Linux command, but there are alternatives which are very similar
Or rather at least it's not installed by default, pretty sure you can install it though
yh you can
link to download
found it mb