Code Monkey home page Code Monkey logo

sts2g's Introduction

STS2G

Struts2漏洞扫描Golang版,POC参考了众多优秀项目如Struts2-Scan,漏洞测试采用vulhub.
目前两种模式scanexec支持:
struts2-001 struts2-003 struts2-005 struts2-007 struts2-008 struts2-009 struts2-012 struts2-013 struts2-015 struts2-016 struts2-045 struts2-046 struts2-048 struts2-053 struts2-057

开发目的

1、该工具适用于命令行操作模式下,比如webshell下检测内网struts2漏洞.
2、Golang可编译Win/Linux可执行文件.
3、单文件运行.

使用方法

NAME:
   ST2SG - Struts2漏洞检测工具(Golang版)

USAGE:
   ST2SG.exe [global options] command [command options] [arguments...]

AUTHOR:
   x51 <[email protected]>

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --mode value  specify working mode
   --vn value    Vulnerability number (default: 0)
   --url value   set target url
   --cmd value   exec command(only work on exploit mode)
   --data value  data for special vuln
   --help, -h    show help (default: false)

avatar

默认扫描模式:

ST2SG --mode scan --url http://xxx.com/index.action

指定漏洞扫描模式:

ST2SG --mode scan --url http://xxx.com/index.action --vn 16

命令执行模式:

ST2SG --mode exec --url http://xxx.com/index.action --vn 16 --cmd "whoami"

自定义参数模式:

该模式基于以上方法,分有两种情况,自定义GET参数名,和自定义POST数据包内容,POST方式需要在数据包中指定一下要测试的参数并用fuckit标记出来.
POST
ST2SG --mode scan --url http://xxx.com/index.action --vn 007 --data "name=fuckit&pass=qwer"
GET
ST2SG --mode scan --url http://xxx.com/index.action --vn 009 --data "name"

待补充

上传Webshell功能
完善webppath打印模块-目前实现一部分

sts2g's People

Contributors

xfiftyone avatar

Watchers

James Cloos 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.