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.pyagainst other hosts on a Pivot last week. 🦏
1. Installing Python
- Open the Microsoft Store and find Python.
- Shortcut: Run
python.exefrom 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.
- Shortcut: Run
- 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.
- After the install is complete, open a command prompt and run
python.exe. You should see the interactive Python shell.
2. Installing Impacket
- Use the download link on this page to download the Impacket project as a ZIP file.
- Following the install instructions on the same page:
- Extract the ZIP file you downloaded to a folder on the hard drive.
- Open a command prompt and
cdinto the folder where you extracted Impacket. - Install Impacket and its dependencies with
pipby running the following command within the same directory where you extracted the Impacket files:
python.exe -m pip install .- Dependencies will be downloaded and installed. Wait for the install process to complete.
- 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