[python]Multiprocess and multithreading for port scan version 3

Background This is an upgrade scripts to check for open ports on every addresses found in subnets. The upgrade uses Processpoolexecutor, a minor re-write uses the processpoolexecutor and theadpoolexecutor together. network_discovery.py - obtains directly connected subnets scanner.py This script does the port scanning based on the subnets obtained from network_discovery.py. start_now.py - main script to … Continue reading [python]Multiprocess and multithreading for port scan version 3

[python]Multithreading to scan for port status version 2

Background this is a follow up of this post, on that previous post, threading printed the results however i had problems with getting the returned value from the function which the thread was running, lama4ok suggested in his comment to use concurrent.futures, well his suggestion does work, so now I can get the actual returned … Continue reading [python]Multithreading to scan for port status version 2

[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

[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

[python]Automated process to look for hosts that are vulnerable to eternalblue

Disclaimer This code is meant for educational purpose only, you should be well aware that you must not in any case use the code to scan for vulnerable host in production, to test the code, please load in your VM and use host-only network interface to test and learn in a safe environment. All credits … Continue reading [python]Automated process to look for hosts that are vulnerable to eternalblue