#!/usr/bin/python import cgi import cgitb cgitb.enable(context=10) fields = cgi.FieldStorage() print 'Content-Type: text/html' print '' print ''' 2

Web Application Challenge 2

Through some manipulation or interpretation of this CGI script and the HTML page(s) that it generates, a 10 character key can be found.

Find the key!

Question: How many geeks does it take to break a CGI?

''' # key = uq4G4dXrpx if (fields.has_key('num')): print '''

You entered %d.

''' % int(fields['num'].value) print '''
Enter an integer:
'''