GithubHelp home page GithubHelp logo

hoenchioma / pwnkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from j4sp3r/pwnkit

0.0 0.0 0.0 1.58 MB

All the CTF tools you need in a docker container just one command away.

License: MIT License

Shell 0.39% Python 99.41% Dockerfile 0.20%

pwnkit's Introduction

pwnkit

This is a collection of tools from Kali to run on any machine with a docker image. This tool is aimed to help during CTFs.

This tool is only tested for Linux and Mac, it might or might not work on Windows.

Please use at your own risk. Always check what you are running!

Features

  • Shares the folder /share/ from the host to the container.
  • Changes directory to same working directory as on host if exists.
  • Appends hosts /etc/hosts to container /etc/hosts.
  • Easy project selection.

Installation

  1. Make sure Docker is installed.
  2. Clone this repository.
  3. Optional: Add extracted location to path for easy execution.
  4. Run ./pwnkit or pwnkit.

Project selection

Using the command setp the current working directory will be stored as the current project in /share/.curproj. The command cdp can then go tho the current project using the /share/.curproj file. This works within pwnkit but can also work outside pwnkit by adding the following to your .zshrc or equivalent:

alias cdp="cd \`cat /share/.curproj\`"
alias setp="echo \`pwd\` > /share/.curproj"

This only works well if you use the /share folder to share files between pwnkit and its host.

Mounting a volume into pwnkit

Change the file ./pwnkit-start from
docker run -i -t --rm -v /challenges/:/challenges/ jasperboot/pwnkit:latest
to
docker run -i -t --rm -v [LOCAL FOLDER]:/challenges/ jasperboot/pwnkit:latest

pwnkit is used to update and start the toolkit.
pwnkit-update is used to update the image and git repo.
pwnkit-start is used to start the toolkit. To update as well, use pwnkit.
pwnkit-build is used to build the image from scratch and update it on the docker registry. pwnkit-gdb is used to attach to a gdb session setup in pwntools.

Using pwntools and gdb

  1. Add the following to your pwntools script: context.terminal = ['/root/tools/launch-in-session.sh', 'gdb-session'].
  2. When pwntools opens a gdb session, execute pwnkit-gdb on your local machine to attach.

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.