Jump to:
scripts
- list of scripts that can be usefull in some situations
- python script that pings all addresses on the given subnet
- can be very slow depending on your subnet size..
- Just a bunch of information, open for anyone to add something, but I do moderate to some degree.
- If you believe that any content posted here infringes upon your rights, please contact me to request removal.
- Add something to the pile:
- Dumped data:
fix permission issues in PowerShell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Monitor & Display SSID's in PowerShell
# Function to continuously monitor and display SSIDs function Monitor-SSIDs { while ($true) { Clear-Host Write-Host "Scanning for SSIDs..." # Run the netsh command to list available SSIDs $ssidList = netsh wlan show networks | Select-String -Pattern '^SSID \d+ : (.+)$' | ForEach-Object { $_.Matches.Groups[1].Value } # Output the list of SSIDs $ssidList Start-Sleep -Seconds 5 # Adjust the refresh interval as needed } } # Start monitoring SSIDs Monitor-SSIDs
pingsweep.py
import ipaddress import subprocess # ANSI escape codes for colors GREEN = '\033[92m' RED = '\033[91m' RESET = '\033[0m' # Function to ping an IP address def ping_ip(ip): try: output = subprocess.check_output(['ping', '-n', '1', str(ip)], stderr=subprocess.STDOUT, universal_newlines=True) if "TTL=" in output: return True except subprocess.CalledProcessError: return False return False def main(): # Get network address and subnet from user network = input("Enter network address (e.g., 192.168.1.0/24): ") net = ipaddress.ip_network(network, strict=False) # List to store all the IPs that are up up_hosts = [] # Ping each IP in the subnet for ip in net.hosts(): if ping_ip(ip): # Store IPs that are up up_hosts.append(str(ip)) # Green output for "up" hosts print(f"{GREEN}{ip} is up{RESET}") else: # Red output for "down" hosts print(f"{RED}{ip} is down{RESET}") # Summarize and print all up IPs print("\nSummary of IPs that are up:") if up_hosts: for up_ip in up_hosts: print(f"{GREEN}{up_ip} is up{RESET}") else: print(f"{RED}No hosts are up in this subnet.{RESET}") if __name__ == "__main__": main()
empty box...
There's nothing here yet :(
infodump