-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathandrobugs_framework.bat
32 lines (24 loc) · 1.05 KB
/
androbugs_framework.bat
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
@echo off
setlocal
set PathAPK=%1
set FileApk=%2
set Timestamp=%3
set Documentacion=%4
set DirApp=%5
set Server=%6
set Username=%7
set Password=%8
set PathAPK=%PathAPK:"=%
set FileApk=%FileApk:"=%
set DirApp=%DirApp:"=%
set Documentacion=%Documentacion:"=%
set Documentacion="%Documentacion%\AndroBugs_Framework - %FileApk%_%Timestamp%.txt"
@title=[AndroBugs_Framework] - %FileApk%
rem $git clone https://github.com/AndroBugs/AndroBugs_Framework
"%~dp0plink.exe" -P 22 -ssh -l %Username% -pw %Password% -C %Server% "mkdir '/tmp/%Timestamp%'"
"%~dp0pscp.exe" -l %Username% -pw %Password% -C "%PathAPK%" %Server%:"/tmp/%Timestamp%/%FileApk%_%Timestamp%.apk"
"%~dp0plink.exe" -P 22 -ssh -l %Username% -pw %Password% -C %Server% "cd '%DirApp%' ; python ./androbugs.py -f '/tmp/%Timestamp%/%FileApk%_%Timestamp%.apk' -e 2 -o '/tmp/%Timestamp%'"
"%~dp0pscp.exe" -P 22 -l %Username% -pw %Password% -C %Server%:"/tmp/%Timestamp%/*.txt" %Documentacion%
"%~dp0plink.exe" -P 22 -ssh -l %Username% -pw %Password% -C %Server% "rm -f '/tmp/%Timestamp%/'"
echo %Documentacion%
pause