Hack Forums
scanning for open ports - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: scanning for open ports (/showthread.php?tid=6278453)

Pages: Pages 1 2


scanning for open ports - unhappyhacker - Aug 24, 2024

I have read about people scanning the internet looking for open ports. What scanner program does this. The only scanner i have seen you have to know the IP to scan it. But just generally scanning for open ports? What software? Please note I have no intention of tryng to exploit any open ports. i want to learn how they scan the internet without knowing the IP


RE: scanning for open ports - Mercury - Aug 24, 2024

You need NMAP. There is loads of information and tutorials out there. I'd start with this article:

https://nmap.org/book/man-target-specification.html


RE: scanning for open ports - DramaKing - Aug 24, 2024

(Aug 24, 2024 04:47 PM)unhappyhacker Wrote:  I have read about people scanning the internet looking for open ports. What scanner program does this. The only scanner i have seen you have to know the IP to scan it. But just generally scanning for open ports? What software? Please note I have no intention of tryng to exploit any open ports. i want to learn how they scan the internet without knowing the IP

IP addresses are required to communicate with any device on a network. You can perform host detection to find alive hosts prior to port scanning. Just don't try scanning IPv6 addresses.


RE: scanning for open ports - Scrubspoof - Aug 24, 2024

(Aug 24, 2024 06:44 PM)DramaKing Wrote:  IP addresses are required to communicate with any device on a network. You can perform host detection to find alive hosts prior to port scanning. Just don't try scanning IPv6 addresses.

Nmap has supported IPv6 since 2002.


RE: scanning for open ports - DramaKing - Aug 24, 2024

(Aug 24, 2024 07:34 PM)Scrubspoof Wrote:  Nmap has supported IPv6 since 2002.

Of course Nmap supports IPv6, it would just be foolhardy to try to detect live hosts using IPv6.


RE: scanning for open ports - Bastille - Aug 24, 2024

As said above nmap is a great tool however it requires additional knowledge related to networking :
- IP versions (IPv4 and IPv6)
- Ports (number, role, services)
- Firewalling
- Control flags (SYN, ACK, RST, ...)
- Stealth scan
- Script scans

I highly recommend you the following :
- Don't try on networks you don't own, try on your own machines / network
- Read the manual to understand what to do
- There are some exercises on websites such as tryhackme.com

Be aware that there is also a graphic version called Zenmap, because nmap is a command line tool


RE: scanning for open ports - BlackSoulZN5006 - Aug 25, 2024

NMAP and as well as Nikto.


RE: scanning for open ports - SuNgO - Aug 26, 2024

Definitely NMAP, that's what you need!


RE: scanning for open ports - unhappyhacker - Aug 27, 2024

I can't get NMAP to work. First it says KB4474419 is missing but it is not. I then go on and it says it's installed but it won't work. When I try to open it I get


pythonw.exe - System Error
---------------------------
The program can't start because api-ms-win-core-path-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.
---------------------------

I have reinstalled it theree times


RE: scanning for open ports - DramaKing - Aug 27, 2024

(Aug 27, 2024 03:52 AM)unhappyhacker Wrote:  I can't get NMAP to work. First it says KB4474419 is missing but it is not. I then go on and it says it's installed but it won't work. When I try to open it I get


pythonw.exe - System Error
---------------------------
The program can't start because api-ms-win-core-path-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem.
---------------------------

I have reinstalled it theree times

What version of Windows? If it's v. 10 or 11, you should have no problem.


RE: scanning for open ports - unhappyhacker - Aug 27, 2024

(Aug 27, 2024 05:51 AM)DramaKing Wrote:  What version of Windows? If it's v. 10 or 11, you should have no problem.

Win 7 64 bit


RE: scanning for open ports - DramaKing - Aug 27, 2024

(Aug 27, 2024 06:14 AM)unhappyhacker Wrote:  Win 7 64 bit

I won't rag on you for not upgrading, presumably you have reasons, even though the system requirements for 10 aren't any beefier than 7. It is terrible for your OpSec and general security, though. Software compatibility is becoming increasingly bad.

Nmap does currently support Windows 7, hmm.

EDIT: I'm going to say that the current Nmap uses Python 3, which I can certainly tell you fails to run on Win7. The Nmap team probably needs to update the compatibility list. I found a hacky workaround here: https://github.com/nalexandru/api-ms-win-core-path-HACK. Your other options are to run an older version of Nmap or use masscan, Angry IP Scanner, or MegaPing.


RE: scanning for open ports - unhappyhacker - Aug 27, 2024

(Aug 27, 2024 06:32 AM)DramaKing Wrote:  I won't rag on you for not upgrading, presumably you have reasons, even though the system requirements for 10 aren't any beefier than 7. It is terrible for your OpSec and general security, though. Software compatibility is becoming increasingly bad.

Nmap does currently support Windows 7, hmm.

EDIT: I'm going to say that the current Nmap uses Python 3, which I can certainly tell you fails to run on Win7. The Nmap team probably needs to update the compatibility list. I found a hacky workaround here: https://github.com/nalexandru/api-ms-win-core-path-HACK. Your other options are to run an older version of Nmap or use masscan, Angry IP Scanner, or MegaPing.

OK thanks. I don't like the windows 10, tiles etc. Can masscan, Angry IP Scanner, or MegaPing scan the internet looking for open ports.Or do you have to pick an ip, scan that and then another. I do not intend to do anything to any open ports. I just want to learn about scanning


RE: scanning for open ports - DramaKing - Aug 27, 2024

(Aug 27, 2024 07:08 AM)unhappyhacker Wrote:  OK thanks. I don't like the windows 10, tiles etc. Can masscan, Angry IP Scanner, or MegaPing scan the internet looking for open ports.Or do you have to pick an ip, scan that and then another. I do not intend to do anything to any open ports. I just want to learn about scanning

You're asking someone who hadn't used any of these tools apart from lab assignments. I looked up MegaPing, and you can specify the From address as 0.0.0.0 and the To address as 223.255.255.255. That should give you around 3.5 billion addresses. Don't get caught.


RE: scanning for open ports - shadowcrow - Aug 27, 2024

(Aug 24, 2024 04:47 PM)unhappyhacker Wrote:  I have read about people scanning the internet looking for open ports. What scanner program does this. The only scanner i have seen you have to know the IP to scan it. But just generally scanning for open ports? What software? Please note I have no intention of tryng to exploit any open ports. i want to learn how they scan the internet without knowing the IP

If you want to scan the internet then nmap is of course one of the best you can use but for widescanning I recommend ZGRAB
But if you don't know what you are doing...don't do it or learn how these scanners work - some are good for mass scanning and others better for scanning of specific hosts for information.
While portscanning is legal in most parts of the world, active vulnerability scanning could get you in jail...