GithubHelp home page GithubHelp logo

hexcowboy / saloon Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 88 KB

A pentest environment for the wild west

License: MIT License

Dockerfile 9.66% Makefile 0.65% Shell 33.09% Python 56.59%
docker pentest kali saloon

saloon's Introduction

Saloon

Saloon is a hacking environment that is rapidly available in the Docker cloud. Compared to the estimated 30 minute setup with Kali or Parrot, Saloon takes roughly 5 minutes to install.

๐Ÿš€ Installation

Install from PyPI

pipx install saloon

๐Ÿงจ Running Saloon

Once the container image is built, you can attach to Saloon with Docker

# Get a shell
saloon

# Run a command and then exit
saloon -- nmap -p80 -sC -sV scanme.nmap.org

Saving files between runs

Persistence is not available yet.

Networking

Networking is not available, but soon you will be able to do things like set up a netcat listener an accept incoming connections or set up a Burp Suite proxy.

Running GUI applications

The Docker container is compatible with X11. You just need to set your local XServer to listen on 127.0.0.1.

โš ๏ธ All of the following setups disable access control on your X Server. Disabling access control allows outside connections to connect to your X Server. This is insecure if you allow network connections from the internet or from an untrusted network. Make sure your are on a secure network, like your home network, if you decide to use these instructions.

macOS Setup
  1. Install XQuartz
brew install --cask xquartz
  1. Enable XQuartz > Preferences > Security > Allow connections from network clients
  2. Add your local IP as an xhost
xhost + 127.0.0.1
  1. Test a GUI application
saloon -- wireshark
Windows Setup
  1. Install VcSrv
choco install -y vcxsrv
  1. Launch XLaunch from the start menu
  2. Accept all default settings, checking "Disable access control"
  3. If prompted, only allow access on Private networks
  4. Test a GUI application
saloon -- wireshark
Linux Setup

Linux desktops usually already come with an X Server installed.

  1. Disable access control
xhost +
  1. Test a GUI application
saloon -- wireshark

saloon's People

Contributors

hexcowboy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

saloon's Issues

automatic mounts

When running a container in tty mode, it would be nice to have a folder automatically mounted that could store persistent things. This should probably be a folder in the home directory but will need to be looked into.

Also, for running in single-command mode, this could save the files from certain processes like ftp which downloads files to the docker machine but not to the host machine. A mount would in turn save it to the host machine as well.

burp proxy certificate not working

setting a port map like so

docker run -v 8080:8080 -it jackbox

allows traffic through (maybe?) but it's not functioning, most likely because a certificate needs to be installed.

also the built in browser does not work because the program is run with root, chrome does not allow running in root, and even when it's configured to run, the browser is super unstable. this needs to be fixed, probably by running burp as a user account.

Requests Megathread

In Progress packages

Checked means the package is installed on the dev branch and will be available in the next release

In Progress Tools

Static Binaries

Finished

All package requests that have been added to the main branch (this list does not include all software on main branch, just software that was requested)

create a minimizing script

the image is already almost 20gb, it would be nice to have a script that cleans up excessive things like apt caches and temporary files

disallow installation on windows without WSL2

The dependency fcntl for the package dockerpty (which is a dependency for saloon) is not available on Windows. When installing through pip, the installer should make sure that it cannot be installed directly onto Windows. Instead, an error message should display directing the user to install WSL2 and install saloon there.

ref: d11wtq/dockerpty#7

let container interface with host network on linux

Right now this isn't supported by default on linux.

If you are using Docker-for-mac or Docker-for-Windows 18.03+, just connect to your mysql service using the host host.docker.internal (instead of the 127.0.0.1 in your connection string).

If you are using Docker-for-Linux 20.10.0+, you can also use the host host.docker.internal if you started your Docker container with the --add-host host.docker.internal:host-gateway option.

create a binary that runs saloon

Saloon can be run with Docker but many users will likely not be familiar with the syntax. To make it easier for users to run Saloon, it would be easiest to just create a python wrapper that will handle all the docker arguments.

This python wrapper could also include things like

  • Automatic VPN connections
  • Automatic mounts
  • X Server configuration

make the base image kali

this could reduce build times as most of the packages installed are coming from kali. it will need to be looked into

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.