-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathacunetix_scan.bat
More file actions
69 lines (53 loc) · 1.78 KB
/
acunetix_scan.bat
File metadata and controls
69 lines (53 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@echo off
setlocal
set Proyecto=%1
set DirApp=%2
set URL=%3
set Documentacion=%4
set Timestamp=%5
set NRO=%6
set Documentacion=%Documentacion:"=%
set DirApp=%DirApp:"=%
set Proyecto=%Proyecto:"=%
@title=[Acunetix Scan] - %Proyecto% - %URL%
set /a SLEEP=%NRO%*20
ping -n %SLEEP% 127.0.0.1 > NUL
echo Escaneando...
rem Acunetix v6.0 - 10.50
set Doc1="%Documentacion%\AcunetixReport - %TimeStamp%-URL_%NRO%\"
set Login="%Documentacion%\..\Login.lsr"
:whileAcu1
if exist "%DirApp%\wvs_console.exe" (
tasklist /FI "IMAGENAME eq wvs_console.exe" /NH | find /C "wvs_console.exe" > "%TEMP%\acunetix_scan_count_%Timestamp%-URL_%NRO%.txt"
set /p CANT=<"%TEMP%\acunetix_scan_count_%Timestamp%-URL_%NRO%.txt"
goto Acunetix1
)
rem Acunetix v11.0
set Doc2="%Documentacion%\AcunetixReport - %TimeStamp%-URL_%NRO%.wvs"
set Login="%Documentacion%\Login.lsr"
:whileAcu2
if exist "%DirApp%\wvsc.exe" (
tasklist /FI "IMAGENAME eq wvsc.exe" /NH | find /C "wvsc.exe" > "%TEMP%\acunetix_scan_count_%Timestamp%-URL_%NRO%.txt"
set /p CANT=<"%TEMP%\acunetix_scan_count_%Timestamp%-URL_%NRO%.txt"
goto Acunetix2
)
:Acunetix1
if %CANT% GEQ 5 (
ping -n 61 127.0.0.1 > NUL && goto whileAcu1
) else (
mkdir %Doc1%
"%DirApp%\wvs_console.exe" /Scan %URL% /Profile Default /Settings default /LoginSeq %Login% /Save /SaveFolder %Doc1% /SavetoDatabase /GenerateReporte /ReporteFormat PDF /Timestamps /Verbose --GetFirstOnly=FALSE --RobotsTxt=TRUE --UseWebKit=TRUE --EnablePortScanning=TRUE --UseAcuSensor=TRUE
)
goto Fin
:Acunetix2
pause
if %CANT% GEQ 5 (
ping -n 61 127.0.0.1 > NUL && goto whileAcu2
) else (
"%DirApp%\wvsc.exe" /scan %URL% /profile Default /status /login-sequence %Login% /allow-interactive-login /save %Doc2%
)
goto Fin
:Fin
echo Finalizado
del /F "%TEMP%\acunetix_scan_count_%Timestamp%-URL_%NRO%.txt"
pause