Nmap, Port Scan, get the IP address of the ssh server, nmapssh

Source: Internet
Author: User
Tags ssh server

Nmap, Port Scan, get the IP address of the ssh server, nmapssh

Arp-a // the same network segment. ifconfig-a // old ip addr // ip a: iproute2 suitesudo nmap-sS 192.168.1. * // or sudo nmap-sS-p 22 192.168.1.0/24; if you ip address is in 192.168.1.1-255. -sP determines which hosts on the current network are online after penetrating the Intranet;-p 22 port number, ssh default port is 22;-sS is tcp syn scan (also known as semi-open or stealth scan ): e.g.: sudo nmap-p 22 -- open-sV 10.0.0.0/24 nmap: the executable name-p 22: specifies the port to test -- open: suppress output for clients that are not listening-sV: display the version string reported by the scanned server-sP: Check which hosts are live and up in Network, with this option nmap skips port detection and other things, its fast. -sS: stealthy Scan-PS: tcp ack (PA) and TCP Syn (PS); or just-PA 10.0.0.0/24: the target network, cocould have been 192.168.0.0/24 (/24 specifies a subnet of 255.255.255.0, look up slash notation)

Note: different parameters may affect the scan time and scan results. You can try different parameter combinations (sudo nmap-sP-PS22-open 10.10.40.1/24), but remember to add sudo, otherwise, nmap may not be able to send raw package, but may not be able to detect the host. Generally, you must specify some specific ports (such as ssh 22 and http 80) for scanning. Otherwise, it will take a lot of time.

Several Common commands (run nmap---help ):

Sudo nmap-sn 192.168.1. * // Ping scan and diable port scan to quickly find the host.
Sudo nmap-sn-PS22 192.168.1. * // syntax:-PS/PA/PU/PY [portlist]: tcp syn/ACK, UDP or SCTP discovery to given ports; quickly find the host that opens port 22, for ssh login.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.