[python]Multithreading to scan for port status

Background I have noticed that previously my script is a one to one, meaning the scripts I wrote do specific things to a single target, this will be very impractical if the targets are more than one and requires to do the same function. Hence I am exploring into threading. Threading My first use of … Continue reading [python]Multithreading to scan for port status

Advertisements

[python]connect_ex() from socket library

I am about to write my own portscanner instead of using the python-nmap. The built-in python socket library has this connect_ex() function, from the documentation it says connect_ex() returns 0 if the operation is successful otherwise will return a value to errno variable. What this means is if the connection is successful the method connect_ex() … Continue reading [python]connect_ex() from socket library