File: httpoxy_twisted_directory.py

package info (click to toggle)
bandit 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,824 kB
  • sloc: python: 10,049; makefile: 22; sh: 14
file content (7 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
from twisted.internet import reactor
from twisted.web import static, server, twcgi

root = static.File("/root")
root.putChild("cgi-bin", twcgi.CGIDirectory("/var/www/cgi-bin"))
reactor.listenTCP(80, server.Site(root))
reactor.run()