Questions tagged [nmap]

Questions relating to Nmap, a free and open-source utility for network exploration or security auditing.

Nmap is a free and open-source port scanner, operating system fingerprinter, and service fingerprinter, fully extensible via the Lua-based Nmap Scripting Engine (NSE).

Here are some resources for answering Nmap questions:

719 questions
3
votes
1 answer

Using python nmap module to scan hosts generated from a previous scan

I've been playing with the module straight from the python command line to try and figure out how it all works, and start to piece together how the script I want to write is going to need to work. What I'd like to do, is do a simple host discovery…
Arvandor
  • 181
  • 1
  • 5
  • 15
3
votes
1 answer

Faster host discovery with nmap?

I need to launch a background network device discovery process from a script on a regular basis, and it needs to be fairly fast. Currently, I launch NMAP like this: nmap -sP 192.168.1.0/24 (I just made up the IP address, you get the idea). Anyway,…
Marc
  • 3,386
  • 8
  • 44
  • 68
3
votes
2 answers

How to find IP address range

When I use this command which IP addresed are scanned # nmap -sP 192.168.0.120/25 CAn you please help me how to get the IP range when I have the addres and subnet. Because I am trying to understand this, but no result till now..Thanks in advance
user2804038
  • 1,093
  • 3
  • 15
  • 17
3
votes
2 answers

Should I use Nmap::Parser or Nmap::Scanner to audit a network?

I'd like to audit the equipment of my large network in the fastest way possible. Should i use Nmap::Parser or Nmap::Scanner? I want to create a list of IP addresses that return a ping as well as a related OS footprint and…
EhevuTov
  • 20,205
  • 16
  • 66
  • 71
3
votes
2 answers

Sending nmap output to a file without also printing it to standard output

I am invoking nmap with the following command: nmap -oX i.xml -p 1-1023 -r -T4 -d -d Doing this sends output to i.xml successfully. However, text is still printed on the command line in additional being redirected to i.xml. I would like the…
user1486918
  • 31
  • 1
  • 2
2
votes
2 answers

Java Runtime.getRuntime().exec on Windows error

I am trying to run this line of code: Process p = Runtime.getRuntime().exec(new String[] {"nmap -sP 192.168.1.0/24", g}); The above gives this error: Exception in thread "main" java.io.IOException: Cannot run program "nmap -sP 192.168.1.0/24":…
John R
  • 2,920
  • 13
  • 48
  • 62
2
votes
1 answer

Is there a way to avoid Nmap console windows popping up in a Python Tkinter GUI when running as an exe? Solved, read the end

I have a .py script with Nmap module in it. It works fine when launched from Visual Studio. But it keeps popping up Nmap console-windows when converted to a stand-alone executable. So the thing is a tkinter GUI for Windows, that periodically pings…
shu9000
  • 31
  • 4
2
votes
0 answers

Nmap script error: "ssl_init_helper(): OpenSSL legacy provider failed to load."

I running Nessus on port 8834 and I when I run this Nmap script nmap --script nessus-brute -p 8834 It gave me this output Starting Nmap 7.93 ( https://nmap.org ) at 2023-02-03 10:38 Egypt Standard Time NSOCK ERROR [0.0460s]…
2
votes
4 answers

converting rpm files to debian error (package build failed)

after I install alien and having zenmap in the download folder when I run this command alien zenmap-7.91-1.noarch.rpm or any command related to it I get this error package build failed. here's the log: dh dh: error:specify sequence to…
Rohit
  • 21
  • 1
  • 1
  • 3
2
votes
1 answer

Lua/NSE socket connection problem

I can telnet to a certain host and port no problem and issue commands. However when i try to script a socket connection (using nmap NSE and Lua) to the same host and port, it fails with the following error message: |_sockettest: Trying to receive…
greatodensraven
  • 281
  • 1
  • 7
  • 14
2
votes
1 answer

Nmap multiple os information

Pardon in advance if this is a very noob question.. So I am learning to use nmap command and currently, I am doing a scan to check for the OS details of an image. The command I have used is nmap -O -sV and I am slightly confused by the…
k_plan
  • 121
  • 1
  • 7
2
votes
1 answer

Shodan shows open ports but nmap says they are closed. any idea why?

SMB port is open when I try to scan the host with shodan, but when I do it with nmap or any other scanner it says that the port is closed or filtered. any explanation? I tried all the basic firewall evasion techniques with nmap but none of them…
2
votes
3 answers

Python nmap program was not found in path error even nmap installed and nmap.exe is in the path

For some reason I can't use nmap on python. I have python-nmap installed as a library. Whenever I try to use PortScanner(), I get path error but I have nmap installed on my computer and it is even in path. import nmap nm =…
Anhedonia
  • 37
  • 1
  • 7
2
votes
2 answers

How can I split parsed text by "blocks" of text?

I am writing a bash script that runs an Nmap scan of the network. After this the scan needs to be examinned and the relevant bits need to be extracted. I need to extract the IP, MAC and OS from the completed scan. The problem is that Nmap does not…