Advertisement
Guest User

Untitled

a guest
Mar 21st, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-# enable debugging
  3. import cgitb
  4. import cgi
  5. cgitb.enable()
  6. form = cgi.FieldStorage()
  7. password = form.getvalue('password')
  8. user = form.getvalue('user')
  9. command = form.getvalue("command")
  10. print "Content-Type: text/html"
  11. print
  12. print "<TITLE>W.I.L.L.</TITLE>"
  13. print '''
  14.     <h1> Welcome to W.I.L.L. </h1>
  15.     <h2> To sign up for W.I.L.L, please contact Will Beddow at will.beddow@gmail.com</h2>
  16.     <form action="index.cgi" method="GET">
  17.     Username:<br>
  18.     <input type="text" name="user">
  19.     <br>
  20.     Password:<br>
  21.     <input type="text" name="password">
  22.     <br>
  23.        Command:<br>
  24.        <input type="text" name="command">
  25.     <br><br>
  26.     <input type="submit">
  27.     </form>
  28. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement