Retour au classement

Self contained htaccess shells and attacks

webshellpolyglotsecurityapachehtaccesspenetration-testingexploit
Croissance des étoiles
Étoiles
1.1k
Forks
195
Croissance hebdomadaire
Issues
0
5001k
janv. 2023mars 2024mai 2025juil. 2026
README

HTSHELLS - Self contained web shells and other attacks via .htaccess files.

Attacks are named in the following fashion, module.attack.htaccess and grouped by attack type in directories. Pick the one you need and copy it to a new file named .htaccess, check the file to see if it needs editing before you upload it. Web shells executes commands from the query parameter c, unless the file states otherwise.

To prepare run ./prepare.sh file which will generate the .htaccess file to be uploaded. Example:

$ ./prepare.sh shell/mod_php.shell.htaccess
┬ ┬┌┬┐┌─┐┬ ┬┌─┐┬  ┬  ┌─┐
├─┤ │ └─┐├─┤├┤ │  │  └─┐
┴ ┴ ┴ └─┘┴ ┴└─┘┴─┘┴─┘└─┘
 justanotherhacker.com

.htaccess file is ready
$ curl -F 'file=@.htaccess' -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/ # Denial of service attacks

  • apache.dos.htaccess Makes all requests return a 500 internal server error

  • mod_rewrite.dos.htaccess Regular expression dos condition in mod_rewrite consumes a child process

== INFO/ # Information disclosure attacks

  • modcheck/ Include additional response headers to indicate which Apache modules are active

  • mod_caucho.info.htaccess untested Server status binding for the mod_caucho Resin java server module

  • mod_clamav.info.htaccess Clamav status page binding

  • mod_info.info.htaccess Server info binding for Apache

  • mod_ldap.info.htaccess untested Server status binding for the mod_ldap server module

  • mod_perl.info.htaccess Display the mod_perl status page

  • mod_php.info.htaccess Make all php pages show source instead of executing

  • mod_status.info.htacces Server status binding for Apache

== SHELL/ # Interactive command execution

  • mod_caucho.shell.htaccess untested JSP based web shell

  • mod_cgi.shell.bash.htaccess Shell using bash under the cgi handler, Requires exec flag to be set on the htaccess file.

  • mod_cgi.shell.windows.htaccess untested Gives shell through php.exe via apache cgi configuration directives

  • mod_include.shell.htaccess Server Side Include based web shell

  • mod_multi.shell.htaccess Multiple shells in one .htaccess file, one attack fits all approach

  • mod_perl.shell.htaccess incomplete TODO

  • mod_php.shell.htaccess PHP based web shell access via http://domain/path/.htaccess?c=command

  • mod_php.shell2.htaccess Alternate method of invoking a php shell from .htaccess file

  • mod_php.stealth.shell.htaccess PHP based stealth backdoor - see http://www.justanotherhacker.com/2011/12/writing-a-stealth-web-shell.html for tutorial

  • mod_python.shell.htaccess

  • mod_ruby.shell.htaccess

  • mod_suphp.shell.htaccess

== TRAVERSAL/ # Directory traversal attacks

  • mod_hitlog.traversal.htaccess Directory traversal attack via hitlog module tries to read /etc/passwd

  • mod_layout.traversal.htaccess Directory traversal attack reads /etc/passwd

== ./ # Various attacks

  • mod_auth_remote.phish.htaccess untested Forward basic auth credentials to server of your choice

  • mod_badge.admin.htaccess mod_badge admin page binding

  • mod_sendmail.rce.htaccess untested Executes commands configured in the .htaccess file by specifying path and arguments to "sendmail" binary

Wireghoul - http://www.justanotherhacker.com

Dépôts similaires
openspug/spug

开源运维平台:面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、文件在线上传下载、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。

JavaScriptnpmGNU Affero General Public License v3.0opsoperations
ops.spug.cc
11k2.2k
tennc/webshell

This is a webshell open source project

PHPPackagistMIT Licensewebshellwebshell-sniper
tennc.github.io
10.8k5.6k
MCSManager/MCSManager

Quick deployment, distributed, multi-user, modern management panel for Minecraft and Steam game servers / 快速安装,分布式架构,多用户销售,现代化的 Minecraft 和 Steam 游戏服务器管理面板

TypeScriptnpmApache License 2.0mcsmanagerminecraft
mcsmanager.com
4.9k537
zhzyker/exphub

Exphub[漏洞利用脚本库] 包括Webloigc、Struts2、Tomcat、Nexus、Solr、Jboss、Drupal的漏洞利用脚本,最新添加CVE-2020-14882、CVE-2020-11444、CVE-2020-10204、CVE-2020-10199、CVE-2020-1938、CVE-2020-2551、CVE-2020-2555、CVE-2020-2883、CVE-2019-17558、CVE-2019-6340

PythonPyPIweblogictomcat
4.3k1.1k
zhaojh329/rtty

🐛 Access your device from anywhere via the web.

CMIT Licensewebshellwebssh
zhaojh329.github.io/rtty/
4k548
nil0x42/phpsploit

Full-featured C2 framework which silently persists on webserver with a single-line PHP backdoor

PythonPyPIGNU General Public License v3.0post-exploitationhacking
2.5k470
XZB-1248/Spark

✨Spark is a web-based, cross-platform and full-featured Remote Administration Tool (RAT) written in Go that allows you control all your devices anywhere. Spark是一个Go编写的,网页UI、跨平台以及多功能的远程控制和监控工具,你可以随时随地监控和控制所有设备。

GoGo ModulesBSD 2-Clause "Simplified" Licensegolangrat
2.4k582
bartblaze/PHP-backdoors

A collection of PHP backdoors. For educational or testing purposes only.

PHPPackagistCreative Commons Zero v1.0 Universalphpphp-backdoor
2.3k465
pen4uin/java-memshell-generator

一款支持自定义的 Java 内存马生成工具|A customizable Java in-memory webshell generation tool.

JavaMavenMIT Licensememshellwebshell
2.2k230
xl7dev/WebShell

Webshell && Backdoor Collection

PHPPackagistGNU General Public License v2.0webshellshell
blog.safebuff.com/WebShell/
2k1k
AabyssZG/WebShell-Bypass-Guide

从零学习Webshell免杀手册

MIT Licensebypassbypass-antivirus
blog.zgsec.cn/archives/197.html
1.8k144
LandGrey/webshell-detect-bypass

绕过专业工具检测的Webshell研究文章和免杀的Webshell

Classic ASPwebshellbypass-antivirus
1.7k388