-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmob_reaper.py
More file actions
61 lines (48 loc) · 1.61 KB
/
mob_reaper.py
File metadata and controls
61 lines (48 loc) · 1.61 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
import os
from common import helper
from apps.andro_goat import manager as androgoat
from apps.va_lottery import manager as vallotery
from apps.scooters import manager as scooters
from apps.ohlq import manager as ohql
from apps.dfd import manager as dfd
from apps.solidcore import manager as solidcores
from service.log_service import log_splash
from dotenv import load_dotenv
import os
import sys
""""
Main file. Responsible for centralize all the supported applications
"""
# - load the .env file -
load_dotenv()
PROXY_HOST = os.getenv("PROXY_HOST")
PROXY_PORT = os.getenv("PROXY_PORT")
PACKAGE_NAME = os.getenv("PACKAGE_NAME")
def do_test():
helper.check_device()
print(f"[+] Initiating tests on: {PACKAGE_NAME}")
helper.set_proxy(PROXY_HOST, PROXY_PORT)
helper.start_webhook()
match PACKAGE_NAME:
case "owasp.sat.agoat":
androgoat.do_test(PACKAGE_NAME)
case "com.va.lottery.uat":
vallotery.do_test(PACKAGE_NAME)
case "com.ohlq.app.stage":
ohql.do_test(PACKAGE_NAME)
case "com.ohlq.app.dev":
ohql.do_test(PACKAGE_NAME)
case "com.trubeacon.scooters_mobile_android":
scooters.do_test(PACKAGE_NAME)
case "com.bluespring.solidcorereactnative.staging":
solidcores.do_test(PACKAGE_NAME)
case "com.telus.health.chatbot.sdk":
dfd.do_test(PACKAGE_NAME)
case _:
print(f"[-] Error: This application is not mapped: {PACKAGE_NAME}")
helper.close_webhook()
sys.exit()
def main():
log_splash()
do_test()
main()