My Toolchain


Bootstrap the bootstrap:

Here is a quick boot strapping powershell:

set-executionpolicy -executionpolicy unrestricted -force
Register-PackageSource -name chocolatey -location http://chocolatey.org/api/v2 -ProviderName chocolatey -trusted -verbose
md "$Env:APPDATA\Console\"
$autorunscript = "$Env:APPDATA\console\cmd_start.bat"
(new-object net.webclient).DownloadString(‘https://gist.github.com/mbrownnycnyc/6419147/raw/6e03d68225118598a1a5309871ea1314636630f9/cmd_start.bat’) > $autorunscript
[IO.File]::WriteAllText( $autorunscript, [IO.File]::ReadAllText($autorunscript).replace("`n?","`r`n"), (new-object System.Text.UTF8Encoding $false) )
$autorunreg = (get-itemproperty -Path "Registry::HKEY_CURRENT_USER\Software\Microsoft\Command Processor" -Name autorun).AutoRun
#checking if the registry key already contains the script, if it doesn't then set it...
if ( $autorunreg.length -gt 1 ) { if ( $autorunreg.Contains( "%appdata%\console\cmd_start.bat" ) -eq $false ) { set-itemproperty -Path "Registry::HKEY_CURRENT_USER\Software\Microsoft\Command Processor" -name AutoRun -value $autorunreg"&""%appdata%\console\cmd_start.bat""" } else { write-host "cmd_start.bat is already present in your AutoRun." -backgroundcolor "darkgreen" } } else { new-itemproperty -Path "Registry::HKEY_CURRENT_USER\Software\Microsoft\Command Processor" -name AutoRun -propertytype string -value """%appdata%\console\cmd_start.bat""" }
$console2settings = "$Env:APPDATA\console\Console.xml"
(new-object net.webclient).DownloadString(‘https://gist.githubusercontent.com/mbrownnycnyc/6419130/raw/34651123ac63e423301bbbb7095db8a91bdc215c/console.xml’) > $console2settings
mkdir $env:userprofile\Documents\WindowsPowerShell
(new-object net.webclient).DownloadString(‘https://gist.githubusercontent.comc/mbrownnycnyc/6664153/raw/a1c604677582a91d3e3ffae46a02640ede811107/Microsoft.PowerShell_profile.ps1’) > $profile
 
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex
install-module PsReadLine
Invoke-WebRequest -Uri https://live.sysinternals.com/procexp.exe -OutFile c:\windows\procexp.exe
Invoke-WebRequest -Uri https://live.sysinternals.com/Procmon.exe -OutFile c:\windows\procmon.exe
Invoke-WebRequest -Uri https://live.sysinternals.com/psgetsid.exe -OutFile c:\windows\psgetsid.exe
Invoke-WebRequest -Uri https://live.sysinternals.com/psexec.exe -OutFile c:\windows\psexec.exe
Invoke-WebRequest -Uri https://live.sysinternals.com/regjump.exe -OutFile c:\windows\regjump.exe
Invoke-WebRequest -Uri https://live.sysinternals.com/Tcpview.exe -OutFile c:\windows\tcpview.exe
Invoke-WebRequest -Uri http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe -OutFile c:\windows\putty.exe
Invoke-WebRequest -Uri http://the.earth.li/~sgtatham/putty/latest/x86/pscp.exe -OutFile c:\windows\pscp.exe
Invoke-WebRequest -Uri http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe -OutFile c:\windows\plink.exe
$packages = ("console2 autohotkey.install tortoisehg 7zip.install ilspy windbg filezilla puretext winscp.install greenshot baretail notepad2 notepadplusplus.install virtualclonedrive paint.net pdfcreator spacesniffer wireshark regshot f.lux").split(' ')
foreach ($packagename in $packages ) {
  Install-Package -Name $packagename
}


 
psexec.exe -i -s cmd.exe
takeown /F "C:" /A /R /D Y
icacls c: /grant administrators:F /t /c
# and again...
takeown /F "C:" /A /R /D Y
icacls c: /grant administrators:F /t /c

The apps:
Here is a list of apps and configuration that I prefer for my Windows boxen:

  • Helium (http://www.clockworkmod.com/carbon)
    1. No comments yet.
    1. No trackbacks yet.

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: