Questions tagged [nmap]

nmap is a free, open source, scriptable network security scanner. It features port scanning and service/version detection.

Filter by
Sorted by
Tagged with
26 votes
2 answers
152k views

How to scan an entire network using Nmap?

Is there a way to scan an entire network using nmap? What I want to do is scan my network for all the devices that are currently connected to it.
Fofaster's user avatar
  • 363
20 votes
1 answer
45k views

Difference between ESTABLISHED and LISTENING [duplicate]

I have use Nmap -a to view all open ports on my laptop. However, I noticed that the states are different. Some have ESTABLISHED, some LISTENING and some were stateless. What do they mean?
user4118143's user avatar
11 votes
2 answers
59k views

nmap in ubuntu 13.10

idk wheather to post such a silly question in this forum.just out of interest i want to know few things. can i use nmap in ubuntu 13.10 is backtrack another distro like ubuntu i have heard that ...
black's user avatar
  • 546
10 votes
2 answers
7k views

Why is nmap not working in 18.04?

After fresh installs of Ubuntu 18.04 and nmap (snap install) on two separate machines, both return the same nmap error: dnet: Failed to open device [device-name] QUITTING! when I run the command:...
Les's user avatar
  • 121
9 votes
5 answers
20k views

Vulnerability Scanner, nmap vs Nessus

I need a good vulnerability auditing tool for Ubuntu so I decided to try nmap I also recalled that there was a product that can do this kind of work called Nessus it is no longer available in the ...
Sabacon's user avatar
  • 40.1k
7 votes
2 answers
8k views

How do I install the latest version of nmap from source on Ubuntu?

I am running Ubuntu 16.04, and I am trying to install the latest nmap. I have a C compiler installed. I ran openssl version and found that this version was installed: OpenSSL 1.0.2g 1 Mar 2016 I ...
Kiran's user avatar
  • 71
5 votes
1 answer
11k views

Is there a GUI version of nmap available?

Is there a GUI version for nmap that can be installed without manually downloading the program? I don't have a problem with doing so, but it would be nice if there is one available in the ...
TellMeWhy's user avatar
  • 17.5k
4 votes
2 answers
7k views

Pipe Viewer with Nmap (progress bar)

I would like to know if there is a way to use "pipe viewer" with "Nmap" together. Example: pv | Nmap -sP 192.168.1.0/24 But I couldn't get the progress bar working properly. I mean it should be ...
ggalaxy's user avatar
  • 102
4 votes
1 answer
1k views

Nmap service detection Segmentation fault (core dumped)

The Problem When I use nmap with the service detection flag(-sV) I get a Segmentation fault at the end of the scan. It doesn't matter which IP Address or domain, as long as it can scan it. I am using ...
MandiYang's user avatar
  • 2,029
3 votes
3 answers
3k views

how to find other machines which are connected same network

I tried to find all machines which are connected my modem. I tried 192.168.x.0/24 command on gnome-terminal but it couldn't find any. My brother's laptop and my mobile phone are already connected the ...
m.tuğrul's user avatar
3 votes
3 answers
1k views

NMAP tool results

I performed an nmap scan first via nmap 127.0.0.1(loopback address). It returned 999 ports closed, port 631 is open(correct since netstat -tlpn also shows port 631 is listening). Then I did a port ...
Mayank Singh's user avatar
3 votes
3 answers
40k views

How to open port 21?

I installed vsftpd in my Linux Server 12.04. Unfortunately my firewall closed port 20 and 21. So I used the commands found here and other commands to open my ports. But I tested with nmap and I saw ...
Peyman's user avatar
  • 131
3 votes
2 answers
1k views

Running Nmap on Ubuntu

I am running a python script that executes nmap on a given set of parameters. The point is to automate this so i do not have to interact with the cli at all. Every time I run my script, I am prompted ...
John Wick's user avatar
  • 131
3 votes
2 answers
11k views

Why does nmap show Tor on Ubuntu

When I run nmap from my Ubuntu workstation Tor ports are shown (as closed) on our server. Starting Nmap 5.21 ( http://nmap.org ) at 2013-03-12 10:22 CDT Nmap scan report for xx.xx.xx.xx Host is up (0....
Chris Montanaro's user avatar
3 votes
1 answer
5k views

Nmap port scan shows all 65000 ubuntu (20.04) ports closed

Forgive me if this is a stupid question, I'm currently messing around with nmap / metasploit for educational purposes. I got a bit sick of using metasploitable OS so I thought I'd have a bit of fun ...
WizardUrina's user avatar
3 votes
3 answers
24k views

How to change a port from filtered to open?

I set up port forwarding on port 4444. I'm using gufw as firewall; but, when I'm using nmap, the port shows as "filtered" not "open". PORT STATE SERVICE 4444/tcp filtered krb524</code> ...
clint rock's user avatar
3 votes
1 answer
8k views

How can I get the MAC addresses of machines using python-nmap?

How can I get the MAC addresses of machines using python-nmap? I'm using python-nmap to scan my local network, I can get the ip of several systems but not their MAC addresses. How can I get the MAC ...
kaio's user avatar
  • 647
2 votes
2 answers
8k views

Is it possible to perform port scanning of the local host itself as another host?

In other words I want to see how the server looks outside when I don't have access to another machine to scan it. Let me give an example: Case 1: When I am SSH connected to my VPS, which is Ubuntu ...
pa4080's user avatar
  • 29.9k
2 votes
1 answer
11k views

Using Nmap to port scan [closed]

I'm trying out Nmap and have encountered a problem. Before anything, I would like to tell you that I am using this on my own laptops at home :) When I use Nmap <target_IPAddress> it shows me ...
user4118143's user avatar
2 votes
2 answers
8k views

18.04 does not resolve hosts on local network

I recently upgraded from 16.04 to 18.04 and now I am not able to resolve hosts on my local network. With 16.04 everything worked fine. I am still able to use IP to reach other computers but using ...
Niels's user avatar
  • 23
2 votes
1 answer
188 views

nmap search for specific IP range

How can I search with nmap in a specific range of IPs? Like only IPs in 10.{1-99}.{1-99}.1. Thanks.
SummerRain's user avatar
2 votes
1 answer
660 views

Difference between ssl/https and plain https in nmap output

I'm trying to analyze the behavior of IPs that operate as free WiFi hotspots. nmap -sV reports the following for two different hosts: PORT STATE SERVICE VERSION 443/tcp open ssl/https?...
alvaroiv's user avatar
2 votes
2 answers
7k views

Launcher for Zenmap (or nmapfe) as SUDO

I've installed nmap, and also nmapFE. By default these are NOT set up to run as root; however, the tasks I need to run require it. I am able to run sudo nmapfe from terminal; however, if I create a ...
Kendor's user avatar
  • 4,868
2 votes
2 answers
2k views

Is it possible to search for a keylogger using netstat / nmap?

I read on website (http://www.psychocats.net/ubuntu/security#firewallantivirus) the following phrase: "By default, Ubuntu ships with no open ports on public interfaces." Does that mean that if I got ...
Matheus's user avatar
  • 49
2 votes
2 answers
2k views

ssh'ing from one computer to another on the same subnet

I have two computers connected to the same subnet. The first (A) is running 14.04, the second (B) 12.04 I can ssh from the first to the second, but not from the second to the first. Don't really ...
Leo Simon's user avatar
  • 1,529
2 votes
2 answers
14k views

why does nmap seems to have problems to see my android devices, sometimes it would see them but sometimes not [closed]

I have noticed that running nmap 192.168.0.* would list all the devices connected to my wireless AP except for my Android phones, however if I do Ping any of them they are conected im just wondering ...
sebas's user avatar
  • 580
2 votes
2 answers
283 views

Different nmap results from different machines?

I am trying to troubleshoot an issue with my home Postfix mail server installed on Ubuntu Server not being able to reach gmail mail servers. I have noticed that when I run nmap to the IP address 173....
GreatWhiteSlark's user avatar
2 votes
1 answer
584 views

nmap returns bogon as hostname

Earlier today, on my Ubuntu 14.04 I was running nmap 192.168.0.1/24 And my machine had a legitimate hostname in the form of [hostname].[wifinetwork]. However, when I run the same command now, my ...
rith87's user avatar
  • 141
2 votes
2 answers
2k views

Is there a way to prevent nmap service detection?

While doing a review of my home network security from an external network, I noticed it was possible to discern the service running on port 99 (xrdp). When I got home I ran a nmap -A localhost and ...
QA Collective's user avatar
1 vote
2 answers
2k views

nmap in a shell script : some issues

I decided to make a shell script for basic nmap scanning so I did it like this : #!/bin/bash sudo apt-get install nmap printf "enter the name of site to do basic scan on >>>" read NAME ...
veyo's user avatar
  • 11
1 vote
1 answer
4k views

How can I determine the IP address of my router

I want determine the ip of my router address by writing a python code. I found this proposal: $ sudo easy_install netifaces Python 2.6.5 (r265:79063, Oct 1 2012, 22:04:36) ... $ ipython ... In [8]: ...
kaio's user avatar
  • 647
1 vote
3 answers
9k views

using nmap for information regarding web host

am trying to get info of host run in linux about open/closed port the host is attacked randomly by hackers changing the content of the page.deleting files,homepage content changed. how can it be ...
black's user avatar
  • 546
1 vote
1 answer
908 views

Zenmap for Ubuntu 20.04.1 LTS [duplicate]

Is zenmap available for Ubuntu 20.04.1 LTS with nmap 7.80? I've already try the instruction at the following link: Has zenmap vanished from 20.04? but packages are not available.
Davide Sestili's user avatar
1 vote
2 answers
5k views

How to use Libertine?

I'm trying to run nmap on my Ubuntu Touch phone. I was advised to use Libertine to install deb packages. It is installed now but when I go to terminal to check if I can use it nmap --help it gives me ...
Mark's user avatar
  • 245
1 vote
1 answer
2k views

I can see forwarded port on canyouseeme website, but not on NMAP scan?

I have forwarded port 14444 using my routers configuration panel. Here is the screen-cap: Then I ran ncat using: sudo ncat -k -l 192.168.15.42 14444 https://www.canyouseeme.org/ says "Success: ...
Linux Newbie's user avatar
1 vote
1 answer
948 views

I typed iptables -F by mistake, how to undo? [duplicate]

I typed iptables -F by mistake, how can I undo it? I see now strange activity on my routers IP, scanned it and saw that strange ports are open. How can I block these ports?
Gilfoyle's user avatar
1 vote
1 answer
394 views

Ubuntu Snaps not showing up

I noticed when I run "snap find" on a fresh install of Ubuntu 16.04 (with all updates) I no longer see Nmap listed. However, if I run "snap find nmap" it shows up. Why is Nmap not showing up when I ...
TBoss's user avatar
  • 138
1 vote
1 answer
334 views

Live host on network is masked in some way or its changing it's ip?

OVERVIEW: My professor runs some kind of live Ubuntu OS image on top of the classroom computer he uses to lecture then portals into his linux box located in his office. He has informed me his ...
Shane Yost's user avatar
1 vote
2 answers
3k views

How to list servers running in Ubuntu machine along with their port numbers?

Among some other servers installed in my Ubuntu system, one is the dictd server. The documentation says it uses port 2628. Running sudo nmap 192.168.1.74 -p 0-9000 results in: Nmap scan report for ...
rusty's user avatar
  • 16.3k
1 vote
1 answer
1k views

IPv4 Address Sharing Issue? Trying to map IPv4 address from host OS to BT5 VM [closed]

I'm having a general networking issue in regards to my Backtrack 5 (x64) KDE VM in VirtualBox. The VM appears to be on a separate subnet, but for my purposes, I'd like to include the VM in the private ...
Tyler's user avatar
  • 178
1 vote
0 answers
593 views

Run sudo commands in Java

I am trying to run sudo commands in Java. I have trying to create a program in Java in order to execute nmap commands in it. I am using Java 20 and I am using ubuntu 22.04 as operating system. I am ...
ilie alexandru's user avatar
1 vote
1 answer
3k views

nmap is not showing hostnames

I am new to linux, and I am trying to get all the hostnames from the hosts of my local network. I was trying the command: sudo nmap -sn 192.168.0.0/24 and also: sudo nmap -sn -R 192.168.0.0/24 but ...
Alb's user avatar
  • 11
1 vote
0 answers
876 views

Nmap keeping crashing and popping up the "System Program problem detected", should I worry?

$ sudo nmap -vv -P -T1 192.168.0.1/24 Output: >Warning: The -P option is deprecated. Please use -PE >Starting Nmap 7.80 ( https://nmap.org ) at 2021-01-01 18:29 -03 >Initiating ARP Ping Scan ...
user197536's user avatar
1 vote
0 answers
952 views

How do I confirm ufw is working using nmap from the local system?

I have enabled Uncomplicated Firewall on Ubuntu Focal: # ufw status verbose Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), disabled (routed) New profiles: skip And yet, ...
therealneil's user avatar
1 vote
0 answers
240 views

How to configure port for external access?

I need to access software from another machine in PORT 3000, but I can not do it for the IP of the machine, only by localhost. erick@erickmordecai:~$ ifconfig enp3s0: flags=4163<UP,BROADCAST,...
Erick Luz's user avatar
  • 111
1 vote
0 answers
224 views

Memory leak NMAP on Ubuntu 16 LTS

Using OpenVas for security scans NMAP (7.01-2ubuntu2) for Ubuntu 16 LTS has a huge memory leak. I have 64GB RAM on server and takes a few hours to build up and then server stop responding. 12974 ...
Håkan Franzén's user avatar
1 vote
1 answer
855 views

Can't open 4444 port in gufw

I've added a SSH rule for adding 4444 port in my distro through gufw but when I run nmap -sV 10.9.0.136 -A it shows : Starting Nmap 7.40 ( https://nmap.org ) at 2017-04-25 11:30 IST Nmap scan ...
Random Raita's user avatar
1 vote
1 answer
1k views

Use nmap scan specific ports to see which IP addresses are running any of those

I have a question to write a script using nmap to look at TCP ports across the entire network to identify which IP addresses are running any of those services. Sorry my english is not good.
Wayne's user avatar
  • 11
1 vote
0 answers
1k views

Port opened with ufw marked as closed with nmap

I'd like to open port 873 on a PC running Ubuntu 16.04. I ssh to this PC, type sudo ufw allow 873 Status can be checked with sudo ufw status: Status: active To Action ...
anderstood's user avatar
1 vote
0 answers
1k views

How can I view all device names on LAN?

I am trying to scan my local network and return a list of all connected devices with there IP, MAC Address & device name. by device name I mean if it is my iPhone it would say 'Jamies-iPhone' as ...
Jamie Deakin's user avatar