Last active
April 7, 2020 11:17
-
-
Save helamonster/0513575c5a7f75676564f78f9f0a3b77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dealing with Windows with limited usage of console | |
Download URLs for TightVNC: | |
https://www.tightvnc.com/download/2.8.27/tightvnc-2.8.27-gpl-setup-64bit.msi | |
https://www.tightvnc.com/download/2.8.27/tightvnc-2.8.27-gpl-setup-32bit.msi | |
1. Enable Administrator account (from Windows console command line) | |
net user Administrator password123 | |
net user Administrator /active:yes | |
2. Disable firewall (from Windows console command line) | |
netsh advfirewall set allprofiles state off | |
3. Use WinEXE to connect from a real OS (from a Linux BASH shell) | |
user@linuxbox $ winexe --interactive 1 --user Administrator //192.168.1.132 cmd.exe | |
4: Download tightvnc (from remote WinEXE command shell) | |
powershell.exe -Command "Invoke-WebRequest -OutFile tightvnc-2.8.27-gpl-setup-32bit.msi https://www.tightvnc.com/download/2.8.27/tightvnc-2.8.27-gpl-setup-32bit.msi" | |
5. Install SSH server | |
powershell.exe -Command "Add-WindowsCapability -Online -Name OpenSSH.Server*" | |
6: Install tightvnc (from remote WinEXE command shell) | |
msiexec /i tightvnc-2.8.27-gpl-setup-32bit.msi /quiet /norestart ADDLOCAL="Server,Viewer" VIEWER_ASSOCIATE_VNC_EXTENSION=1 SERVER_REGISTER_AS_SERVICE=1 SERVER_ADD_FIREWALL_EXCEPTION=1 VIEWER_ADD_FIREWALL_EXCEPTION=1 SERVER_ALLOW_SAS=1 SET_USEVNCAUTHENTICATION=1 VALUE_OF_USEVNCAUTHENTICATION=1 SET_PASSWORD=1 VALUE_OF_PASSWORD=password123 SET_USECONTROLAUTHENTICATION=1 VALUE_OF_USECONTROLAUTHENTICATION=1 SET_CONTROLPASSWORD=1 VALUE_OF_CONTROLPASSWORD=password123 | |
7. Install Chrome for Windows (from remote WinEXE command shell): | |
URLs: | |
32-bit: https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BD32DD7BD-A4C7-9AF4-614A-F3E4D22C99F9%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dstable-arch_x86-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup.exe | |
64-bit: https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BD32DD7BD-A4C7-9AF4-614A-F3E4D22C99F9%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup64.exe" | |
powershell.exe -Command "Invoke-WebRequest -OutFile ChromeStandaloneSetup.exe https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7BD32DD7BD-A4C7-9AF4-614A-F3E4D22C99F9%7D%26lang%3Den%26browser%3D3%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dstable-arch_x86-statsdef_1%26installdataindex%3Dempty/chrome/install/ChromeStandaloneSetup.exe" | |
ChromeStandaloneSetup.exe /silent /install | |
8. Install RDP for Window Home Editions | |
https://github.com/stascorp/rdpwrap | |
9. Install latest Powershell | |
https://github.com/PowerShell/PowerShell/releases | |
a. Install NSClient++ | |
https://github.com/mickem/nscp/releases/download/0.5.2.35/NSCP-0.5.2.35-x64.msi | |
msiexec /i 0.5.2.35/NSCP-0.5.2.35-x64.msi quiet /norestart | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment