2022 Developer Survey is open! Take survey.

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
0 votes
1 answer
36 views

nmap won't run as sudo when installed through snap

I've installed nmap through the snap store with the following command: $ sudo snap install nmap This has worked fine and I can run nmap as a normal user. $ nmap --version Nmap version 7.92 ( https://...
user avatar
  • 279
-1 votes
1 answer
114 views

How do I open a port on my Ubuntu 14.04 virtual server to my Mac from which it runs? [closed]

I’m running a virtual Ubuntu (14.04) box, using Vagrant, on my Mac Big Sur machine. I would like to open port 1234 on my virtual machine to my Mac. From the virtual machine, I can see these ports ...
user avatar
  • 1,615
0 votes
0 answers
66 views

Can't disable apparmor profile for nmap

I'm trying to run nmap on Ubuntu 20.04, but it's unable to create raw socket: [620103.322455] audit: type=1400 audit(1633414966.421:70): apparmor="DENIED" operation="create" ...
user avatar
  • 6,130
0 votes
1 answer
650 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 ...
user avatar
  • 1
0 votes
1 answer
3k views

Samba min protocol SMB3, nmap report SMBv1

I use a Linux system with Ubuntu 18.04.5. Te file /etc/samba/smb.conf contains the rules: client min protocol = SMB3 and smb encrypt = required The command nmap -p445 -Pn -vvv --script smb-protocols ...
user avatar
1 vote
0 answers
481 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 ...
user avatar
1 vote
1 answer
677 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.
user avatar
0 votes
0 answers
290 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, ...
user avatar
  • 181
0 votes
1 answer
372 views

SNAP leaves behind some references after removal of NMAP package, causing APT version of NMAP not to be found

To test I first installed NMAP on my Ubuntu 20.04 using a snap, but that version gave a dnet error (Failed to open device enp1s0), so I removed the snap package and installed the native version with ...
user avatar
1 vote
2 answers
2k 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 ...
user avatar
  • 225
2 votes
1 answer
3k 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 ...
user avatar
0 votes
0 answers
449 views

Should port 25 be open on localhost (Ubuntu 18.04)

Port 25 is open on localhost and also on my internal 192.168.1.xxx number. The nmap scan shows: 25/tcp open smtp Postfix smtpd Should this be the case? I am not trying to run an SMTP server. However,...
user avatar
-1 votes
1 answer
1k views

How to scan and ip range in nmap

I've been using Angry IP Scanner and with that, I easily could scan an IP range by putting starting IP and ending IP in two text boxes. Now in nmap, I want to know how to scan an IP range with giving ...
user avatar
  • 23
0 votes
0 answers
1k views

nmap shows port 8080 is filtered even though it's opened. How can I open it?

I am using Ubuntu virtual host to run a tomcat based application that uses the port 8080, 8009, and 8000. The network admin has already opened the ports and when I run nmap on localhost it shows that ...
user avatar
  • 133
0 votes
2 answers
1k views

How to scan all ports in nmap

I didn't get what ports does Nmap scan. Does Nmap start from zero or one when scan subnet or all the ports? 0/24 is it 0-255 or is it 1-255 -p is it 0-65535 or is it 1-65535
user avatar
  • 47
2 votes
2 answers
176 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....
user avatar
0 votes
1 answer
1k views

Why connection is droping when I scan the ip with nmap? [closed]

When scanning an IP in LAN its connection drops for seconds and nmap says the host might be down. Why this happens?
user avatar
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: ...
user avatar
0 votes
1 answer
881 views

ssh connection refused; netstat LISTEN; nmap closed

My Setup Ubuntu server 18.04 on local hardware A laptop from which I want to ssh into the server over local network My Problem Every once in a while right after boot, I can ssh into the machine ...
user avatar
0 votes
1 answer
231 views

Rename device ID as returned by nmap

I would like to rename a device on my network as I have several devices from the same mfg. For example, an Asus wireless router shows the same mfg name as an Asus motherboard (connected by Ethernet), ...
user avatar
  • 31
0 votes
1 answer
976 views

How can I find the IP addresses of devices on my local network? [duplicate]

Is there any way I can find out the IP addresses on my network? For example my home router is 192.168.5.1 and it is connected to an airos device the IP of which is 192.168.1.20, and the airos device ...
user avatar
  • 1
1 vote
0 answers
177 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,...
user avatar
  • 111
2 votes
2 answers
925 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 ...
user avatar
1 vote
1 answer
645 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?
user avatar
0 votes
0 answers
424 views

nmap scanning IP Addresses that aren't an A record for the scanned hostname

I'm scanning for transparent proxies/MiTM and I found this while running a scan against cn.pool.ntp.org: joe@APP05:~$ dig cn.pool.ntp.org ; <<>> DiG 9.10.3-P4-Ubuntu <<>> cn....
user avatar
  • 41
2 votes
2 answers
7k 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 ...
user avatar
  • 23
10 votes
2 answers
5k 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:...
user avatar
  • 111
1 vote
0 answers
179 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 ...
user avatar
-1 votes
2 answers
1k views

How to install a package from source (e.g. nmap 7.60) and first fix unresolved dependencies on Ubuntu 16.04 LTS?

I found myself wanting to install nmap 7.60 bc it has really neat functionality for scanning IPs for information on my local network (USED RESPONSIBLY, of course), but 16.04 does not support v7.60 out ...
user avatar
  • 205
0 votes
1 answer
2k views

How to know service name and disable it after scanning using nmap?

When I scan my ubuntu using nmap I get this result: Starting Nmap 7.40 ( https://nmap.org ) at 2017-10-20 10:40 EET Nmap scan report for localhost (127.0.0.1) Host is up (0.000097s latency). Not ...
user avatar
  • 1
0 votes
0 answers
58 views

Website inaccessible from Ubuntu command prompt but is accessible from browser

When I visit a website from the browser it exists, but when I check with the Ubuntu command line it pings but nothing else works. Nmap does nothing. Curl does nothing. The only vaguely interesting ...
user avatar
0 votes
2 answers
3k views

Nmap scanning in Ubuntu 16.04 LTS

I have started to leran nmap in ubuntu. I am ruuning the command $ nmap localhost in ubuntu 16.04 LTS. It is running perfectly and the output is Starting Nmap 5.00 ( http://nmap.org ) at 2017-08-22 ...
user avatar
  • 101
0 votes
1 answer
602 views

How to make nmap consult arp table

I want to use nmap in a subnet with the following command: nmap -T3 -F 192.168.1.0/24 My net has some interferences that make broadcast packets to be lost, so I add to my arp table the mac and ip to ...
user avatar
  • 3
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 ...
user avatar
  • 131
0 votes
1 answer
654 views

nmap in bash script returns error

I want to find out all my available routers with nmap. Typing this in command line returns the expected output. nmap --script=broadcast-dchp-discover -e eno1 But when I try to run this command in a ...
user avatar
2 votes
1 answer
175 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.
user avatar
1 vote
1 answer
702 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 ...
user avatar
1 vote
2 answers
5k 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 ...
user avatar
  • 27.4k
0 votes
1 answer
2k views

Cant Install NMAP due to unmet dependecies!

I cant install nmap due to following unmet dependencies HP-Pavilion-g6-Notebook-PC:~$ sudo apt-get install nmap [sudo] password for rohan: Reading package lists... Done Building dependency tree ...
user avatar
0 votes
2 answers
2k views

basic understanding of nmap

ok so i heard nmap is illegal in some countries, similar to going around and checking the door handle around the neighborhood to see if intrusion is possible. if i use nmap like nmap -0 -sS 192....
user avatar
0 votes
1 answer
2k views

Set Filtered TCP Ports via iptables For Linux Device

Here is the configuration : iptables -A INPUT -p tcp --dport 8888 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p tcp --sport 8888 -m state --state ESTABLISHED -j ACCEPT iptables -P ...
user avatar
  • 1
1 vote
1 answer
839 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.
user avatar
  • 11
0 votes
2 answers
206 views

nmap command - suspicious behavior

I'm learning Linux on Cisco, and they display a certain message about the nmap command : CAUTION: To avoid suspicion of using the tool to find a way to attack the systems on your network, it is ...
user avatar
16 votes
1 answer
35k 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?
user avatar
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 ...
user avatar
7 votes
2 answers
7k 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 ...
user avatar
  • 71
3 votes
3 answers
15k 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> ...
user avatar
0 votes
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 ...
user avatar
0 votes
1 answer
862 views

nmap scenning ports when ufw is disabled

Starting Nmap 7.01 at 2016-09-26 18:54 CEST Nmap scan report for mypage.com (IP-ADRESS) I'm a Ubuntu beginner. I've set up a dyndns service to redirect the connection for my domain. I've turned off ...
user avatar
1 vote
0 answers
933 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 ...
user avatar