Web Application Challenge 6
+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!
+ + + +''' + +print ''' +diff --git a/puzzles/webapp/50/key b/puzzles/webapp/50/key index 9c65921..042dd52 100644 --- a/puzzles/webapp/50/key +++ b/puzzles/webapp/50/key @@ -1,2 +1 @@ eVkIwHzOok - diff --git a/puzzles/webapp/60/,binary.png b/puzzles/webapp/60/,binary.png new file mode 120000 index 0000000..36053bd --- /dev/null +++ b/puzzles/webapp/60/,binary.png @@ -0,0 +1 @@ +../10/,binary.png \ No newline at end of file diff --git a/puzzles/webapp/60/,ctf.css b/puzzles/webapp/60/,ctf.css new file mode 120000 index 0000000..19b2533 --- /dev/null +++ b/puzzles/webapp/60/,ctf.css @@ -0,0 +1 @@ +../10/,ctf.css \ No newline at end of file diff --git a/puzzles/webapp/60/6.cgi b/puzzles/webapp/60/6.cgi new file mode 100755 index 0000000..75e192b --- /dev/null +++ b/puzzles/webapp/60/6.cgi @@ -0,0 +1,72 @@ +#!/usr/bin/python + +import os +import cgi +import cgitb +cgitb.enable(context=10) + +#if os.environ.has_key('QUERY_STRING'): +# os.environ['QUERY_STRING'] = '' + +fields = cgi.FieldStorage() + +import Cookie +c = Cookie.SimpleCookie() +c['key'] = 'QJebByJaKX' +c['content'] = '
Maybe I should have used sessions...
' + +print 'Content-Type: text/html\n%s\n\n\n' % c +print '' + +print ''' + + +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!
+ + + +''' + +print ''' +