GithubHelp home page GithubHelp logo

bettercat's Introduction

BetterCat - Like a NetCat shell but Better

Description

Have you ever tried to use a netcat shell and thought, "I wish there was a better way"? Well now there is! BetterCat will connect to the shell and do the following:

  • Disable saving of the session's history
  • Enumerate the operating system, shell and supported terminal interfaces
  • Spawn a TTY shell for programs that need them, like sudo
  • Integrate the shell with your terminal!
    • You want colour? You got colour! (Yes, it's spelled with a u)
    • You want TAB completion? You got TAB completion!
    • Tired of trying to kill a command with Control-C only for it to kill your shell? No more!
    • Any other default control sequence for your terminal should "Just work"
    • Even vim and emacs work just fine!

Installation

pip3 install -r requirements.txt

Usage

Listening

Instead of nc -lp <port>, use ./BetterCat.py l <port> to listen for incoming reverse shells.

Connecting

Instead of nc <host> <port>, use ./Bettercat.py c <host> <port> to connect to bind shells.

Development

This was hacked together in about 2 days. I'll try to keep working on it, but if you'd like any features or fixes, feel free to ask!

Upcoming features

  • Support for more shells, terminals and operating systems
  • Better teminal support enumeration
  • Support for shells which are already TTYs
  • Custom per-shell prompts
  • More netcat-like features
  • Support for resized terminals
  • Methods for spawning a TTY that don't rely on python
  • More reconnaisance
  • Code cleanup

© Dylan Slogrove, 2019

bettercat's People

Contributors

hirza-tango avatar

Watchers

 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.