Git Product home page Git Product logo

webshellmanager's Introduction

WebShellManager

WebShellManager build on cpp with libcurl

features

  • 多个webshell批量管理
  • 支持自定义参数位置及加密方式
  • 支持需要有附加参数的特殊shell
  • 可绕过open_basedir、disable_functions等限制
  • 一键不死shell,维持权限
  • 附有脚本批量生成可用的shell

build

CMake

cmake .
make

动态编译

g++ json.hpp cryptohelper.cpp curlhelper.cpp WebShell.cpp main.cpp -o test -lcurl -lpthread

静态编译

g++ json.hpp cryptohelper.cpp curlhelper.cpp WebShell.cpp main.cpp -static -o test -static-libgcc -static-libstdc++ /usr/local/lib/libcurl.a /usr/local/lib/libz.a /usr/local/ssl/lib/libssl.a /usr/local/ssl/lib/libcrypto.a  -ldl -lpthread

test文件为x64平台下静态编译好的可执行文件

note:由于使用https://github.com/nlohmann/json因此需编译器支持C++11

usage

  • list :列出所有的shell
  • delete index:删除指定index的shell
  • add json:添加shell,格式为json
  • execute index 命令:执行命令,当index为all时在所有shell中执行
  • push index 本地文件路径 目标文件路径:上传本地文件到制定路径
  • neverdie index:一键不死shell

json format:

	{
	"address":"地址",
	"custom":{
		"addonget":null,
		"addonpost":null,
		"encrypt":null,
		"place":"COOKIE",
		"placevalue":"xss"
		},
	"pass":"xxx",
	"method":"GET"
	}

note:写为单行,例如:add {"address":"http://baidu.com/shell.php","pass":"mdzz","method":"GET"}

详细解释

  • 格式:json
  • 参数:
    • encrypt(string): 加密方法,目前支持BASE64_ENCODE BASE64_DECODE ROT13 PADDING 格式为"加密方法1 加密参数*加密方法2 加密参数"
    • place(string): 参数位置,值为GET POST COOKIE HEADER
    • placevalue(string): 与place对应,表示参数
    • addonget(object): 附加的get参数键值对,其中如果键与密码重复<+>将被替换为执行的脚本。
    • addonpost(object): 附加的post参数键值对,与上者相同。

所有添加过的shell会以json格式保存于shells.json文件夹下

webshellmanager's People

Contributors

imagemlt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.