内网渗透学习

栏目: 编程工具 · 发布时间: 6年前

内容简介:-sn 不扫描端口,只ping主机-PE 通过ICMP echo判定主机是否存活-n 不反向解析IP地址到域名
nmap -v -sn -PE -n --min-hostgroup 1024 --min-parallelism 1024 -oX nmap_output.xml www.lijiejie.com/16
nmap -sP --min-hostgroup 1024 --min-parallelism 1024 -iL ip.txt -oG ip_output1113.txt

-sn 不扫描端口,只ping主机

-PE 通过ICMP echo判定主机是否存活

-n 不反向解析IP地址到域名

–min-hostgroup 1024 最小分组设置为1024个IP地址,当IP太多时,nmap需要分组,然后串行扫描

–min-parallelism 1024 这个参数非常关键,为了充分利用系统和网络资源,我们将探针的数目限定最小为1024

-oX nmap_output.xml 将结果以XML格式输出,文件名为nmap_output.xml

一旦扫描结束,解析XML文档即可得到哪些IP地址是存活的。

nmap -sS -p 1-65535 -v 14.116.140.49
参数:
-sS    TCP SYN扫描    nmap -sS 192.168.1.254   
-P     指定端口扫描   nmap -sS -P 1-65535 192.168.1.254
-V     详细信息       nmap -V -sS 192.168.1.254

ms17-010

利用教程 https://www.jianshu.com/p/45ad9a534fb4

两种模块的利弊 https://www.bodkin.ren/index.php/archives/555/

存活探测

随机生成A段地址

import random

f=open("ip.txt",'w+')
for x in range(0,255):
	for i in range(0,255):
		ip='10.'+str(x)+'.'+str(random.randint(0,255))+'.'+str(random.randint(0,255))+"\n"
		f.writelines(ip)

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

How Great Decisions Get Made

How Great Decisions Get Made

Maruska, Don / 2006-2 / $ 20.28

All too often, solving tough work issues can become a tug of war as clashing departments, priorities, personality styles, and other concerns threaten to destroy any possibility of a successful conclus......一起来看看 《How Great Decisions Get Made》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具