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
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
So here's the simple code: So first create an object client, the attributes are IPV4 (socket.AF_INET) and tcp (socket.SOCK_STREAM). Use the send method to send http request, must send the msg in bytes, hence the b.