Questions tagged [nmap]

a free and open-source port scanner, operating system fingerprinter, and service fingerprinter

Filter by
Sorted by
Tagged with
-2
votes
1answer
37 views

I see it in nmap but cant SSH

Hope all is well! I am trying to connect to a remote linux machine. ( It is a Rpi with the IP address 192.168.168.199) I am unable to SSH into the Rpi. After I type the following and hit enter, ...
-1
votes
0answers
74 views

problem: zenmap start up error

I don't know no why but my kali linux machine is going crazy recently, each time something else doesn't work.I got this error while typing zenmap in terminal: Could not import the zenmapGUI.App module:...
-6
votes
0answers
38 views

Do aany body has Nmap Cheat commands? [closed]

I'm searching for Nmap advanced commands list with explanation. So that I could prepare a video on that. I would take your name and provide your profile links as wesll. Please help me. Nmap biggest ...
0
votes
1answer
17 views

state of tcp/udp source ports when waiting for answer from target

i have a quick question about tcp port states: suppose i am establishing a tcp connection to a server: source address/port should be 44.44.44.44:33456 destination address/port is 55:55:55.55:443. in ...
0
votes
0answers
20 views

Run a new nmap based on masscan XML output

I'm scanning a entire network with masscan (because it is faster than nmap) and outputing to XML. There is a way to start an nmap based on the XML output? The idea is: Masscan scan the entire network ...
0
votes
0answers
12 views

How does nmap know what service is on a filtered port when using version detection?

I am trying to understand how nmap displays a service for a filtered port when a filtered port does not give any response. Is it just giving me the most likely value according to the nmap-services ...
0
votes
1answer
23 views

CentOS nmap host discovery scan doesn't work

I have a port forwarded home server running CentOS 7 on my home network. I am trying to fix some issues with it and tried to do an nmap host discovery scan but it doesn't work and says that all hosts ...
0
votes
1answer
29 views

How to search something using a keyword in man command (man nmap)? [closed]

I want to find a specific command in help section e.g I want to know what is the sync command. How do I search in man nmap or nmap -h? I specifically do not want a list of all commands. 2nd quest. I ...
0
votes
1answer
42 views

Passing commands arguments in a variable

So I have this peace of bash code to execute nmap command with different arguments in $line variable When I transform it into an in-line command it works perfectly with separated arguments from $line, ...
0
votes
1answer
120 views

nmap scan for all ports vs scan for single port

I am new to nmap and its usage. I am trying to perform a UDP scan for ports for a local IP address. Approach 1: # sudo nmap -T4 -Pn -sU -p 54 192.a.b.c -vv ... Nmap scan report for 192.a.b.c Host ...
-2
votes
1answer
21 views

Redirect output with nmap [closed]

I have this url www.southernct.edu. Using nmap how can I redirect the output to the file nmap.out nmap www.southernct.edu > nmap.out Would the command above work?
-2
votes
1answer
236 views

nmap doesn't seem to find all open ports

Hi I got a little setup where I have a debian machine running a virtualbox which is also a debian machine. I installed apache on the guest machine and now want so see if my host can find the service, ...
-1
votes
2answers
163 views

nmap output with awk to table

I'm trying to get nmap output as a table or at least straight columns. I'm using this command: $ sudo nmap -sn 192.168.103.0/24 \ | awk '/Nmap scan report for/{printf $5;}/MAC Address:/{print ","...
1
vote
1answer
409 views

How to install zenmap on Fedora

I'm trying to install Zenmap after installing Nmap however it's not quite working. I tried just the regular terminal command dnf install zenmap however it tells me that they're unable to find a match. ...
0
votes
0answers
46 views

How to scan another machine on the local network for open ports when most ports are closed in one's nftables firewall?

I have almost all ports blocked (outbound and inbound) in my nftables firewall in Debian10 - how can I still scan another machine on the same local network for open ports with nmap/zenmap? How are ...
0
votes
1answer
33 views

Why do I not get an ICMP message in responce when doing an UDP scan with nmap?

We had a lab where we scanned a vulnerable system where alot of ports were closed, so it returned alot of ICMP messages as expected and it took a long time. But then I tried to scan my own Debian 10 ...
0
votes
1answer
39 views

How to scan range of tcp and udp ports at a time using nmap?

I tried this command but its not scanning udp ports... nmap --open -p T:22,25,53,80,111,443,465,587,953,993,995,3306,5666,8891,U:53,68,111,323,715 13.235.13.13 What is the correct way for scanning ...
0
votes
1answer
28 views

How to open ports to test nmap script?

I need to test my nmap script, which crashes when many ports are open. So I need a script (python/bash) that opens n ports on a server. How could I do that? Thank you
0
votes
1answer
56 views

assign nmap output to several variables

I am using nmap to scan my network and want to show every device that is up. The following works great: ips=$(nmap -sn 192.168.1.68/24 -oG - | awk '/Up$/{print $2, $3}') What I now want to to is to ...
0
votes
1answer
61 views

How would I go about adding new data to a file?

So! I have an nmap scan that saves the output to a file, nmapscan.txt: sudo nmap -sP 192.168.1* > nmapscan.txt I also have a few other commands to clean up and save all desired output to one file,...
1
vote
2answers
333 views

How to run Bash Script in background [duplicate]

I am remotely connected to a system using ssh and want to run nmap on a system from there. But every 5 minutes, my SSH connection breaks and so the process running on my shell stops. How can I run ...
0
votes
1answer
142 views

I can't access application on azure Ubuntu VM that relies on port 8080, 8000, and 8009. Nmap tells me they are opened

I am using Ubuntu virtual host to run a tomcat based application that uses the ports 8080, 8009, and 8000. The network admin has already opened the ports and when I run nmap on localhost it shows that ...
0
votes
1answer
67 views

Need to determine if firewall is blocking an outbound connection

I don't have direct control over the firewall. I'm trying to troubleshoot a connection to a SFTP site from a Unix machine. Pinging the host results in a timeout, and nmap is telling me the host may be ...
0
votes
1answer
161 views

How can I port scan a host from itself without using the loopback interface?

I'm trying to audit firewall rules on a host. This is typically pretty straightforward to do with nmap or a similar scanning tool. The problem is that I can only run the audit on the host itself. ...
0
votes
1answer
18 views

Multiple tcp scanning tools integration

I recently started my first programming project that consist of purpose multiple tcp scanning tools integration for multiple usage. To be more clear, I want to incorporate NMAP and MASSCAN tools. But, ...
0
votes
1answer
558 views

How can I ran nmap script on a Mac OS X?

I've installed nmap in my Mac OS X tried. I'm not on Linux, I couldn't find the script directory. I ran sudo nmap -sV --script vulners 69.164.220.111 Password: I kept getting Starting Nmap 6....
0
votes
1answer
327 views

AWK concatenate output lines while extracting specific strings

Given the output of nmap against a subnet Nmap scan report for 192.168.1.20 Host is up (0.010s latency). MAC Address: EC:13:B2:E2:20:48 (Netonix) Nmap scan report for 192.168.1.21 Host is up (0.010s ...
-1
votes
2answers
2k views

separating an array into comma separated values

I have a small snippet which gives me some ips of my current network: #!/bin/bash read -p "network:" network data=$(nmap -sP $network | awk '/is up/ {print up}; {gsub (/\(|\)/,""); up = $NF}') it ...
0
votes
1answer
77 views

NMAP shows open ports even tough I installed the UFW firewall

I have a VServer, in which I installed the firewall UFW. I scanned the Server with NMAP but I it showed a lot open Ports, which I didnt open. Is it a Bug? Or did I installed UFW false? Thank you ufw ...
1
vote
0answers
47 views

2 command nmap in the same line

Hello everyone and thanks for your help I am using this nmap command to obtain host and IP information if port 80 is open. nmap -sV -iL test.txt | grep "Service information:" ; nmap --open -p 80 ...
1
vote
2answers
716 views

What is scanning udp ports 8610-8612 on Debian Buster?

I've got several computers with Debian Buster (Gnome) installed. Thanks to psad tool I realized that all of them frequently (at least several times a day) scan udp ports 8610-8612 in the local network....
1
vote
1answer
998 views

How to run nmap from inside a chroot?

While I am trying to run nmap with privilege this message is showing: nmap: netutil.cc:3285: int route_dst_netlink(const sockaddr_storage*, route_nfo*, const char*, const sockaddr_storage*): ...
0
votes
1answer
562 views

Find IP address of poe devices attached to my computer via ethernet

I'm currently trying to setup zoneminder on my computer that has Ubuntu as a host OS. Before I do all that, I want to know if the poe CCTV camera I purchased works, a Reolink RLC410-5MP There are ...
0
votes
1answer
238 views

Understanding the Netcat properly [closed]

Netcat confuses me a little bit and here are the reasons: when I run: nmap localhost There are some ports listed with the information whether they are open or closed. So if I run the command : nc -l -...
-1
votes
1answer
115 views

How can fragment packets -f/--mtu be usefull?

How can fragment packets -f/--mtu be usefull ? That is, say from a normal scan I get for a given IP and port range: 28/tcp filtered unknown no-response 29/tcp filtered msg-icp no-response 30/tcp ...
0
votes
1answer
40 views

List all accessible ports from private network

I am connected to internet via the wifi provided by an Airport. I can't connect via SSH to my server. So, Airport may block port 22. Is there a way to use nmap to list all ports I can access through ...
0
votes
2answers
186 views

What's the NSE of nmap?

When I use nmap for scanning IP, there prints logs: Starting Nmap 7.70 ( https://nmap.org ) at 2019-04-05 10:27 ?D1ú±ê×?ê±?? NSE: Loaded 148 scripts for scanning. NSE: Script Pre-scanning. ...
0
votes
1answer
512 views

Does `nmap -p0-65535 0.0.0.0` scan all the IP addresses on the local host?

Does nmap -p0-65535 0.0.0.0 scan all the tcp ports on any of the IP addresses on the local host, so report services listening at the tcp ports at any of the local IP addresses including 192.168.1.97 ...
7
votes
4answers
1k views

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`? [duplicate]

According to https://networkengineering.stackexchange.com/a/57909/, a packet sent to 192.168.1.97 "doesn't leave the host but is treated like a packet received from the network, addressed to 192.168.1....
2
votes
3answers
473 views

How to scan my computer's UDP ports

What command can I use to port scan UDP? I hear that UDP scanning has some specific issues, that do not apply to TCP scanning. I tried running sudo nmap -p0-65535 -sU 192.168.1.97. But it has been ...
2
votes
3answers
1k views

How to SSH into Raspberry Pi connected via Ethernet on CentOS7?

I am trying to SSH into my Raspberry Pi 3 Model B V1.2 from my laptop running CentOS7. I have connected them together via Ethernet cable but the laptop is unable to identify Raspi. So i tried running ...
1
vote
1answer
2k views

What are those “unknown” services listed by nmap?

I run nmap on a Lubuntu machine using its own private IP address. What are those "unknown" services? How can I find them out? Is fuser supposed to find that out? Thanks. $ nmap -p0-65535 192.168....
0
votes
1answer
639 views

nmap output in CSV format sorted by IP address

I have this command which works well to give me a list of IP addresses, MAC addresses, and MAC vendor, sorted by IP address. sudo nmap -sn 192.168.103.0/24 | awk '/Nmap scan report for/{printf $5;}/...
3
votes
1answer
128 views

How can I find out information about a service?

$ nmap -p0-65535 192.168.0.142 Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-10 17:53 EDT Nmap scan report for ocean (192.168.0.142) Host is up (0.000031s latency). Not shown: 65531 closed ports ...
6
votes
3answers
5k views

Difference between `nmap local-IP-address` and `nmap localhost`

The following IP address is for my network interface $ nmap 192.168.0.142 Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-09 11:33 EST Nmap scan report for ocean (192.168.0.142) Host is up (0....
0
votes
4answers
535 views

grep IPs and port number into one line

Using grep and cut I have returned the IP and ports of the nmap scan result which looks like this: 192.168.1.221 80 443 192.168.1.223 25 Desired output: 192.168.1.221:80 192.168.1.221:443 192.168....
0
votes
1answer
94 views

Exhaustive list of REASONs why a host/server might be down (nmap --reason)

I'd like to have reference on how to get exhaustive REASONs why a host/server might be down in "PORT STATE SERVICE REASON VERSION" (below) of nmap using the --reason option. --------------------------...
0
votes
1answer
2k views

strange error “(22 - 'Invalid argument')” when used with IPv4

I have "(22 - 'Invalid argument')" using nmap. I've googled and got https://seclists.org/nmap-dev/, but that is discussing IPv6 while I've got this error using IPv4. It makes no mention of IPv4, so ...
1
vote
1answer
2k views

Ports not really open after firewalld command

OS: CentOS 7 This is a question that is bordering on two issues. I have a docker machine running where I recently installed the PLEX container from linuxserver/plex. The current problem is that I ...
-2
votes
2answers
110 views

How make a port appear open with an nmap scan

To avoid someone knowing which port are open on my machine, I thought it would useful to open all unused port so that the nmaper is unable to identify which port are really open. How make a port ...