Starting Point

Hi, im new and i have a problem.
Im run the nmap command and it says “Error #487: Your port specifications are illegal. Example of proper form: “-100,200-1024,T:3000-4000,U:60000-”
QUITTING!”
What im doing wrong?

Type your comment> @erkkiretu said:

Hi, im new and i have a problem.
Im run the nmap command and it says “Error #487: Your port specifications are illegal. Example of proper form: “-100,200-1024,T:3000-4000,U:60000-”
QUITTING!”
What im doing wrong?

what are you typeing

nmap -sC -sV -p$ports 10.10.10.27

Type your comment> @erkkiretu said:

nmap -sC -sV -p$ports 10.10.10.27

just get rid of -p$ports. I’ve noticed the tutorials kinda suck a little bit. They point you in the right direction but there very vague and leave you wanting more

Do i need to use to write -Pn to the command?

Because it says that host seems to be down

can you ping it?

that’s reply what i got : PING 10.10.10.27 (10.10.10.27) 56(84) bytes of data.

I’ve noticed if you dont type out

ports=$(nmap -p- --min-rate=1000 -T4 10.10.10.27 | grep [1] | cut -d ‘/’ -f 1 | tr ‘\n’ ‘,’ | sed s/,$//)

It will not run the base nmap scan.

Hope this helps.


  1. 0-9 ↩︎