Code Monkey home page Code Monkey logo

pth-toolkit's Introduction

pth-toolkit

A modified version of the passing-the-hash tool collection https://code.google.com/p/passing-the-hash/ designed to be portable and work straight out of the box even on the most 'bare bones' systems

The master branch is compiled for amd64, the final goal will be to cross compile these tools to every possible architecture

Currently this repo provides the following patched tools/utilities:

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

Requirements

  • sh

All tools were tested on a bare bones Arch linux install with only the base package.

When would this be useful?

  • When your rocking a custom pentesting OS and you don't want to go through the agony of compiling and patching these tools yourself
  • For post-exploitation to pivot to a Windows box/domain from a compromised *nix host! Just clone this repo or download the tarball and your ready to pass all the hashes!

pth-toolkit's People

Contributors

byt3bl33d3r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pth-toolkit's Issues

Not working. Any tips?

I've cloned the repo to /opt

when I run:
/opt/pth-toolkit/pth-wmis -U username%password //IP 'cmd.exe /c whoami > C:\output.txt'
Note: I am absolutely sure the username, password, and IP are correct. And that the user is an admin.
I get the following response:
[wmi/wmis.c:172:main()] 1: cmd.exe /c whoami > c:\output.txt
[wmi/wmis.c:130:WBEM_RemoteExecute()] ERROR: IWbemServices_ExecMethod.
NTSTATUS: NT_STATUS_OK - Success

If I run:
/opt/pth-toolkit/bin/wmis -U username%password //IP 'cmd.exe /c whoami > C:\output.txt'
I get the response:
error while loading shared libraries: libtasn1.so.3: cannot open shared object file: No such file or directory
sometimes the response is:
error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory

If I go to /opt/pth-toolkit/lib:
I notice that both of those lib files are there (libtasn1.so.3 and libgnutls.so.26), but they are not executable like the other lib files in the directory.
Could that be the problem?

Any help or tips would be much appreciated!!
Thanks!

smbget and smbclient don't work on Debian Wheezy

executing bin in rootdir:
bin/net: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.14' not found (required by lib/libbsd.so.0) bin/rpcclient: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.14' not found (required by lib/libbsd.so.0)
bin/smbclient: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.14' not found (required by lib/libbsd.so.0) bin/smbget: /lib/x86_64-linux-gnu/libc.so.6: versionGLIBC_2.14' not found (required by lib/libbsd.so.0)
bin/winexe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by lib/libbsd.so.0)

debian 7.8 ships with libc 2.13

executing bin in bin/ dir:
./net: error while loading shared libraries: libkrb5-samba4.so.26: cannot open shared object file: No such file or directory
./smbclient: error while loading shared libraries: libpopt_samba3.so: cannot open shared object file: No such file or directory
./smbget: error while loading shared libraries: libuid_wrapper.so: cannot open shared object file: No such file or directory

cannot find this .so in standard debian repo.

resolution like "i don't support debian" is accepted :)

thanks

sth-toolkit not working on Kali Rolling

Just tried the toolkit with the current Kali Rolling and nothing seem to work. Any ideas if additional dependencies need to be installed?

root@kali:/opt/pth-toolkit# ls
bin  lib         pth-net        pth-smbclient  pth-winexe  pth-wmis
etc  LICENSE.md  pth-rpcclient  pth-smbget     pth-wmic    README.md
root@kali:/opt/pth-toolkit# ./pth-smbget 
bin/smbget: relocation error: lib/private/libsamba3-util.so: symbol DEBUGLEVEL_CLASS, version SAMBA_UTIL_0.0.1 not defined in file libsamba-util.so.0 with link time reference
root@kali:/opt/pth-toolkit# ./pth-winexe 
bin/winexe: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory
root@kali:/opt/pth-toolkit# ./pth-net 
bin/net: error while loading shared libraries: libpdb.so.0: cannot open shared object file: No such file or directory
root@kali:/opt/pth-toolkit# ./pth-rpcclient 
bin/rpcclient: error while loading shared libraries: libpdb.so.0: cannot open shared object file: No such file or directory
root@kali:/opt/pth-toolkit# ./pth-smbget 
bin/smbget: relocation error: lib/private/libsamba3-util.so: symbol DEBUGLEVEL_CLASS, version SAMBA_UTIL_0.0.1 not defined in file libsamba-util.so.0 with link time reference
root@kali:/opt/pth-toolkit# ./pth-wmis 
bin/wmis: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
root@kali:/opt/pth-toolkit# ./pth-smbclient 
bin/smbclient: error while loading shared libraries: libgensec.so.0: cannot open shared object file: No such file or directory
root@kali:/opt/pth-toolkit# uname -a
Linux kali 4.7.0-kali1-amd64 #1 SMP Debian 4.7.8-1kali1 (2016-10-24) x86_64 GNU/Linux

{suggestion} patch more of the PTH tools

The original PTH toolkit had some other tools patched for PTHing into things like OWA and NTLM authed websites, are there any plans to port these tools to your iteration of the toolkit?

Distribution Request

Do you mind if we add this to the archassault repos? It'd be nice if it could have a license, we have been working on this one for a while.

Thanks

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.