Skip to content

Instantly share code, notes, and snippets.

@jgrunzweig
Created January 8, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgrunzweig/52f4f6989652c930ae8f to your computer and use it in GitHub Desktop.
Save jgrunzweig/52f4f6989652c930ae8f to your computer and use it in GitHub Desktop.
function Install-Immunity($path)
{
Write-Host "Installing Immunity"
Write-Host $path
$p = Start-Process $path
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Immunity Debugger Setup');
$wshell.SendKeys('~');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Immunity Debugger Setup: License Agreement');
$wshell.SendKeys('{TAB}{TAB} {TAB}~');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Immunity Debugger Setup: Installation Folder');
$wshell.SendKeys('{TAB}{TAB}{TAB}C:\malware\debug\immunity\{TAB}{TAB}{TAB}');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Immunity Debugger Setup: Completed');
$wshell.SendKeys('~');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Immunity Debugger Setup');
$wshell.SendKeys('~');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Python 2.7.1 Setup');
$wshell.SendKeys('~');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Python 2.7.1 Setup');
$wshell.SendKeys('~');
Sleep 5;
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('Python 2.7.1 Setup');
$wshell.SendKeys('{TAB}{TAB}');
Sleep 5;
$wshell.SendKeys('~');
Sleep 10;
$wshell.SendKeys('~');
Sleep 10;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment