[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

Advertisements

[python]Auto discover your laptop’s interface ip address belongs to which subnet

The use case for this is I want to create an automated pentest when my laptop is connected to the network. When my laptop connects to a network, the directed connected network is scanned for host running on which ports, then the ports are evaluated to check if it is vulnerable to EternalBlue, if it … Continue reading [python]Auto discover your laptop’s interface ip address belongs to which subnet

[python]Extension to validate ip address

On previous post I have written a sample code to validate ip address using the ipaddress module. The sample code is further extended to check for subnets. Algorithm 1. Get user's ip_address. 2. IF ip_address does not have '/' or ip_address has '/32' THEN use ipaddress.ip_address() ELSE use ipaddress.ip_network() THEN tell user the ip address … Continue reading [python]Extension to validate ip address