|
8 | 8 | # com.alibaba.fastjson -> fastjson
|
9 | 9 | # com.google.gson -> gson
|
10 | 10 | # com.fasterxml.jackson -> jackson
|
11 |
| -# net.sf.json -> |
| 11 | +# net.sf.json -> |
12 | 12 | # javax.xml.parsers.DocumentBuilder -> dom方式
|
13 | 13 | # javax.xml.parsers.SAXParser -> sax方式
|
14 | 14 | # org.jdom.input.SAXBuilder -> jdom
|
|
28 | 28 | # 1. https://以及http://开头的
|
29 | 29 | # 2. IPv4的ip地址
|
30 | 30 | # 3. URI地址,URI不能很好的拼接所以此处忽略
|
31 |
| -filter_strs =[ |
| 31 | +filter_strs = [ |
32 | 32 | r'https://.*|http://.*',
|
33 | 33 | # r'.*://([[0-9]{1,3}\.]{3}[0-9]{1,3}).*',
|
34 | 34 | r'.*://([\d{1,3}\.]{3}\d{1,3}).*',
|
|
50 | 50 | r'.*w3school.com.cn',
|
51 | 51 | r'.*apple.com',
|
52 | 52 | r'.*.amap.com',
|
| 53 | + r'.*slf4j.org', |
53 | 54 | ]
|
54 | 55 |
|
55 | 56 | # AK集合
|
56 | 57 | filter_ak_map = {
|
57 | 58 | "Aliyun_OSS": [
|
58 |
| - r'.*accessKeyId.*".*"', |
59 |
| - r'.*accessKeySecret.*".*"', |
60 |
| - r'.*secret.*".*"' |
| 59 | + r'.*accessKeyId.*".*?"', |
| 60 | + r'.*accessKeySecret.*".*?"', |
| 61 | + r'.*secret.*".*?"' |
61 | 62 | ],
|
62 |
| - #"Amazon_AWS_Access_Key_ID": r"([^A-Z0-9]|^)(AKIA|A3T|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{12,}", |
63 |
| - #"Amazon_AWS_S3_Bucket": [ |
64 |
| - # r"//s3-[a-z0-9-]+\\.amazonaws\\.com/[a-z0-9._-]+", |
65 |
| - # r"//s3\\.amazonaws\\.com/[a-z0-9._-]+", |
66 |
| - # r"[a-z0-9.-]+\\.s3-[a-z0-9-]\\.amazonaws\\.com", |
67 |
| - # r"[a-z0-9.-]+\\.s3-website[.-](eu|ap|us|ca|sa|cn)", |
68 |
| - # r"[a-z0-9.-]+\\.s3\\.amazonaws\\.com", |
69 |
| - # r"amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" |
70 |
| - #], |
71 |
| - #"Artifactory_API_Token": r"(?:\\s|=|:|\"|^)AKC[a-zA-Z0-9]{10,}", |
72 |
| - #"Artifactory_Password": r"(?:\\s|=|:|\"|^)AP[\\dABCDEF][a-zA-Z0-9]{8,}", |
73 |
| - # "Authorization_Basic": r"basic\\s[a-zA-Z0-9_\\-:\\.=]+", |
74 |
| - # "Authorization_Bearer": r"bearer\\s[a-zA-Z0-9_\\-:\\.=]+", |
75 |
| - #"AWS_API_Key": r"AKIA[0-9A-Z]{16}", |
76 |
| - #"Basic_Auth_Credentials": r"(?<=:\/\/)[a-zA-Z0-9]+:[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z]+", |
77 |
| - #"Cloudinary_Basic_Auth": r"cloudinary:\/\/[0-9]{15}:[0-9A-Za-z]+@[a-z]+", |
78 |
| - #"DEFCON_CTF_Flag": r"O{3}\\{.*\\}", |
79 |
| - #"Discord_BOT_Token": r"((?:N|M|O)[a-zA-Z0-9]{23}\\.[a-zA-Z0-9-_]{6}\\.[a-zA-Z0-9-_]{27})$", |
80 |
| - #"Facebook_Access_Token": r"EAACEdEose0cBA[0-9A-Za-z]+", |
81 |
| - #"Facebook_ClientID": r"[f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K](.{0,20})?['\"][0-9]{13,17}", |
82 |
| - #"Facebook_OAuth": r"[f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K].*['|\"][0-9a-f]{32}['|\"]", |
83 |
| - #"Facebook_Secret_Key": r"([f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K]|[f|F][b|B])(.{0,20})?['\"][0-9a-f]{32}", |
84 |
| - #"Firebase": r"[a-z0-9.-]+\\.firebaseio\\.com", |
85 |
| - #"Generic_API_Key": r"[a|A][p|P][i|I][_]?[k|K][e|E][y|Y].*['|\"][0-9a-zA-Z]{32,45}['|\"]", |
86 |
| - #"Generic_Secret": r"[s|S][e|E][c|C][r|R][e|E][t|T].*['|\"][0-9a-zA-Z]{32,45}['|\"]", |
87 |
| - #"GitHub": r"[g|G][i|I][t|T][h|H][u|U][b|B].*['|\"][0-9a-zA-Z]{35,40}['|\"]", |
88 |
| - #"GitHub_Access_Token": r"([a-zA-Z0-9_-]*:[a-zA-Z0-9_-]+@github.com*)$", |
89 |
| - #"Google_API_Key": r"AIza[0-9A-Za-z\\-_]{35}", |
90 |
| - #"Google_Cloud_Platform_OAuth": r"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com", |
91 |
| - #"Google_Cloud_Platform_Service_Account": r"\"type\": \"service_account\"", |
92 |
| - #"Google_OAuth_Access_Token": r"ya29\\.[0-9A-Za-z\\-_]+", |
93 |
| - #"HackerOne_CTF_Flag": r"[h|H]1(?:[c|C][t|T][f|F])?\\{.*\\}", |
94 |
| - #"HackTheBox_CTF_Flag": r"[h|H](?:[a|A][c|C][k|K][t|T][h|H][e|E][b|B][o|O][x|X]|[t|T][b|B])\\{.*\\}$", |
95 |
| - #"Heroku_API_Key": r"[h|H][e|E][r|R][o|O][k|K][u|U].*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}", |
96 |
| - # "IP_Address": r"(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])", |
97 |
| - #"JSON_Web_Token": r"(?i)^((?=.*[a-z])(?=.*[0-9])(?:[a-z0-9_=]+\\.){2}(?:[a-z0-9_\\-\\+\/=]*))$", |
98 |
| - # "LinkFinder": r"(?:\"|')(((?:[a-zA-Z]{1,10}:\/\/|\/\/)[^\"'\/]{1,}\\.[a-zA-Z]{2,}[^\"']{0,})|((?:\/|\\.\\.\/|\\.\/)[^\"'><,;| *()(%%$^\/\\\\\\[\\]][^\"'><,;|()]{1,})|([a-zA-Z0-9_\\-\/]{1,}\/[a-zA-Z0-9_\\-\/]{1,}\\.(?:[a-zA-Z]{1,4}|action)(?:[\\?|#][^\"|']{0,}|))|([a-zA-Z0-9_\\-\/]{1,}\/[a-zA-Z0-9_\\-\/]{3,}(?:[\\?|#][^\"|']{0,}|))|([a-zA-Z0-9_\\-]{1,}\\.(?:php|asp|aspx|jsp|json|action|html|js|txt|xml)(?:[\\?|#][^\"|']{0,}|)))(?:\"|')", |
99 |
| - #"Mac_Address": r"(([0-9A-Fa-f]{2}[:]){5}[0-9A-Fa-f]{2}|([0-9A-Fa-f]{2}[-]){5}[0-9A-Fa-f]{2}|([0-9A-Fa-f]{4}[\\.]){2}[0-9A-Fa-f]{4})$", |
100 |
| - #"MailChimp_API_Key": r"[0-9a-f]{32}-us[0-9]{1,2}", |
101 |
| - #"Mailgun_API_Key": r"key-[0-9a-zA-Z]{32}", |
102 |
| - #"Mailto": r"(?<=mailto:)[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9.-]+", |
103 |
| - #"Password_in_URL": r"[a-zA-Z]{3,10}://[^/\\s:@]{3,20}:[^/\\s:@]{3,20}@.{1,100}[\"'\\s]", |
104 |
| - #"PayPal_Braintree_Access_Token": r"access_token\\$production\\$[0-9a-z]{16}\\$[0-9a-f]{32}", |
105 |
| - #"PGP_private_key_block": r"-----BEGIN PGP PRIVATE KEY BLOCK-----", |
106 |
| - #"Picatic_API_Key": r"sk_live_[0-9a-z]{32}", |
107 |
| - #"RSA_Private_Key": r"-----BEGIN RSA PRIVATE KEY-----", |
108 |
| - #"Slack_Token": r"(xox[p|b|o|a]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32})", |
109 |
| - #"Slack_Webhook": r"https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}", |
110 |
| - #"Square_Access_Token": r"sq0atp-[0-9A-Za-z\\-_]{22}", |
111 |
| - #"Square_OAuth_Secret": r"sq0csp-[0-9A-Za-z\\-_]{43}", |
112 |
| - #"SSH_DSA_Private_Key": r"-----BEGIN DSA PRIVATE KEY-----", |
113 |
| - #"SSH_EC_Private_Key": r"-----BEGIN EC PRIVATE KEY-----", |
114 |
| - #"Stripe_API_Key": r"sk_live_[0-9a-zA-Z]{24}", |
115 |
| - #"Stripe_Restricted_API_Key": r"rk_live_[0-9a-zA-Z]{24}", |
116 |
| - #"TryHackMe_CTF_Flag": r"[t|T](?:[r|R][y|Y][h|H][a|A][c|C][k|K][m|M][e|E]|[h|H][m|M])\\{.*\\}$", |
117 |
| - #"Twilio_API_Key": r"SK[0-9a-fA-F]{32}", |
118 |
| - #"Twitter_Access_Token": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*[1-9][0-9]+-[0-9a-zA-Z]{40}", |
119 |
| - #"Twitter_ClientID": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R](.{0,20})?['\"][0-9a-z]{18,25}", |
120 |
| - #"Twitter_OAuth": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*['|\"][0-9a-zA-Z]{35,44}['|\"]", |
121 |
| - #"Twitter_Secret_Key": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R](.{0,20})?['\"][0-9a-z]{35,44}" |
| 63 | + # "Amazon_AWS_Access_Key_ID": r"([^A-Z0-9]|^)(AKIA|A3T|AGPA|AIDA|AROA|AIPA|ANPA|ANVA|ASIA)[A-Z0-9]{12,}", |
| 64 | + # "Amazon_AWS_S3_Bucket": [ |
| 65 | + # r"//s3-[a-z0-9-]+\\.amazonaws\\.com/[a-z0-9._-]+", |
| 66 | + # r"//s3\\.amazonaws\\.com/[a-z0-9._-]+", |
| 67 | + # r"[a-z0-9.-]+\\.s3-[a-z0-9-]\\.amazonaws\\.com", |
| 68 | + # r"[a-z0-9.-]+\\.s3-website[.-](eu|ap|us|ca|sa|cn)", |
| 69 | + # r"[a-z0-9.-]+\\.s3\\.amazonaws\\.com", |
| 70 | + # r"amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" |
| 71 | + # ], |
| 72 | + # "Artifactory_API_Token": r"(?:\\s|=|:|\"|^)AKC[a-zA-Z0-9]{10,}", |
| 73 | + # "Artifactory_Password": r"(?:\\s|=|:|\"|^)AP[\\dABCDEF][a-zA-Z0-9]{8,}", |
| 74 | + # "Authorization_Basic": r"basic\\s[a-zA-Z0-9_\\-:\\.=]+", |
| 75 | + # "Authorization_Bearer": r"bearer\\s[a-zA-Z0-9_\\-:\\.=]+", |
| 76 | + # "AWS_API_Key": r"AKIA[0-9A-Z]{16}", |
| 77 | + # "Basic_Auth_Credentials": r"(?<=:\/\/)[a-zA-Z0-9]+:[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z]+", |
| 78 | + # "Cloudinary_Basic_Auth": r"cloudinary:\/\/[0-9]{15}:[0-9A-Za-z]+@[a-z]+", |
| 79 | + # "DEFCON_CTF_Flag": r"O{3}\\{.*\\}", |
| 80 | + # "Discord_BOT_Token": r"((?:N|M|O)[a-zA-Z0-9]{23}\\.[a-zA-Z0-9-_]{6}\\.[a-zA-Z0-9-_]{27})$", |
| 81 | + # "Facebook_Access_Token": r"EAACEdEose0cBA[0-9A-Za-z]+", |
| 82 | + # "Facebook_ClientID": r"[f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K](.{0,20})?['\"][0-9]{13,17}", |
| 83 | + # "Facebook_OAuth": r"[f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K].*['|\"][0-9a-f]{32}['|\"]", |
| 84 | + # "Facebook_Secret_Key": r"([f|F][a|A][c|C][e|E][b|B][o|O][o|O][k|K]|[f|F][b|B])(.{0,20})?['\"][0-9a-f]{32}", |
| 85 | + # "Firebase": r"[a-z0-9.-]+\\.firebaseio\\.com", |
| 86 | + # "Generic_API_Key": r"[a|A][p|P][i|I][_]?[k|K][e|E][y|Y].*['|\"][0-9a-zA-Z]{32,45}['|\"]", |
| 87 | + # "Generic_Secret": r"[s|S][e|E][c|C][r|R][e|E][t|T].*['|\"][0-9a-zA-Z]{32,45}['|\"]", |
| 88 | + # "GitHub": r"[g|G][i|I][t|T][h|H][u|U][b|B].*['|\"][0-9a-zA-Z]{35,40}['|\"]", |
| 89 | + # "GitHub_Access_Token": r"([a-zA-Z0-9_-]*:[a-zA-Z0-9_-]+@github.com*)$", |
| 90 | + # "Google_API_Key": r"AIza[0-9A-Za-z\\-_]{35}", |
| 91 | + # "Google_Cloud_Platform_OAuth": r"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com", |
| 92 | + # "Google_Cloud_Platform_Service_Account": r"\"type\": \"service_account\"", |
| 93 | + # "Google_OAuth_Access_Token": r"ya29\\.[0-9A-Za-z\\-_]+", |
| 94 | + # "HackerOne_CTF_Flag": r"[h|H]1(?:[c|C][t|T][f|F])?\\{.*\\}", |
| 95 | + # "HackTheBox_CTF_Flag": r"[h|H](?:[a|A][c|C][k|K][t|T][h|H][e|E][b|B][o|O][x|X]|[t|T][b|B])\\{.*\\}$", |
| 96 | + # "Heroku_API_Key": r"[h|H][e|E][r|R][o|O][k|K][u|U].*[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}", |
| 97 | + # "IP_Address": r"(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])", |
| 98 | + # "JSON_Web_Token": r"(?i)^((?=.*[a-z])(?=.*[0-9])(?:[a-z0-9_=]+\\.){2}(?:[a-z0-9_\\-\\+\/=]*))$", |
| 99 | + # "LinkFinder": r"(?:\"|')(((?:[a-zA-Z]{1,10}:\/\/|\/\/)[^\"'\/]{1,}\\.[a-zA-Z]{2,}[^\"']{0,})|((?:\/|\\.\\.\/|\\.\/)[^\"'><,;| *()(%%$^\/\\\\\\[\\]][^\"'><,;|()]{1,})|([a-zA-Z0-9_\\-\/]{1,}\/[a-zA-Z0-9_\\-\/]{1,}\\.(?:[a-zA-Z]{1,4}|action)(?:[\\?|#][^\"|']{0,}|))|([a-zA-Z0-9_\\-\/]{1,}\/[a-zA-Z0-9_\\-\/]{3,}(?:[\\?|#][^\"|']{0,}|))|([a-zA-Z0-9_\\-]{1,}\\.(?:php|asp|aspx|jsp|json|action|html|js|txt|xml)(?:[\\?|#][^\"|']{0,}|)))(?:\"|')", |
| 100 | + # "Mac_Address": r"(([0-9A-Fa-f]{2}[:]){5}[0-9A-Fa-f]{2}|([0-9A-Fa-f]{2}[-]){5}[0-9A-Fa-f]{2}|([0-9A-Fa-f]{4}[\\.]){2}[0-9A-Fa-f]{4})$", |
| 101 | + # "MailChimp_API_Key": r"[0-9a-f]{32}-us[0-9]{1,2}", |
| 102 | + # "Mailgun_API_Key": r"key-[0-9a-zA-Z]{32}", |
| 103 | + # "Mailto": r"(?<=mailto:)[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9.-]+", |
| 104 | + # "Password_in_URL": r"[a-zA-Z]{3,10}://[^/\\s:@]{3,20}:[^/\\s:@]{3,20}@.{1,100}[\"'\\s]", |
| 105 | + # "PayPal_Braintree_Access_Token": r"access_token\\$production\\$[0-9a-z]{16}\\$[0-9a-f]{32}", |
| 106 | + # "PGP_private_key_block": r"-----BEGIN PGP PRIVATE KEY BLOCK-----", |
| 107 | + # "Picatic_API_Key": r"sk_live_[0-9a-z]{32}", |
| 108 | + # "RSA_Private_Key": r"-----BEGIN RSA PRIVATE KEY-----", |
| 109 | + # "Slack_Token": r"(xox[p|b|o|a]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32})", |
| 110 | + # "Slack_Webhook": r"https://hooks.slack.com/services/T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}", |
| 111 | + # "Square_Access_Token": r"sq0atp-[0-9A-Za-z\\-_]{22}", |
| 112 | + # "Square_OAuth_Secret": r"sq0csp-[0-9A-Za-z\\-_]{43}", |
| 113 | + # "SSH_DSA_Private_Key": r"-----BEGIN DSA PRIVATE KEY-----", |
| 114 | + # "SSH_EC_Private_Key": r"-----BEGIN EC PRIVATE KEY-----", |
| 115 | + # "Stripe_API_Key": r"sk_live_[0-9a-zA-Z]{24}", |
| 116 | + # "Stripe_Restricted_API_Key": r"rk_live_[0-9a-zA-Z]{24}", |
| 117 | + # "TryHackMe_CTF_Flag": r"[t|T](?:[r|R][y|Y][h|H][a|A][c|C][k|K][m|M][e|E]|[h|H][m|M])\\{.*\\}$", |
| 118 | + # "Twilio_API_Key": r"SK[0-9a-fA-F]{32}", |
| 119 | + # "Twitter_Access_Token": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*[1-9][0-9]+-[0-9a-zA-Z]{40}", |
| 120 | + # "Twitter_ClientID": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R](.{0,20})?['\"][0-9a-z]{18,25}", |
| 121 | + # "Twitter_OAuth": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R].*['|\"][0-9a-zA-Z]{35,44}['|\"]", |
| 122 | + # "Twitter_Secret_Key": r"[t|T][w|W][i|I][t|T][t|T][e|E][r|R](.{0,20})?['\"][0-9a-z]{35,44}" |
122 | 123 | }
|
123 | 124 |
|
124 | 125 | # 此处配置壳信息
|
125 |
| -shell_list =[ |
| 126 | +shell_list = [ |
126 | 127 | 'com.stub.StubApp',
|
127 | 128 | 's.h.e.l.l.S',
|
128 | 129 | 'com.Kiwisec.KiwiSecApplication',
|
|
150 | 151 | ]
|
151 | 152 |
|
152 | 153 | # 此处配置需要扫描的web文件后缀
|
153 |
| -web_file_suffix =[ |
| 154 | +web_file_suffix = [ |
154 | 155 | "html",
|
155 | 156 | "js",
|
156 | 157 | "xml",
|
|
163 | 164 | ]
|
164 | 165 |
|
165 | 166 | # 配置需要忽略网络嗅探的文件后缀名,此处根据具体需求进行配置,默认为不过滤
|
166 |
| -sniffer_filter=[ |
| 167 | +sniffer_filter = [ |
167 | 168 | "jpg",
|
168 | 169 | "png",
|
169 | 170 | "jpeg",
|
|
172 | 173 |
|
173 | 174 | # 配置自动下载Apk文件或者缓存HTML的请求头信息
|
174 | 175 | headers = {
|
175 |
| - "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0", |
176 |
| - "Connection":"close" |
| 176 | + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0", |
| 177 | + "Connection": "close" |
177 | 178 | }
|
178 | 179 |
|
179 | 180 | # 配置自动下载Apk文件或者缓存HTML的请求体信息
|
|
183 | 184 |
|
184 | 185 | # 配置自动下载Apk文件或者缓存HTML的请求方法信息,目前仅支持GET和POST
|
185 | 186 | method = "GET"
|
186 |
| - |
0 commit comments