From 2ea88d3403588fc2e66b81fe8408ce2bab139a5c Mon Sep 17 00:00:00 2001 From: loca1h0st Date: Tue, 11 Jun 2019 17:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BD=BF=E7=94=A8masscan?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E6=97=B6=E5=AD=98=E6=B4=BB=E6=8E=A2=E6=B5=8B?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E5=A4=B1=E6=95=88=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nascan/lib/start.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nascan/lib/start.py b/nascan/lib/start.py index db226596..0260d807 100644 --- a/nascan/lib/start.py +++ b/nascan/lib/start.py @@ -62,7 +62,9 @@ def run(self): if self.mode == 1: masscan_path = self.config_ini['Masscan'].split('|')[2] masscan_rate = self.config_ini['Masscan'].split('|')[1] - ip_list = self.get_ac_ip(ip_list) + # 如果用户在前台关闭了ICMP存活探测则进行全IP段扫描 + if self.icmp: + ip_list = self.get_ac_ip(ip_list) self.masscan_ac[0] = 1 # 如果安装了Masscan即使用Masscan进行全端口扫描 AC_PORT_LIST = self.masscan(