Skip to content

Add Error Handler for Networks without PXE Boot Server#3

Open
LukeLauterbach wants to merge 7 commits into
MWR-CyberSec:mainfrom
LukeLauterbach:main
Open

Add Error Handler for Networks without PXE Boot Server#3
LukeLauterbach wants to merge 7 commits into
MWR-CyberSec:mainfrom
LukeLauterbach:main

Conversation

@LukeLauterbach

Copy link
Copy Markdown

If the script is executed in a network without a PXE boot server, the script will currently error out with the following message:

TypeError: can only concatenate str (not "NoneType") to str

This pull request adds an error handler so that the user is informed why the script didn't properly complete:

No PXE Boot Server Found - If you are using a VM, make sure your network adapter is bridged

To test, run: python pxethief.py 1

@Zamanry

Zamanry commented Jan 23, 2024

Copy link
Copy Markdown

Independently tested and it worked. Nice addition!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants