Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nmap]

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

-1
votes
0answers
3 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
25 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
1answer
18 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
53 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
848 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
1answer
39 views

How to scan my computer's UDP ports

I have tried running nmap 192.168.0.97 to port-scan my computer, and I noticed it only lists TCP ports. For both TCP and UDP ports, I would start by asking the OS on my computer. I.e. How do I list ...
2
votes
3answers
75 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
39 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
35 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
55 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
666 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
90 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
0answers
21 views

filtering nmap script scan and outputting ip:port format

I'm grepping for anything that contains ssl-cert, this is so I can get the IP and ports for any certificates in use. Also I'm grepping 11 lines above the "ssl-cert" which gives me this output( the ...
0
votes
0answers
31 views

Issues with IPv6 and Apache2

So I'm trying to set up an Ubuntu server with the web application running on IPv6 using an Internal adapter. I honestly do not know what the issue is. I've tried changing the adapter that is hosting ...
0
votes
1answer
34 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
148 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 ...
0
votes
1answer
129 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
71 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 ...
0
votes
1answer
54 views

Scan network with Linux kernel command

Does Linux kernel provide some utility familiar to nmap for simple network scanning to discover attached nodes?
0
votes
3answers
32 views

count matching open ports in a network log file

I have network log file like this one: Nmap scan report for 192.168.1.51 Host is up. PORT STATE SERVICE 80/tcp open http 443/tcp open https 8080/tcp open http-proxy 443/tcp ...
1
vote
1answer
50 views

Get web page from a list of ip addresses in a file

I have a list of ip addresses in a file, we can call that file ip.txt I scanned a subnet using zmap at port 80. So I have about 100 addresses returned into that file. Instead of popping each ip into ...
0
votes
1answer
66 views

nmap bypass iptables rules | Redhat 5.6 [closed]

I have legacy system on Redhat Linux 5.6, with Nmap 4.11. ( IP: 10.11.4.22 ). I want to block access from this legacy system via every port/protocols to another server( IP: 10.11.4.24 ). I first ...
0
votes
1answer
60 views

Filtering nmap scan and outputting ip:port format

Host: 1.1.1.1 () Ports: 8080/open/tcp//http-proxy/// Ignored State: filtered (28) Host: 2.2.2.2 () Ports: 8888/open/tcp//sun-answerbook/// Ignored State: closed (28) Host: 3.3.3.3 () Ports: 1263/...
1
vote
3answers
310 views

NMAP network scan shows IP-addresses and MAC addresses of items that are then missing from a subsequent arp-cache dump?

The logic I have is this get the definition of the subnet use nmap to scan every item in the subnet to populate the arp cache use the /usr/sbin/arp tool to dump the arp cache parse the arp-cache to ...
1
vote
2answers
406 views

ARP hostnames problem

I am having problem with viewing hostnames of devices located in my LAN. On my first laptop (Ubuntu 18.04 LTS Desktop edition) result of following command: arp -a Is exactly what I want: X (192.168....
0
votes
2answers
43 views

How to specify nmap to add redirect address?

I'm trying to ping the health of VM's using nmap utility. # nmap -v -n -sP 192.168.102.116 Host 192.168.102.116 appears to be down. Note: Host seems down. If it is really up, but blocking our ping ...
0
votes
1answer
533 views

How does a half-open scan work in Nmap?

Here in Nmap we have -sS option, which starts a "half-open scan." ➜ ~ sudo nmap -sS 192.168.1.4 Password: Starting Nmap 7.70 ( https://nmap.org ) at 2018-07-04 20:23 CST Nmap scan ...
0
votes
2answers
367 views

Use awk to print only the IP and OPEN ports field

I'd like to print only the IP address and open ports field from a given a gnmap file. Host: 123.123.123.123 () Ports: 80/open/tcp//http?///, 443/open/tcp//https?///, 8083/closed/tcp//us-srv///, ...
2
votes
2answers
520 views

Difference between -sn and -sL in Nmap?

Here as man page says, "-sn: Ping Scan - disable port scan", and "-sL: List Scan - simply list targets to scan" I Tried this: ➜ ~ sudo nmap -sn scanme.nmap.org Starting Nmap 7.70 ( https://...
-1
votes
1answer
951 views

Opening port in iptables [duplicate]

I tried iptables -I INPUT -p tcp -m tcp --dport 4444 -j ACCEPT to open a port but still closed: $ nmap hostname -p 4444 Starting Nmap 7.70 ( https://nmap.org ) at 2018-05-23 04:47 +0430 Nmap scan ...
4
votes
4answers
778 views

nmap to awk to sed. is there a better way?

I have a project where I know a single computer and a single printer will be the only things on the network. What I want to do is detect when the printer is connected to the network. I also know that ...
2
votes
6answers
9k views

A way to find open ports on a host machine

I know that i can use nmap to see which ports are open on specific machine. But what i need is a way to get it from the host side itself. Currently, if i use nmap on one of my machines to check the ...
1
vote
0answers
373 views

Shell command on terminal vs system() call

I am using NMAP for port scanning on a host. When I run the following command on terminal, it gives the results within a minute most of the times. $ nmap -p 1-65535 10.180.5.237 | awk --posix '{ ...
4
votes
3answers
622 views

Understanding suspicious SSH commands

I have a dedicated hosting server that has few websites running. I recently accessed my server thru terminal cmd line and noticed that the last few commands that were executed look suspicious and I'm ...
1
vote
2answers
865 views

Why firewall-cmd can't list active ports on my local pc?

sudo nmap -p0-65535 127.0.0.1 Starting Nmap 7.40 ( https://nmap.org ) at 2018-02-06 19:03 HKT Nmap scan report for localhost (127.0.0.1) Host is up (0.0000050s latency). Not shown: 65525 closed ports ...
2
votes
1answer
1k views

Nmap unable to resolve flags

When I type in the command nmap –Pn –sT -sV –p0-65535 192.168.1.100, my terminal responds: Starting Nmap 7.60 ( https://nmap.org ) at 2018-01-29 11:24 PST Failed to resolve "–Pn". Failed to resolve "–...
0
votes
2answers
2k views

nmap “filtered” results on a pretty naked server - could “filtered” just mean “silence”?

I get unintuitive results from "nmap -A " which I want to clarify. Setup: sshd (ssh deamon service) is successfully running. postfix is installed and so smpt service is running. However, it only ...
1
vote
1answer
41 views

How do I download documentation and make it accessible from the command line?

Recently installed nmap but I don't know how to use it. I found the documentation, but I'd rather not have to leave the command line every time I try to learn something new with it. I'm still working ...
0
votes
2answers
183 views

Different Outputs for MX Toolbox Port Scan and nmap

I am looking at which ports are open for a smtp host (this host is not mine), and I am seeing different outputs for each of two tools (MX toolbox port scan and nmap). The nmap scan shows that port 465 ...
3
votes
0answers
113 views

Tips for Troubleshooting Remote IMAP/SMTP Host Connection with OPENSSL and NMAP

I work in tech support for a company that has an email inbox integration. Users can input IMAP and SMTP host names and ports and we will attempt to open a connection with those ports and host names so ...
1
vote
1answer
11k views

How to manually update Nmap's Ncat on Centos 7

How do I manually upgrade the nmap-ncat package on Centos 7?
-1
votes
1answer
332 views

Network Traffic Analyser using Shell Script

Is there any way or script that could ping and fetch the ttl simultaneously and store in two columns in a text file for a set of IP addresses that are alive on network- I wish to make a shell script ...
1
vote
0answers
589 views

Apt-Get unable to locate package

I'm trying to install nmap on my linux OS which is version 4.4.0-83-generic GNU/Linux. At first I instinctively ran: sudo apt-get install nmap And this is the output from that command: Reading ...
1
vote
3answers
6k views

Nmap check if port is open in bash

I want to make a script which will check if a port is open on a server. If not open stay in a while. If open continue. The break conditions is use are if "host is up" is present and not "closed". I ...
3
votes
3answers
736 views

Extracting results from a command in terminal

Extracting results from a command in a terminal I ran a nmap scan on my local network using this command: nmap -sP 192.168.1.* When I ran that command I get something that looks similar to this: ...
0
votes
1answer
466 views

PostgreSql port open on NAS Synology DiskStation (DS216j)

How is possible to check if the port 5432 of my NAS synology DiskStation (DS216j) (IP address 192.168.0.16 ) is open? I have (in the control panel of the NAS), enabled the firewall and created a rule ...
1
vote
1answer
363 views

How to scan outbound closed ports with nmap?

I just noticed that my server is being blocked for rsync from a firewall outside of my server, so I can't rsync to any target. Now, I would also like to know what are all the ports that are being ...
0
votes
1answer
67 views

nmap show me differert result on the same machine

when i use nmap without sudo it show me the ports are open as nmap 192.168.1.5 Host is up (0.00091s latency). Not shown: 995 filtered ports PORT STATE SERVICE 80/tcp open http 110/tcp open ...
0
votes
1answer
576 views

traceroute: How to show TTL along hops

How could I show remaining time to live counters in mtr or traceroute results? $ mtr -r -w -c 10 91.250.127.30 Start: Mon May 15 12:20:44 2017 HOST: <snip> Loss% Snt ...
0
votes
1answer
517 views

nmap & arp cache behaviour

Why does the target of a nmap scan, where the target does not exist get entered into the arp cache? nmap -v -P0 -sT 192.168.1.103 That scan always shows "host up". This behaviour made me go crazy >...