Skip to content

Instantly share code, notes, and snippets.

@0xhexmex
Created August 17, 2022 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xhexmex/3f0be75a21378a004852d2147364d5a1 to your computer and use it in GitHub Desktop.
Save 0xhexmex/3f0be75a21378a004852d2147364d5a1 to your computer and use it in GitHub Desktop.
How to get PCredz working - might be related to having python3.10
Install pipx (only needed to install pipenv)
# python3 -m pip install --user pipx
# python3 -m pipx ensurepath
Install pipenv for python3.10
# apt install python3.10-venv
# pipx install pipenv
Clone PCredz, create pipenv in it, then clone python-libpcap and install it
┌──(root㉿kali)-[~]
└─# cd /root/tools/PCredz
┌──(root㉿kali)-[~/tools/PCredz]
└─# pipenv --python 3.9 shell
┌──(PCredz-F7lqoWFb)─(root㉿kali)-[~/tools/PCredz]
└─# pip3 install Cython && pip3 install python-libpcap ## you'll probably get an error about a missing Python.h on that libpcap install, so next do this to fix it:
┌──(PCredz-F7lqoWFb)─(root㉿kali)-[~/tools/PCredz]
└─# git clone https://github.com/caizhengxin/python-libpcap
┌──(PCredz-F7lqoWFb)─(root㉿kali)-[~/tools/PCredz]
└─# cd python-libpcap
┌──(PCredz-F7lqoWFb)─(root㉿kali)-[~/tools/PCredz/python-libpcap]
└─# apt install libpython3.9-dev
┌──(PCredz-F7lqoWFb)─(root㉿kali)-[~/tools/PCredz/python-libpcap]
└─# python3.9 setup.py build && python3.9 setup.py install
┌──(PCredz-F7lqoWFb)─(root㉿kali)-[~/tools/PCredz]
└─# python3 ./Pcredz --help
usage: Pcredz [-h] [-f FNAME | -d DIR_PATH | -i INTERFACE] [-c] [-t] [-v]
Pcredz 1.0.0 Author: Laurent Gaffie
optional arguments:
-h, --help show this help message and exit
-f FNAME Pcap file to parse
-d DIR_PATH Pcap directory to parse recursivly
-i INTERFACE interface for live capture
-c deactivate CC number scanning (Can gives false positives!)
-t Include a timestamp in all generated messages (useful for correlation)
-v More verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment