Skip to content

Commit d2e68af

Browse files
author
patched.codes[bot]
committed
Patched /Users/user/Documents/GitHub/example-python/main.py
1 parent 9e553e4 commit d2e68af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
url = 'http://example.com' # Replace with a valid URL
1515
req = requests.Request('GET', url)
1616
prep = req.prepare()
17-
session.rebuild_proxies(prep, proxies)
17+
if not url.startswith('https') and 'test' in proxies['http']:
18+
prep.proxies = proxies
19+
session.send(prep)
1820

1921
# Introduce a command injection vulnerability
2022
user_input = input("Enter a command to execute: ")

0 commit comments

Comments
 (0)