Git Product home page Git Product logo

evcuq4hggjd74lhz / toolbox-pentest-web Goto Github PK

View Code? Open in Web Editor NEW

This project forked from righettod/toolbox-pentest-web

0.0 0.0 0.0 29.68 MB

Docker toolbox for pentest of web based application.

Home Page: https://hub.docker.com/r/righettod/toolbox-pentest-web

License: GNU General Public License v3.0

Dockerfile 1.17% Shell 12.89% Makefile 0.09% C 34.99% Python 45.86% CSS 0.06% jq 0.59% PowerShell 0.36% Java 3.99%

toolbox-pentest-web's Introduction

Build the image

Build PostgreSQL extension

Build DLL Hijacking library

Check cheat sheet links validity

๐Ÿญ Welcome to my forge

๐Ÿ‘ Image full credits goes to Dirk Hoenes: https://pixabay.com/users/ptdh-275507.

๐ŸŽฏ The goal of this image is to provide an, always up-to-date "box", containing materials (tools + scripts) useful in the context of the assessment of a web based application: site, api, etc.

โš™๏ธ The image is based on the kali-rolling base image without any metapackage installed.

๐Ÿ“ฑ Recently, I started to add content for mobile assessment to gather informations/tools in a single box.

โš’๏ธ Box enhancement approach

Image above was created with Draw.io. The source XML file is here.

What it contains?

Build

The folder build contains utility internal scripts used to build the docker image.

Tools

All tools are installed in the folder /tools and a transfert zone between the container and the host has been defined via the folder /tools/reports.

Helper scripts

The folder scripts contains helper scripts for some operations using embedded tools.

Misc

The folder misc contains materials that can be used for testing specific cases like for example when an app is using:

Templates

The folder templates contains several scripts/files that can be used as basis for custom scripts to speed-up the implementation of a POC.

Dictionaries

The folder dictionaries contains several home made custom dictionaries that can be used for discovery operations.

Technical hints

This file contains several technicals hints for differents kinds of context/issues/goals.

๐Ÿ‘€ It's a kind of cheat sheet.

Build image locally

Use the following set of commands:

$ git clone https://github.com/righettod/toolbox-pentest-web.git
$ cd toolbox-pentest-web
$ docker build . -t righettod/toolbox-pentest-web --file Dockerfile
...

Container usage on a docker host for direct access

Native docker on Linux or MacOS:

# Create a volume to share files with the container (ex: reports)
$ docker volume create --name shared_space
$ docker volume inspect shared_space
# Run container
$ docker run -v shared_space:/tools/reports -p 127.0.0.1:80:80 -i -t righettod/toolbox-pentest-web /bin/zsh
$ docker run -v shared_space:/tools/reports -p 192.168.206.128:80:80 -p 192.168.206.128:443:443 -i -t righettod/toolbox-pentest-web /bin/zsh
# Build image into local cache
$ docker build -t righettod/toolbox-pentest-web .
# Remove image from local cache
$ docker rmi -f righettod/toolbox-pentest-web

Docker for Windows:

rem Run container and define a shared folder
C:\> docker run -v F:/SharedFolder:/tools/reports -p 127.0.0.1:80:80 -i -t righettod/toolbox-pentest-web /bin/zsh

Container usage for remote ssh access

Private key to use for SSH authentication is here.

This box is intented to be used as toolbox for a short running period.

  1. Run the container on the target docker host using the following command line:
$ docker run -p 22:22 righettod/toolbox-pentest-web
Server listening on 0.0.0.0 port 22.
Server listening on :: port 22.
...
  1. Access the container, via SSH, using the following command:
$ ssh -i ~/.ssh/ssh-private-key.pem root@[DOCKER_HOST_IP]
โžœ  ~

Add "StrictHostKeyChecking=no" in case of trouble with the remote keys because they are unique for each built image:

$ ssh -o "StrictHostKeyChecking=no" -i ~/.ssh/toolbox-ssh-private-key.pem root@[DOCKER_HOST_IP]
โžœ  ~

DockerHub

Image is published here each day or at each commit on the master branch.

toolbox-pentest-web's People

Contributors

righettod avatar t0ille 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.