port scanning wihtout a port scanner
Booya.
For older bash versions
for i in $(seq 1 1 1024);
do
echo > /dev/tcp/10.10.10.10/$i;
[ $? == 0 ] && echo $i >>/tmp/open.txt;
done
Same thing, newer bash versions
for i in {1..1024};
do
echo > /dev/tcp/10.10.10.10/$i;
[ $? == 0 ] && echo $i >>/tmp/open.txt;
done