Skip to content

Instantly share code, notes, and snippets.

@Shadow0ps
Created June 27, 2017 19:34
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 Shadow0ps/4562b2ed7dc729e09e03159c62a8a871 to your computer and use it in GitHub Desktop.
Save Shadow0ps/4562b2ed7dc729e09e03159c62a8a871 to your computer and use it in GitHub Desktop.
if (!(Test-Path "C:\Windows\perfc"))
{
New-Item -path C:\Windows -name perfc -type "file" -value "Inoculated"
Write-Host "System Inoculated"
}
else
{
Write-Host "File already exists! Your system may be infected."
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment