Mobile app version of vmapp.org
Login or Join
Sims2060225

: Find "secret" port number this may be kind of an odd question. My friend has challenged me. So somehow, he change the "port" of his site to 31337. If you just go to domain.com, you get redirected

@Sims2060225

Posted in: #WebHosting

this may be kind of an odd question. My friend has challenged me. So somehow, he change the "port" of his site to 31337. If you just go to domain.com, you get redirected to google, to access the real site you go to domain.com:31337. He is going to change it again and he is challenging me to find out which port it is. Is this possible without guessing? Hopefully someone can help! Thanks. Oh, and is this the right stack exchange site to post this on...

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims2060225

3 Comments

Sorted by latest first Latest Oldest Best

 

@Pierce454

You can use any port scanner - nmap being one of the most common.

Since this is your friend's machine and its a challenge, a full connect scan should not be a problem. A full connect will not only find the ports that are open but will also find the services/applications listening on it.

I just did a quick nmap scan from on my own linux box and in the output below you can see it detects the open ports, the service they are running and the application behind it. It shows that I am running webservers (http service) on 80 and 3000 which should be accessible on localhost:80 (same as localhost) and localhost:3000
The command I used is :


nmap -v -sV -T4 -F 127.0.0.1


If you are on windows and want a nice GUI version of nmap, install zenmap

10% popularity Vote Up Vote Down


 

@Annie201

Use nmap to port scan you can perform all types of scans some without being detected. If the port is open you'll find it there's no way to hide an open port.

10% popularity Vote Up Vote Down


 

@Ravi8258870

This is such a vast topic (yes, for doing a simple task, many many methods). It would be impossible for me to say anything but this: You are looking for a port scanner. It can be written in any language under the sun, from PHP to C to Perl, Delphi, Python, whatever. You can run it from your local computer (executable) or from a website (remotely).

Now be warned: some firewalls will detect your scans, and maybe blacklist your IP for (example, Project Honeypot). This could land you in some nasty places. So use this only for your friend's game.

Basically how it works though, is your script or program will send a few packets (of varying species) to essentially every port from 0-65535 on the remote host. A stealth scan only sends partial packets, just enough to register that the host is 'listening' on that port, so that it can evade some firewalls or be (less) traceable.

I advise you take a read: en.wikipedia.org/wiki/Port_scanner

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme