Windows - Non-Admin Install of Python and Impacket

Confirmation Log

2022-05-04: Tested and confirmed working as a non-admin in Windows 10. Used this to run secretsdump.py against other hosts on a Pivot last week. 🦏


1. Installing Python

  1. Open the Microsoft Store and find Python.
    • Shortcut: Run python.exe from the Run box or from a command prompt. If Python is not already installed, Windows will automatically open the Microsoft Store to the Python page for you.
  2. Install Python in the Microsoft Store. You don’t have to be admin to do this.
    • If you get prompted to sign in, either click Cancel/Skip or (if required) sign in with a Microsoft account. It could be the account you were provided for testing (if on a customer network) or a free, personal Outlook.com / Microsoft account.
  3. After the install is complete, open a command prompt and run python.exe. You should see the interactive Python shell.

2. Installing Impacket

  1. Use the download link on this page to download the Impacket project as a ZIP file.
  2. Following the install instructions on the same page:
    1. Extract the ZIP file you downloaded to a folder on the hard drive.
    2. Open a command prompt and cd into the folder where you extracted Impacket.
    3. Install Impacket and its dependencies with pip by running the following command within the same directory where you extracted the Impacket files:
python.exe -m pip install .
  1. Dependencies will be downloaded and installed. Wait for the install process to complete.
  2. Impacket tools (examples) should now be executable from the appropriate folder on the command line. For example, continuing in the shell and directory noted in the last command, here’s an example of running secretsdump.py --help:
cd examples
python secretsdump.py --help