Code: Select all
for i in `seq 1024` ; do (echo >/dev/tcp/localhost/$i) &>/dev/null && echo "TCP port $i open" || echo "TCP port $i close"; done | grep open
TCP port 25 open
TCP port 111 open
TCP port 199 open
TCP port 631 open
Code: Select all
for i in `seq 1024` ; do (echo >/dev/tcp/localhost/$i) &>/dev/null && echo "TCP port $i open" || echo "TCP port $i close"; done | grep open
Code: Select all
for i in `seq 1024` ; do (echo >/dev/tcp/localhost/$i) &>/dev/null && echo "TCP port $i open"; done
Code: Select all
sudo lsof -i | grep LISTEN
sudo netstat -lptu | grep LISTEN
sudo nmap localhost | grep open
I think that's why I liked this snippet, it doesn't need root|sudo privs to run.xenopeek wrote:&& echo "TCP port $i open" || echo "TCP port $i close";[/code]
If your talking programming languages pick up java and help me outHabitual wrote:I better not be alone, else I'll have to pick up another language.
I was joking (although I do have one question for a android java issue I am having but this isn't the place for that) but hey this might not be a bad idea for a forum one section for java one for C one for C++ one for x86 one dedicated for making linux software only etc, sure there is a few hundred out there already just haven't looked into them allSpec-chum wrote:+1 for java and c/c++.
I could even help people learn x86 asm if they're feeling adventurous