Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update batch.bat #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions batch.bat
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
:: Init Script for cmd.exe
:: Created as part of batch_scan
:: #########################################################################
:: 1 ��������״����иó��������ã�������--����--һ��--�û��ļ����ļ���(D:\appscan\result);��־�ļ����ļ���(D:\appscan\Logs)
:: 2 ��������״����иó��������ã�������--����--ɨ��ѡ��--ָʾɨ���Ƿ����(��ѡ)��ɨ��������Զ�����(��ѡ)
@REM 3 ��������״����иó��������ã�������--ɨ��--ɨ������--����--���Բ���--ѡ��ò��Ժ󵼳���D:\appscan\attack.scant
@REM 4 �������32λϵͳ���뽫·��C:\Program Files (x86)\IBM\AppScan Standard ��Ϊ C:\Program Files\IBM\AppScan Standard
:: ###########################################################################
:: 1 如果你是首次运行该程序,请设置:主界面--工具--一般--用户文件的文件夹(D:\appscan\result);日志文件的文件夹(D:\appscan\Logs)
:: 2 如果你是首次运行该程序,请设置:主界面--工具--扫描选项--指示扫描是否完成(勾选)、扫描过程中自动保存(勾选)
@REM 3 如果你是首次运行该程序,请设置:主界面--扫描--扫描配置--测试--测试策略--选择好策略后导出到D:\appscan\attack.scant
@REM 4 如果你是32位系统,请将路径C:\Program Files (x86)\IBM\AppScan Standard 改为 C:\Program Files\IBM\AppScan Standard

::@mode con cp select=936
@chcp 936
echo 1 ��������״����иó��������ã�������--����--һ��--�û��ļ����ļ���(D:\appscan\result);��־�ļ����ļ���(D:\appscan\Logs)
echo 2 ��������״����иó��������ã�������--����--ɨ��ѡ��--ָʾɨ���Ƿ����(��ѡ)��ɨ��������Զ�����(��ѡ)
echo 3 ��������״����иó��������ã�������--ɨ��--ɨ������--����--���Բ���--ѡ��ò��Ժ󵼳���D:\appscan\attack.scant
echo 4 �������32λϵͳ���뽫·��C:\Program Files (x86)\IBM\AppScan Standard ��Ϊ C:\Program Files\IBM\AppScan Standard
echo 5 �ڵ�ǰĿ¼��ÿ��urltoscan�ļ��У��ֱ𱣴�3��URl����Ϊ�������Է��֣�ͬʱ��������ɨ�������ܺ�Ч����ߵġ�
echo 1 如果你是首次运行该程序,请设置:主界面--工具--一般--用户文件的文件夹(D:\appscan\result);日志文件的文件夹(D:\appscan\Logs)
echo 2 如果你是首次运行该程序,请设置:主界面--工具--扫描选项--指示扫描是否完成(勾选)、扫描过程中自动保存(勾选)
echo 3 如果你是首次运行该程序,请设置:主界面--扫描--扫描配置--测试--测试策略--选择好策略后导出到D:\appscan\attack.scant
echo 4 如果你是32位系统,请将路径C:\Program Files (x86)\IBM\AppScan Standard 改为 C:\Program Files\IBM\AppScan Standard
echo 5 在当前目录的每个urltoscan文件中,分别保存3个URl。因为经过测试发现,同时进行三个扫描是性能和效率最高的。
@echo off
@REM delete the script created by the last time
::@DEL urltoscan*.bat
Expand All @@ -26,14 +26,14 @@ echo 5
::for /F "delims=/,tokens=3" %%f in (urltoscan.txt) do echo %%f >> urltoname.txt


::��ÿ��urltoscan�ļ��У�����3��URl����Ϊ�������Է��֣�ͬʱ��������ɨ�������ܺ�Ч����ߵġ�
::在每个urltoscan文件中,保存3个URl。因为经过测试发现,同时进行三个扫描是性能和效率最高的。
for /F %%u in (urltoscan0.txt) do echo appscancmd /e /su %%u /st D:\appscan\attack.scant /d D:\appscan\result\ /v >> urltoscan0.bat
for /F %%u in (urltoscan1.txt) do echo appscancmd /e /su %%u /st D:\appscan\attack.scant /d D:\appscan\result\ /v >> urltoscan1.bat
for /F %%u in (urltoscan2.txt) do echo appscancmd /e /su %%u /st D:\appscan\attack.scant /d D:\appscan\result\ /v >> urltoscan2.bat

echo "������ɣ�����������ɨ��ִ��"
echo "�������������Եȣ�"
echo "���ڵ�ǰĿ¼�·ֱ���urltoscan1.bat��urltoscan2.bat"
echo "操作完成,已生成批量扫描执行"
echo "即将启动,请稍等!"
echo "请在当前目录下分别点击urltoscan1.baturltoscan2.bat"

urltoscan0.bat

Expand Down