nmap批量掃描ssh端口

Linux · 2023-12-24 · 62 人浏览

nmap是一款强大的掃描程式,可以通過命令探測指定主機的信息
本期帶來nmap批量掃描IPS.txt文件下的ssh端口,Linux環境
假設你在根目錄下,即 cd /
1.首先創建IPS.txt文件,每行一個IP地址
2.安裝nmap程式

Debian/Ubuntu:

sudo apt update -y && sudo apt install -y nmap

CentOS:

sudo yum install -y nmap

3.安裝完成后運行:

nmap -p 22 -open -T4 -v -oG result.txt -iL IPS.txt

獲取到的結果會輸出在result.txt文件

本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao