# pxethiefy
[pxethiefy](https://github.com/csandker/pxethiefy?tab=readme-ov-file) is a tool to enumerate PXE boot media provided from an SCCM server in a target network by broadcasting for PXE servers, requesting offered boot media and trying to decrypt it.

## Install
Setup a [venv](/cmd/Linux/venv), then...
```
sudo venv/bin/python3 -m pip install -r requirements.txt
sudo venv/bin/python3 pxethiefy.py -h
```
*Note: I'm having [this issue](https://github.com/csandker/pxethiefy/issues/5) which complains about `No module named 'scapy.modules.six.moves'`, so doing `sudo venv/bin/python3 -m pip install scapy==2.6.0` KIND OF fixed it* 

:::tip
If you get errors about `get_if_raw_hwaddr`, then [this issue](https://github.com/csandker/pxethiefy/issues/5) will likely fix your problem!  Just open the `pxethiefy.py` and where you see `from.scapy.all import *`, modify it so that it includes this line below it:

```
from scapy.all import *
from scapy.arch.unix import get_if_raw_hwaddr
```
:::

## Install with Python 3.11
:::warning
The following is in beta
:::

In a follow up to the [issue](https://github.com/csandker/pxethiefy/issues/5#issuecomment-2610531023) I posted earlier on this page, someone suggested using Python3.11 to get this tool working.  The dump of command below got it working for me in Ubuntu 22.04.  But I'm sure I didn't need to install *all* this garbage.

```
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.11 -y
sudo apt install python3-virtualenv -y
virtualenv -p python3.11 venv
source venv/bin/activate
# sudo apt install -y build-essential python3.11-dev python3.11-venv python3-pip libffi-dev libssl-dev libpcap-dev - I'm not sure this actually did anything, but it was in my troubleshooting steps from a blog I found
pip install --upgrade pip setuptools wheel
sudo venv/bin/python3.11 -m pip install -r requirements.txt
sudo apt install -y libxml2-dev libxslt1-dev -y
sudo venv/bin/python3 pxethiefy.py -h
# WORKING!
```
