![]() |
|
[Python] python scanner source code - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] python scanner source code (/showthread.php?tid=5321256) |
python scanner source code - Dcom_3xp1oit - Jun 28, 2016 Hi, I try to change the code found, for it then run a scan ip ranks while checking the predefined ports in the code is open, if open port on an IP address during the scan, save to a file IP txt Code #!/usr/bin/env python* - Goodies - Jun 28, 2016 You're spawning a new process for each scan? Good lord... a TCP syn request is very cheap in terms of CPU usage. Incredibly cheap. The vast majority of the time is spent waiting for the response. For this reason you should not be using processes or threads. Especially not threads. You should be using asynchronous programming. * - IhabZ - Jun 29, 2016 thanks for sharing bro :D ! * - dreadpixel - Jul 8, 2016 Thanks for this educational post |