Git Product home page Git Product logo

j4r0-code / p5hellg3n Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xbz0n/p5hellg3n

0.0 0.0 0.0 3 KB

This script generates a PowerShell reverse shell command that bypasses execution policies and is base64 encoded. The generated shell command establishes a TCP connection to a provided IP and port, and executes any received commands. This script can be useful in penetration testing scenarios where shell access to a target machine is required.

Python 100.00%

p5hellg3n's Introduction

Description

P5hellG3n.py is a Python-based tool for security testers and penetration testers that automates the creation of a base64 encoded PowerShell reverse shell. It takes an IP address and port number as input arguments and generates a base64 encoded reverse shell command. This command, when executed on the target system's PowerShell (using -exec bypass -enc), establishes a reverse connection back to the provided IP and port, effectively giving control of the target system to the user.

This script serves as an efficient utility for ethical hackers and cybersecurity professionals, easing the process of crafting a reverse shell command.

Usage

python3 P5hellG3n.py [ip] [port]

Replace [ip] with the IP address you want the reverse shell to connect back to and [port] with the desired port number on the host machine.

Example usage:

python3 P5hellG3n.py 192.168.1.10 4444

This will generate a PowerShell command for a reverse shell to connect back to the IP address 192.168.1.10 on port 4444.

Prerequisites

To use this script, you need Python 3 installed on your machine.

Warning

Please note that this tool is for educational purposes and authorized testing only. Always obtain proper permission before performing any kind of penetration testing.

License

This project is licensed under the MIT License.

Author

xbz0n

Contributing

Please fork the project, create a new branch, and submit a pull request. For major changes, please open an issue first to discuss the proposed change.

Disclaimer

This script is for educational purposes and for preparing for the OSEP certification exam. It should only be used in environments where you have permission to perform penetration testing.

p5hellg3n's People

Contributors

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