Unable to connect to any machines

I successfully established my connection with openvpn and tried to ‘nmap’ the ip address provided in the ‘Starting Point’ thread. Unfortunately I’m receiving this particular error:

kali@kali:~/pri$ ports=$(nmap -p- --min-rate=1000 -T4 10.10.10.27 | grep [1] | cut -d ‘/’ -f 1 | tr ‘\n’ ‘,’ | sed s/,$//)
kali@kali:~/pri$ nmap -sC -sV -p$ports 10.10.10.27
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-28 13:16 EDT
Error #487: Your port specifications are illegal. Example of proper form: “-100,200-1024,T:3000-4000,U:60000-”
QUITTING!

Please help.


  1. 0-9 ↩︎

add a space -p$ports -p $ports

Type your comment> @peek said:

add a space -p$ports -p $ports

Thank you for your prompt reply.

Unfortunately it is still not working for me. I’m still receiving the same error.

there is another thread about it