■■■□□ Often used for hHTB machines for a complete port scan.
ports=$(nmap -p- –min-rate=1000 -T4 {Target_IP} | grep ^[0-9] | cut -d ‘/’ -f 1 | tr ‘\n’ ‘,’ | sed s/,$//)
nmap -sC -sV -p$ports -sT {Target_IP}
Source: Twitter | KathanP19
https://t.me/cKure/9103