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
-1
votes
1 answer

Python error 'dict' object is not callable

I'm new in python And I have a problem that I haven't been able to solve for a couple of days and I don't understand what the error is at all. I am writing a program based on the Nmap program and the library of the same name, the functionality of…
Duoksi
  • 3
  • 4
-1
votes
1 answer

C# Process.Start() with multiple arguments do not work (nmap)

Description At the moment I am trying to call "nmap" through C# Process.Start(). But I can't get it work with my desired input arguments. At Process.Start() it seems to make a false parsing of the arguments. Do you know how I have to write the…
-1
votes
1 answer

Extracting IP address and ports of NMAP scan in seperate lines

I do a nmap scan of a domain and want to output the IP address and all open ports in the form of: 127.0.0.1:22 127.0.0.1:80 127.0.0.1:443 I have the following bash script nmap -vv -sV subdomain.domain.tld -oG - | awk '/open/' | awk '{printf "%s:",…
nullpointr
  • 524
  • 4
  • 18
-1
votes
1 answer

How to create an XML Parser?

Situation: I am using Nmap to do network scanning and would like to create a script that takes some Nmap output in XML and parses it and based on that prints the information I want. Problem Description: This parser should: Be able to be to take a…
Jandroid
  • 111
  • 1
  • 11
-1
votes
2 answers

Network scanner on Python

I am making a network scanner python project and have created below code by looking through youtube learning. But it is not working and giving an error. here is the code- import nmap class network(object): def __init__(self): ip =…
-1
votes
1 answer

port scanning a home network using nmap but can't understand how was nmap able to find open ports ,when more than 1 devices were connected

I saw a video in which a person scanned a public IP(it was his SOHO network) using nmap. It showed all the open ports and other info but I don't understand how can nmap scan ports and tell which are open when there are multiple devices on that…
-1
votes
2 answers

Extracting specific nmap output in bash

I'm getting following nmap output from a scan: PORT STATE SERVICE 113/tcp closed ident 443/tcp open https 5060/tcp open sip I want to extract only open ports and save them into a variable while my script progress is…
-1
votes
4 answers

How to fix "No module named 'nmap'"

import nmap ModuleNotFoundError: No module named 'nmap' the above is the result when trying to run the code after importing nmap. (I have installed python-nmap using pip in cmd)
Yoosuf Ismath
  • 17
  • 1
  • 3
-1
votes
1 answer

Command line windows

I am just trying to run an nmap scan on my system using Go with below main function func main() { execErr := exec.Command("cmd","/c","nmap -T4 -A -v localhost") if execErr != nil { panic(execErr) } } Its panicking. I tried to search documentation…
Neo
  • 13
  • 5
-1
votes
2 answers

Python script - launch nmap with parameters

The scripts launches the application nmap. Only it doesn't print out the var to the application nmap. It does however if I print them separately. Looking for some suggestions, many thanks. Image script - Image output Script: import os import…
Olivier
  • 3
  • 1
-1
votes
1 answer

Is there a way I can detect a port "version" with Java like in Zenmap?

I am making a small project with Java sockets, it's like a port scanner and I am wondering if I can detect a port "version" like with Zenmap. In case you're not familiar with what I'm talking about, if you scan a target with zenmap then go to "Ports…
user12905383
-1
votes
1 answer

grep nmap output , print select lines

i just finshed scan a host on my internal network ... and it's vuln to smb i need to grep the select lines from the scan result root@kali:~# nmap -p445 --script smb-vuln-* 192.168.99.50 Starting Nmap 7.80 ( https://nmap.org ) at 2020-01-13…
-1
votes
1 answer

Parsing NPING with powershell

I'm not sure how to start here, but I'd like to parse the output of nping with powershell. To handle the hosts that did send a response or syn/ack packet, hostname that was resolved, and the statistics such as sent/rcvd. Maybe into a formatted…
skrap3e
  • 143
  • 1
  • 1
  • 8
-1
votes
1 answer

unable to connect to windows netcat listener

I set a netcat listener on my windows 7 machine nc -nvlp 4444 Then I try to connect to it via kali linux: nc -nv 4444 I get a connection refused. However, if I connect locally from the windows machine to the port I get a…
NoAitch
  • 21
  • 1
  • 2
-1
votes
1 answer

nmap detect service name with default port, what about using different port?

I am using nmap to scan a Linux machine. It could show me port: 3306, service name: mysql. But if I install tomcat in Linux machine and made the listening port 1818 for tomcat, it could not show me the right service name, for example apache-tomcat,…
user84592
  • 4,750
  • 11
  • 55
  • 91