- Packages and Binaries:
- ndiff
- nmap-common
- Nmap �� �������� kali linux
- Nmap Package Description
- Tools included in the nmap package
- ndiff – Utility to compare the results of Nmap scans
- ncat – Concatenate and redirect sockets
- nmap – The Network Mapper
- nmap Usage Example
- nping Usage Example
- ndiff Usage Example
- ncat Usage Example
- ALL NEW FOR 2020
Packages and Binaries:
ncat is a reimplementation of Netcat by the NMAP project, providing most of the features present in the original implementations, along with some new features such as IPv6 and SSL support. Port scanning support has been removed.
Installed size: 776 KB
How to install: sudo apt install ncat
Concatenate and redirect sockets
ndiff
Ndiff is a tool to aid in the comparison of Nmap scans. It takes two Nmap XML output files and prints the differences between them them: hosts coming up and down, ports becoming open or closed, and things like that. It can produce output in human-readable text or machine-readable XML formats.
Installed size: 383 KB
How to install: sudo apt install ndiff
ndiff
Utility to compare the results of Nmap scans
Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection (determine service protocols and application versions listening behind ports), and TCP/IP fingerprinting (remote host OS or device identification). Nmap also offers flexible target and port specification, decoy/stealth scanning, sunRPC scanning, and more. Most Unix and Windows platforms are supported in both GUI and commandline modes. Several popular handheld devices are also supported, including the Sharp Zaurus and the iPAQ.
Installed size: 4.81 MB
How to install: sudo apt install nmap
- libc6
- libgcc-s1
- liblinear4
- liblua5.3-0
- libpcre3
- libssh2-1
- libssl1.1
- libstdc++6
- lua-lpeg
- nmap-common
- zlib1g
Network exploration tool and security / port scanner
nping
Network packet generation tool / ping utility
nmap-common
Nmap is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection (determine service protocols and application versions listening behind ports), and TCP/IP fingerprinting (remote host OS or device identification). Nmap also offers flexible target and port specification, decoy/stealth scanning, sunRPC scanning, and more. Most Unix and Windows platforms are supported in both GUI and commandline modes. Several popular handheld devices are also supported, including the Sharp Zaurus and the iPAQ.
This package contains the nmap files shared by all architectures.
Installed size: 20.28 MB
How to install: sudo apt install nmap-common
Источник
Nmap �� �������� kali linux
Nmap Package Description
Nmap (“Network Mapper”) is a free and open source (license) utility for network discovery and security auditing. Many systems and network administrators also find it useful for tasks such as network inventory, managing service upgrade schedules, and monitoring host or service uptime. Nmap uses raw IP packets in novel ways to determine what hosts are available on the network, what services (application name and version) those hosts are offering, what operating systems (and OS versions) they are running, what type of packet filters/firewalls are in use, and dozens of other characteristics. It was designed to rapidly scan large networks, but works fine against single hosts. Nmap runs on all major computer operating systems, and official binary packages are available for Linux, Windows, and Mac OS X. In addition to the classic command-line Nmap executable, the Nmap suite includes an advanced GUI and results viewer (Zenmap), a flexible data transfer, redirection, and debugging tool (Ncat), a utility for comparing scan results (Ndiff), and a packet generation and response analysis tool (Nping).
Nmap was named “Security Product of the Year” by Linux Journal, Info World, LinuxQuestions.Org, and Codetalker Digest. It was even featured in twelve movies, including The Matrix Reloaded, Die Hard 4, Girl With the Dragon Tattoo, and The Bourne Ultimatum.
Nmap is …
- Flexible: Supports dozens of advanced techniques for mapping out networks filled with IP filters, firewalls, routers, and other obstacles. This includes many port scanning mechanisms (both TCP & UDP), OS detection, version detection, ping sweeps, and more. See the documentation page.
- Powerful: Nmap has been used to scan huge networks of literally hundreds of thousands of machines.
- Portable: Most operating systems are supported, including Linux, Microsoft Windows, FreeBSD, OpenBSD, Solaris, IRIX, Mac OS X, HP-UX, NetBSD, Sun OS, Amiga, and more.
- Easy: While Nmap offers a rich set of advanced features for power users, you can start out as simply as “nmap -v -A targethost”. Both traditional command line and graphical (GUI) versions are available to suit your preference. Binaries are available for those who do not wish to compile Nmap from source.
- Free: The primary goals of the Nmap Project is to help make the Internet a little more secure and to provide administrators/auditors/hackers with an advanced tool for exploring their networks. Nmap is available for free download, and also comes with full source code that you may modify and redistribute under the terms of the license.
- Well Documented: Significant effort has been put into comprehensive and up-to-date man pages, whitepapers, tutorials, and even a whole book! Find them in multiple languages here.
- Supported: While Nmap comes with no warranty, it is well supported by a vibrant community of developers and users. Most of this interaction occurs on the Nmap mailing lists. Most bug reports and questions should be sent to the nmap-dev list, but only after you read the guidelines. We recommend that all users subscribe to the low-traffic nmap-hackers announcement list. You can also find Nmap on Facebook and Twitter. For real-time chat, join the #nmap channel on Freenode or EFNet.
- Acclaimed: Nmap has won numerous awards, including “Information Security Product of the Year” by Linux Journal, Info World and Codetalker Digest. It has been featured in hundreds of magazine articles, several movies, dozens of books, and one comic book series. Visit the press page for further details.
- Popular: Thousands of people download Nmap every day, and it is included with many operating systems (Redhat Linux, Debian Linux, Gentoo, FreeBSD, OpenBSD, etc). It is among the top ten (out of 30,000) programs at the Freshmeat.Net repository. This is important because it lends Nmap its vibrant development and user support communities.
Tools included in the nmap package
nping – Network packet generation tool / ping utility
# nping -h
Nping 0.7.70 ( https://nmap.org/nping )
Usage: nping [Probe mode] [Options]
TARGET SPECIFICATION:
Targets may be specified as hostnames, IP addresses, networks, etc.
Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.*.1-24
PROBE MODES:
—tcp-connect : Unprivileged TCP connect probe mode.
—tcp : TCP probe mode.
—udp : UDP probe mode.
—icmp : ICMP probe mode.
—arp : ARP/RARP probe mode.
—tr, —traceroute : Traceroute mode (can only be used with
TCP/UDP/ICMP modes).
TCP CONNECT MODE:
-p, —dest-port
: Set destination port(s).
-g, —source-port
: Try to use a custom source port.
TCP PROBE MODE:
-g, —source-port
: Set source port.
-p, —dest-port
: Set source port.
-p, —dest-port
: Set destination port(s).
—badsum : Use a random invalid checksum.
ICMP PROBE MODE:
—icmp-type : ICMP type.
—icmp-code : ICMP code.
—icmp-id : Set identifier.
—icmp-seq : Set sequence number.
—icmp-redirect-addr : Set redirect address.
—icmp-param-pointer
: Include a custom ASCII text.
—data-length : Include len random bytes as payload.
ECHO CLIENT/SERVER:
—echo-client
: Run Nping in client mode.
—echo-server
: Run Nping in server mode.
—echo-port
to listen or connect.
—no-crypto : Disable encryption and authentication.
—once : Stop the server after one connection.
—safe-payloads : Erase application data in echoed packets.
TIMING AND PERFORMANCE:
Options which take are in seconds, or append ‘ms’ (milliseconds),
‘s’ (seconds), ‘m’ (minutes), or ‘h’ (hours) to the value (e.g. 30m, 0.25h).
—delay : Adjust delay between probes.
—rate : Send num packets per second.
MISC:
-h, —help : Display help information.
-V, —version : Display current version number.
-c, —count : Stop after rounds.
-e, —interface : Use supplied network interface.
-H, —hide-sent : Do not display sent packets.
-N, —no-capture : Do not try to capture replies.
—privileged : Assume user is fully privileged.
—unprivileged : Assume user lacks raw socket privileges.
—send-eth : Send packets at the raw Ethernet layer.
—send-ip : Send packets using raw IP sockets.
—bpf-filter : Specify custom BPF filter.
OUTPUT:
-v : Increment verbosity level by one.
-v[level] : Set verbosity level. E.g: -v4
-d : Increment debugging level by one.
-d[level] : Set debugging level. E.g: -d3
-q : Decrease verbosity level by one.
-q[N] : Decrease verbosity level N times
—quiet : Set verbosity and debug level to minimum.
—debug : Set verbosity and debug to the max level.
EXAMPLES:
nping scanme.nmap.org
nping —tcp -p 80 —flags rst —ttl 2 192.168.1.1
nping —icmp —icmp-type time —delay 500ms 192.168.254.254
nping —echo-server «public» -e wlan0 -vvv
nping —echo-client «public» echo.nmap.org —tcp -p1-1024 —flags ack
SEE THE MAN PAGE FOR MANY MORE OPTIONS, DESCRIPTIONS, AND EXAMPLES
ndiff – Utility to compare the results of Nmap scans
# ndiff -h
Usage: /usr/bin/ndiff [option] FILE1 FILE2
Compare two Nmap XML files and display a list of their differences.
Differences include host state changes, port state changes, and changes to
service and OS detection.
-h, —help display this help
-v, —verbose also show hosts and ports that haven’t changed.
—text display output in text format (default)
—xml display output in XML format
ncat – Concatenate and redirect sockets
# ncat -h
Ncat 7.70 ( https://nmap.org/ncat )
Usage: ncat [options] [hostname] [port]
Options taking a time assume seconds. Append ‘ms’ for milliseconds,
‘s’ for seconds, ‘m’ for minutes, or ‘h’ for hours (e.g. 500ms).
-4 Use IPv4 only
-6 Use IPv6 only
-U, —unixsock Use Unix domain sockets only
-C, —crlf Use CRLF for EOL sequence
-c, —sh-exec Executes the given command via /bin/sh
-e, —exec Executes the given command
—lua-exec Executes the given Lua script
-g hop1[,hop2. ] Loose source routing hop points (8 max)
-G Loose source routing hop pointer (4, 8, 12, . )
-m, —max-conns Maximum simultaneous connections
-h, —help Display this help screen
-d, —delay Wait between read/writes
-o, —output Dump session data to a file
-x, —hex-dump Dump session data as hex to a file
-i, —idle-timeout Idle read/write timeout
-p, —source-port port Specify source port to use
-s, —source addr Specify source address to use (doesn’t affect -l)
-l, —listen Bind and listen for incoming connections
-k, —keep-open Accept multiple connections in listen mode
-n, —nodns Do not resolve hostnames via DNS
-t, —telnet Answer Telnet negotiations
-u, —udp Use UDP instead of default TCP
—sctp Use SCTP instead of default TCP
-v, —verbose Set verbosity level (can be used several times)
-w, —wait Connect timeout
-z Zero-I/O mode, report connection status only
—append-output Append rather than clobber specified output files
—send-only Only send data, ignoring received; quit on EOF
—recv-only Only receive data, never send anything
—allow Allow only given hosts to connect to Ncat
—allowfile A file of hosts allowed to connect to Ncat
—deny Deny given hosts from connecting to Ncat
—denyfile A file of hosts denied from connecting to Ncat
—broker Enable Ncat’s connection brokering mode
—chat Start a simple Ncat chat server
—proxy Specify address of host to proxy through
—proxy-type Specify proxy type («http» or «socks4» or «socks5»)
—proxy-auth Authenticate with HTTP or SOCKS proxy server
—ssl Connect or listen with SSL
—ssl-cert Specify SSL certificate file (PEM) for listening
—ssl-key Specify SSL private key (PEM) for listening
—ssl-verify Verify trust and domain name of certificates
—ssl-trustfile PEM file containing trusted SSL certificates
—ssl-ciphers Cipherlist containing SSL ciphers to use
—ssl-alpn ALPN protocol list to use.
—version Display Ncat’s version information and exit
See the ncat(1) manpage for full options, descriptions and usage examples
nmap – The Network Mapper
# nmap -h
Nmap 7.70 ( https://nmap.org )
Usage: nmap [Scan Type(s)] [Options]
TARGET SPECIFICATION:
Can pass hostnames, IP addresses, networks, etc.
Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254
-iL : Input from list of hosts/networks
-iR : Choose random targets
—exclude : Exclude hosts/networks
—excludefile : Exclude list from file
HOST DISCOVERY:
-sL: List Scan — simply list targets to scan
-sn: Ping Scan — disable port scan
-Pn: Treat all hosts as online — skip host discovery
-PS/PA/PU/PY[portlist]: TCP SYN/ACK, UDP or SCTP discovery to given ports
-PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes
-PO[protocol list]: IP Protocol Ping
-n/-R: Never do DNS resolution/Always resolve [default: sometimes]
—dns-servers : Specify custom DNS servers
—system-dns: Use OS’s DNS resolver
—traceroute: Trace hop path to each host
SCAN TECHNIQUES:
-sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans
-sU: UDP Scan
-sN/sF/sX: TCP Null, FIN, and Xmas scans
—scanflags : Customize TCP scan flags
-sI : Idle scan
-sY/sZ: SCTP INIT/COOKIE-ECHO scans
-sO: IP protocol scan
-b : FTP bounce scan
PORT SPECIFICATION AND SCAN ORDER:
-p
: Only scan specified ports
Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9
—exclude-ports
: Exclude the specified ports from scanning
-F: Fast mode — Scan fewer ports than the default scan
-r: Scan ports consecutively — don’t randomize
—top-ports : Scan most common ports
—port-ratio : Scan ports more common than
SERVICE/VERSION DETECTION:
-sV: Probe open ports to determine service/version info
—version-intensity : Set from 0 (light) to 9 (try all probes)
—version-light: Limit to most likely probes (intensity 2)
—version-all: Try every single probe (intensity 9)
—version-trace: Show detailed version scan activity (for debugging)
SCRIPT SCAN:
-sC: equivalent to —script=default
—script= : is a comma separated list of
directories, script-files or script-categories
—script-args= : provide arguments to scripts
—script-args-file=filename: provide NSE script args in a file
—script-trace: Show all data sent and received
—script-updatedb: Update the script database.
—script-help= : Show help about scripts.
is a comma-separated list of script-files or
script-categories.
OS DETECTION:
-O: Enable OS detection
—osscan-limit: Limit OS detection to promising targets
—osscan-guess: Guess OS more aggressively
TIMING AND PERFORMANCE:
Options which take are in seconds, or append ‘ms’ (milliseconds),
‘s’ (seconds), ‘m’ (minutes), or ‘h’ (hours) to the value (e.g. 30m).
-T : Set timing template (higher is faster)
—min-hostgroup/max-hostgroup : Parallel host scan group sizes
—min-parallelism/max-parallelism : Probe parallelization
—min-rtt-timeout/max-rtt-timeout/initial-rtt-timeout : Specifies
probe round trip time.
—max-retries
—host-timeout : Give up on target after this long
—scan-delay/—max-scan-delay : Adjust delay between probes
—min-rate : Send packets no slower than per second
—max-rate : Send packets no faster than per second
FIREWALL/IDS EVASION AND SPOOFING:
-f; —mtu : fragment packets (optionally w/given MTU)
-D : Cloak a scan with decoys
-S : Spoof source address
-e : Use specified interface
-g/—source-port
: Use given port number
—proxies : Relay connections through HTTP/SOCKS4 proxies
—data : Append a custom payload to sent packets
—data-string : Append a custom ASCII string to sent packets
—data-length : Append random data to sent packets
—ip-options : Send packets with specified ip options
—ttl : Set IP time-to-live field
—spoof-mac : Spoof your MAC address
—badsum: Send packets with a bogus TCP/UDP/SCTP checksum
OUTPUT:
-oN/-oX/-oS/-oG : Output scan in normal, XML, s| : Output in the three major formats at once
-v: Increase verbosity level (use -vv or more for greater effect)
-d: Increase debugging level (use -dd or more for greater effect)
—reason: Display the reason a port is in a particular state
—open: Only show open (or possibly open) ports
—packet-trace: Show all packets sent and received
—iflist: Print host interfaces and routes (for debugging)
—append-output: Append to rather than clobber specified output files
—resume : Resume an aborted scan
—stylesheet
: XSL stylesheet to transform XML output to HTML
—webxml: Reference stylesheet from Nmap.Org for more portable XML
—no-stylesheet: Prevent associating of XSL stylesheet w/XML output
MISC:
-6: Enable IPv6 scanning
-A: Enable OS detection, version detection, script scanning, and traceroute
—datadir : Specify custom Nmap data file location
—send-eth/—send-ip: Send using raw ethernet frames or IP packets
—privileged: Assume that the user is fully privileged
—unprivileged: Assume the user lacks raw socket privileges
-V: Print version number
-h: Print this help summary page.
EXAMPLES:
nmap -v -A scanme.nmap.org
nmap -v -sn 192.168.0.0/16 10.0.0.0/8
nmap -v -iR 10000 -Pn -p 80
SEE THE MAN PAGE (https://nmap.org/book/man.html) FOR MORE OPTIONS AND EXAMPLES
nmap Usage Example
Scan in verbose mode (-v), enable OS detection, version detection, script scanning, and traceroute (-A), with version detection (-sV) against the target IP (192.168.1.1):
# nmap -v -A -sV 192.168.1.1
Starting Nmap 6.45 ( http://nmap.org ) at 2014-05-13 18:40 MDT
NSE: Loaded 118 scripts for scanning.
NSE: Script Pre-scanning.
Initiating ARP Ping Scan at 18:40
Scanning 192.168.1.1 [1 port]
Completed ARP Ping Scan at 18:40, 0.06s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 18:40
Completed Parallel DNS resolution of 1 host. at 18:40, 0.00s elapsed
Initiating SYN Stealth Scan at 18:40
Scanning router.localdomain (192.168.1.1) [1000 ports]
Discovered open port 53/tcp on 192.168.1.1
Discovered open port 22/tcp on 192.168.1.1
Discovered open port 80/tcp on 192.168.1.1
Discovered open port 3001/tcp on 192.168.1.1
nping Usage Example
Using TCP mode (–tcp) to probe port 22 (-p 22) using the SYN flag (–flags syn) with a TTL of 2 (–ttl 2) on the remote host (192.168.1.1):
# nping —tcp -p 22 —flags syn —ttl 2 192.168.1.1
Starting Nping 0.6.45 ( http://nmap.org/nping ) at 2014-05-13 18:43 MDT
SENT (0.0673s) TCP 192.168.1.15:60125 > 192.168.1.1:22 S ttl=2 iplen=40 seq=1720523417 win=1480
RCVD (0.0677s) TCP 192.168.1.1:22 > 192.168.1.15:60125 SA ttl=64 iplen=44 seq=3377886789 win=5840
SENT (1.0678s) TCP 192.168.1.15:60125 > 192.168.1.1:22 S ttl=2 iplen=40 seq=1720523417 win=1480
RCVD (1.0682s) TCP 192.168.1.1:22 > 192.168.1.15:60125 SA ttl=64 iplen=44 seq=3393519366 win=5840
SENT (2.0693s) TCP 192.168.1.15:60125 > 192.168.1.1:22 S ttl=2 iplen=40 seq=1720523417 win=1480
RCVD (2.0696s) TCP 192.168.1.1:22 > 192.168.1.15:60125 SA ttl=64 iplen=44 seq=3409166569 win=5840
SENT (3.0707s) TCP 192.168.1.15:60125 > 192.168.1.1:22 S ttl=2 iplen=40 seq=1720523417 win=1480
RCVD (3.0710s) TCP 192.168.1.1:22 > 192.168.1.15:60125 SA ttl=64 iplen=44 seq=3424813300 win=5840
SENT (4.0721s) TCP 192.168.1.15:60125 > 192.168.1.1:22 S ttl=2 iplen=40 seq=1720523417 win=1480
RCVD (4.0724s) TCP 192.168.1.1:22 > 192.168.1.15:60125 SA ttl=64 iplen=44 seq=3440460772 win=5840
Max rtt: 0.337ms | Min rtt: 0.282ms | Avg rtt: 0.296ms
Raw packets sent: 5 (200B) | Rcvd: 5 (230B) | Lost: 0 (0.00%)
Nping done: 1 IP address pinged in 4.13 seconds
ndiff Usage Example
Compare yesterday’s port scan (yesterday.xml) with the scan from today (today.xml):
# ndiff yesterday.xml today.xml
-Nmap 6.45 scan initiated Tue May 13 18:46:43 2014 as: nmap -v -F -oX yesterday.xml 192.168.1.1
+Nmap 6.45 scan initiated Tue May 13 18:47:58 2014 as: nmap -v -F -oX today.xml 192.168.1.1
endian.localdomain (192.168.1.1, 00:01:6C:6F:DD:D1):
-Not shown: 96 filtered ports
+Not shown: 97 filtered ports
PORT STATE SERVICE VERSION
-22/tcp open ssh
ncat Usage Example
Be verbose (-v), running /bin/bash on connect (–exec “/bin/bash”), only allowing 1 IP address (–allow 192.168.1.123), listen on TCP port 4444 (-l 4444), and keep the listener open on disconnect (–keep-open):
# ncat -v —exec «/bin/bash» —allow 192.168.1.123 -l 4444 —keep-open
Ncat: Version 6.45 ( http://nmap.org/ncat )
Ncat: Listening on . 4444
Ncat: Listening on 0.0.0.0:4444
Ncat: Connection from 192.168.1.123.
Ncat: Connection from 192.168.1.123:39501.
Ncat: Connection from 192.168.1.15.
Ncat: Connection from 192.168.1.15:60393.
Ncat: New connection denied: not allowed
ALL NEW FOR 2020
Penetration Testing with Kali Linux (PWK)
Источник