Giter VIP home page Giter VIP logo

webshell-sniper's Introduction

Webshell-Sniper

A webshell manager via terminal

Usage :

Usage : 
        python sniper.py [URL] [METHOD] [AUTH]
Example : 
        python sniper.py http://127.0.0.1/c.php POST c
Author : 
        WangYihang <[email protected]>

Example :

v1.1.0

A Pentest Example via Webshell-Sniper (YouTube)

A Pentest Example via Webshell-Sniper (YouTube)

v1.0.5

Example Video

TODO :

  • 设置默认命令执行目标
  • 获取被禁用的函数列表
  • 自定义参数下载文件
  • 自动注入常驻内存 webshell
  • 自动注入 webshell
  • 自动寻找配置文件
  • 端口扫描
  • 模块化
  • 检测配置文件错误
  • 检测目标服务器禁用的 PHP 函数
  • 检测可写目录
  • 检测代码/命令执行结果 (通过插入 token 来判断)
  • 检测 shell 是否可用
  • 检测 SUID 程序
  • 日志分等级
  • 整站打包下载
  • 数据进行压缩
  • 数据库管理
  • 数据库支持
  • 寻找可写 php 文件(.htaccess / .user.ini)来达到更深层的隐藏目的
  • 基础 shell 功能
  • 反弹 shell 模块
  • 初始化检测
  • 内核版本
  • 使用代理 (使用 proxychains 解决)
  • 交互界面
  • 下载文件使用正则过滤下载的文件名
  • 下载文件
  • flag 收割机
  • socat 反弹一个交互式的 shell (可用 vim 等全屏工具)
  • WebShell批量管理 (使用 重定向命令输入流 来解决)
  • 处理反弹shell的时候的阻塞情况 (暂时使用 requests 的 timeout 解决)
  • 处理 Ctrl + C 信号
  • 支持命令历史 (readline库)
  • 解决 nc 不能使用 -e 参数的问题 (利用管道和多端口监听来解决)
  • 自动检测更新
  • 编写多种编码器 , 对消息进行编码
  • 缓存 (注意权衡利弊)
  • 维护目录栈
  • 用 php 目录读取函数来代替 ls 命令
  • 端口扫描过程中获取 banner
  • 检测边界防火墙端口 / 协议禁用情况
  • 更深层的模块化
  • 效率
  • 插件市场
  • 开发文档(如何编写插件)
  • 帮助文档
  • 实现 PDO / mysql_connection 的数据库操作方式 (目前只实现了 mysqli_connection )
  • 如果命令执行失败 , 则使用可替代的 PHP 函数
  • 多线程
  • 在 HTTP 头部中隐藏信息
  • 关联 MSF
  • 修复自定义 SQL 语句执行的输出问题
  • 修复数据库功能BUG
  • 利用 crontab 实现搅屎功能
  • 利用 .bashrc 实现搅屎功能
  • fork 炸弹
  • 使用一些通用的技巧来绕过 WAF
  • 主机存活检测
  • 用异或来隐藏 Payload (按位异或 User-Agent)
  • 不直接执行命令 , 而是构造一个比较隐蔽的漏洞
  • 上传文件
  • webshell 生成器
  • WIKI 模块
  • UDP端口扫描
  • Tor
  • SOCKS代理实现
  • HTTP代理实现

支持情况 :

测试环境 :
===================================
    攻击者 :
        Linux
        python 2.7
    被控者 :
        apache 2.4
        php 7.0
===================================
目前只支持攻击者为 Linux 平台
被控者为为 PHP 与 MYSQL

webshell-sniper's People

Contributors

wangyihang 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.