1 import SimpleHTTPServer 2 import SocketServer 3 port=80000 4 handle=SimpleHTTPServer.SimpleHTTPRequestHandle 5 httpd=SocketServer.TCPServer(("",port),handle) 6 httpd.serve_forever() 7 8 document.write("<script src=‘http://localhost:81/re/de.js‘>alert(‘abc‘)</script>")
时间: 2024-10-26 15:21:02