APPSCAN之批量漏扫

0x00前言

      相信用过AWVS的朋友都知道,它具有一个批量扫描多个网站的功能,实在是方便我们平时的大量扫描任务。那么同学们是否也知道其实APPSCAN也具有这个功能,它的命令行形式可以实现批量扫描并且实现批量产生各种漏洞扫描报告。下面我们将来介绍APPSCAN的批量扫描功能。

0x01 参数

首先我们进入appscan 的安装目录,然后进行如下命令。在此我们重点解释常用的参数,其他参数信息可以用 -h 来获取。

C:\Program Files (x86)\IBM\AppScan Standard
$ appscancmd -h #windows系统不区分大小写的,所以我们可以统一小写。
Program Usage:

AppScanCMD exec|ex|e
Parametrs:
[ /starting_url|/surl|/su <https://demo.testfire.net> ] #填写要扫描的URL(网站)。例如,/su https://demo.testfire.net
[ /dest_scan|/dest|/d <full_path> ]#扫描XYZ产生的结果文件XYZ.scan的保存路径。例如,/d  E:\appscan\XYZ.scan 
[ /base_scan|/base|/b <full_path> ]  #扫描YYMM的扫描模板。例如我们首先使用界面选择好策略等,然后保存在,E:\appscan\YYMM.scan
[ /scan_template|/stemplate|/st <full_path> ] #这个是我们扫描的模板,例如,E:\appscan\attack.scant (该模板预定好扫描策略,往后的所有URL都按照这种策略。
[ /policy_file|/pfile|/pf <full_path> ]  #这个是策略文件,我们可以自定义策略文件,然后按照扫描模板的方式保存使用。
[ /report_file|/rf <full_path> ]   #这个产生扫描报告的。例如,/rf E:\appscan\YYMM 
[ /report_type|/rt <Xml,Pdf,Rtf,Txt,Html,rc_ase> {xml} ] # 扫描报告的格式。例如,/rt Pdf
[ /min_severity|/msev <Informational,Low,Medium,High> {informational} ]  #扫描报告中的威胁严重程度。例如,/msev low (这里的意思是指在报告中只记录威胁程度为低及其以上的漏洞,不记录information这类威胁的信息。(默认是记录information及其以上的信息)
Flags:
[ /verbose|/v {false} ]   # 显示输出信息。(默认是不输出扫描过程的指示信息)例如,/v 
[ /scan_log|/sl {false} ]  # 保存扫描日志。(默认是不输出扫描过程的日志信息)例如,/sl
 

0x02 批量扫描

1 策略不同地 扫描多个网站而不产生报告

#首先使用界面版配置好www.YYMM.com.scan的扫描策略,然后保存在E:\appscan\www.YYMM.com.scan。这种方法适合每个网站的扫描策略均是不同的时候,

appscancmd /e /b E:\appscan\www.YYMM.com.scan /d E:\appscan\result\www.YYMM.com.scan /v  #从 www.YYMM.com.scan 读取配置进行扫描,扫描完成的结果文件命名为www.YYMM.com.scan并且保存在E:\appscan\result\www.YYMM.com.scan。使用同样的方法可以扫描其他网站。

2策略相同地 扫描多个网站而不产生报告

C:\Program Files (x86)\IBM\AppScan Standard
$ appscancmd /e /su https://demo.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

 #设置要扫描的网站为https://demo.testfire.net ,使用扫描模板E:\appscan\attack.scant,扫描完成的结果文件命名为demo.testfire.net 并且保存在E:\appscan\result\demo.testfire.net .scan。使用同样的方法可以扫描其他网站。

3 产生报告

C:\Program Files (x86)\IBM\AppScan Standard
$ appscancmd /e /su https://demo.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /rf E:\appscan\result\demo.testfire.net.pdf /rt Pdf /v.
 

0x03 综合批量扫描

1 将以上三个命令重复使用,配置成不同网站就可以实现批量扫描了。
2 bat批量扫描示例1:

@echo off
cd /d C:\Program Files\IBM\AppScan Standard
appscancmd /e /su https://demo1.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

appscancmd /e /su https://demo2.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

appscancmd /e /su https://demo3.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

appscancmd /e /su https://demo4.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

pause

bat批量扫描示例2:

@echo off
cd /d C:\Program Files\IBM\AppScan Standard
appscancmd /e /su https://demo1.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.
appscancmd /e /su https://demo2.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

appscancmd /e /su https://demo3.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

appscancmd /e /su https://demo4.testfire.net /st E:\appscan\attack.scant /d E:\appscan\result\demo.testfire.net.scan /v.

pause

bat批量导入网址3:

@echo off
echo cd /d C:\Program Files (x86)\IBM\AppScan Standard
for /F %%u in (D:\appscan\toscanurl.txt) do echo appscancmd /e /su %%u /st D:\appscan\attack.scant /d D:\appscan\result\ /v
call batch.bat > batch_scan.bat
batch_scan.bat

欢迎大家分享更好的思路,热切期待^^_^^ !!!

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
请注意,我所提供的信息仅基于一般的了解,具体使用方法可能因版本和配置而有所不同。以下是一般步骤来进行AppScan的客户端漏洞扫描: 1. 配置目标:首先,您需要配置要扫描的目标应用程序。这可以是一个应用程序的URL或本地安装的应用程序。 2. 创建扫描策略:您可以创建一个扫描策略,以定义要检测的漏洞类型和其他配置设置。可以根据需要自定义策略,或使用预定义的模板。 3. 配置认证:如果目标应用程序需要身份验证,您需要提供相关的认证信息,以便AppScan能够成功登录并扫描受保护的页面。 4. 开始扫描:一旦目标和策略都配置好了,您可以开始扫描过程。AppScan将模拟用户行为,通过发送请求和分析响应来检测潜在的漏洞。 5. 分析结果:扫描完成后,您可以查看扫描结果。AppScan将提供一个详细的报告,其中包含发现的漏洞、风险评级、修复建议等信息。 6. 修复漏洞:根据报告中的建议,您可以采取相应的措施来修复发现的漏洞。这可能涉及修补应用程序的代码,配置服务器设置或采取其他安全措施。 请注意,客户端漏洞扫描是一个复杂的过程,可能需要深入了解应用程序的架构和漏洞类型。建议在使用AppScan进行扫描之前,详细阅读相关文档和参考资料,并确保您具备必要的技术知识和经验来正确配置和解释扫描结果。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值