Have you ever wanted a fake powershell? Well now you can!
Python Tkinter GUI connects to a Windows Server 2019 docker container running powershell. These commands are passed back to the GUI so the user may not catch on that they typing into in a container.
The main powershell can be found at C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
, so use that if your powershell PATH becomes messed up.
-
Run
install_docker.ps1
script to install docker on Windows Server 2019. -
Run
install_fake_powershell.ps1
to downloadscript.exe
andpowershell.ico
toC:/Program Files/Fake PowerShell
-
Run
remove_shortcuts.ps1
to remove the existing powershell shorcuts, so they no longer appear in the search results -
Run
put_shortcuts_back.ps1
to put the shortcuts back, and have powershell appear in the search results once again
Just compile it on windows ok. It is classified as malware, so you may want to turn your antivirus off when compiling.
With many thanks to my friend Ron for compiling it on his machine.
The current exe file requires powershell.ico to be in its directory
- Install python from the web. Also can install Microsoft Visual C++ Redistributable
py -m pip install pyinstaller
py -m PyInstaller --onefile --windowed --icon=powershell.ico --add-data "powershell.ico;." script.py