Pivoting
Introduction
Ping Sweep
for /l %i in (1,1,254) do @ping -n 1 -w 100 X.X.X.%i | find "Reply"for i in {1..254} ;do (ping -c 1 X.X.X.$i | grep "bytes from" &) ;donePort Scanning
1..65536 | % {echo ((new-object Net.Sockets.TcpClient).Connect(“X.X.X.X”,$_)) “Port $_ is open!”} 2>$null#!/bin/bash
temp=$(mktemp -t PortScan_XXXXXX)
for port in $(seq 1 65535); do
timeout 2 bash -c "2>/dev/null echo '' > /dev/tcp/$1/$port " && echo "[*] Port $port - OPEN" | tee -a $temp &
done; wait
echo "Results stored at $temp"Tools
Last updated