
Apache OFBiz RCE 스캐너 및 익스플로잇 (CVE-2024-38856)
윤리적 사용 목적으로만 사용하세요. 유해하거나 악의적인 활동은 허용되지 않습니다. 모든 책임은 사용자 본인에게 있습니다.
CVE-2024-38856: Apache OFBiz 원격 코드 실행 스캐너 및 익스플로잇
CVE 분석: https://blog.securelayer7.net/cve-2024-38856-apache-ofbiz-rce
18.12.14까지 영향을 줍니다.
██████╗██╗ ██╗███████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗ ██████╗ █████╗ █████╗ ███████╗ ██████╗
██╔════╝██║ ██║██╔════╝ ╚════██╗██╔═████╗╚════██╗██║ ██║ ╚════██╗██╔══██╗██╔══██╗██╔════╝██╔════╝
██║ ██║ ██║█████╗█████╗ █████╔╝██║██╔██║ █████╔╝███████║█████╗█████╔╝╚█████╔╝╚█████╔╝███████╗███████╗
██║ ╚██╗ ██╔╝██╔══╝╚════╝██╔═══╝ ████╔╝██║██╔═══╝ ╚════██║╚════╝╚═══██╗██╔══██╗██╔══██╗╚════██║██╔═══██╗
╚██████╗ ╚████╔╝ ███████╗ ███████╗╚██████╔╝███████╗ ██║ ██████╔╝╚█████╔╝╚█████╔╝███████║╚██████╔╝
╚═════╝ ╚═══╝ ╚══════╝ ╚══════╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═════╝ ╚════╝ ╚════╝ ╚══════╝ ╚═════╝
Github: https://github.com/securelayer7/CVE-2024-38856_Scanner
By: Securelayer7(yosef0x01 & Zeyad Azima)
usage: cve-2024-38856_Scanner.py [-h] [-t TARGET] [-p PORT] [-c COMMAND] [-s] [-d DOMAIN] [-f FILE]
CVE-2024-38856 Apach Ofbiz RCE Scanners.
options:
-h, --help Show this help message and exit.
-t TARGET, --target TARGET
Specify the target host for the scan or exploit. This should be the IP address or domain name of the server you want to target.
-p PORT, --port PORT Specify the target port. This is the port on the target host where the vulnerable service is running (e.g., 8080).
-c COMMAND, --command COMMAND
The command to execute on the target server if you are exploiting the vulnerability. This option is only used with the `--exploit` flag.
-s, --scan Perform a scan to check for the vulnerability on the specified target. The scan will use basic network commands like `ping`, `curl`, and `wget` to probe the target.
-d DOMAIN, --domain DOMAIN
The domain or IP address to use when performing the scan. This is typically the attacker's domain that the target will interact with using commands like `ping`, `curl`, and `wget`. Defaults to `http://example.com` if not specified.
-f FILE, --file FILE Specify a file containing a list of targets. Each line in the file should be in the format `http(s)://target,port`. This option allows you to scan or exploit multiple targets in a batch mode.
-O OUTPUT, --output OUTPUT
The file to save the results to. If specified, the results of the scan or exploit will be written to this file instead of being printed to the console.
--proxy PROXY Specify a proxy to route your requests through. The format should be `http://proxyhost:port` or `https://proxyhost:port`. This is useful if you need to route your traffic through an intercepting proxy like Burp Suite or if you need to hide your IP address.
--exploit Exploit the vulnerability on the specified target. When this option is used, the script will attempt to execute the command provided with the `-c` or `--command` option on the target server. This option must be used if you want to exploit the vulnerability rather than just scan for it.
--timeout TIMEOUT Specify the timeout in seconds for the HTTP requests made by the script. This controls how long the script will wait for a response from the target server before considering the attempt failed. Default is 10 seconds.
-t, --target <host>: 대상 호스트를 지정합니다. --file 옵션과 함께 사용할 수 없습니다.
-p, --port <port>: 대상 포트를 지정합니다. 또한 대상 파일에 포트가 지정되지 않은 경우 이 옵션이 필요합니다.
-c, --command <command>: 대상에서 실행할 명령을 지정합니다.
-s, --scan: 스캔 모드를 활성화합니다. 이 옵션을 사용하면 스크립트가 지정된 도메인에 대해 일련의 사전 정의된 명령(ping, curl, wget)을 실행합니다.
-d, --domain <domain>: 스캔 수행 시 사용할 도메인 또는 IP 주소를 지정합니다. 이는 일반적으로 대상이 ping, curl, wget 명령으로 상호 작용할 공격자의 도메인입니다. 지정하지 않으면 기본값은 http://example.com입니다.
Global Port: 대상 파일을 스캔할 때 ,port를 생략하고 -p를 사용하여 모든 대상에 대한 전역 포트를 설정할 수 있습니다.
python cve-2024-38856_Scanner.py -t <target> -p <port> -c "command" --exploit

python python cve-2024-38856_Scanner.py -t <target> -p <port> -s -d <domain> --scan

python exploit.py -f <file> -c "command"

python exploit.py -f <file> -p <port> -s -d <domain>



-f, --file <file>: http(s)://target,port 형식의 대상 목록이 포함된 파일을 지정합니다. 이 옵션은 --target과 함께 사용할 수 없습니다.
-O, --output <output_file>: 결과를 저장할 출력 파일입니다.