cookiecounter.ctf

#!/bin/bash /ss/bin/ss.exe
<%
    response = Response()
    response.isBuffered(1)
%>
<html>
    <head>
        <title>Cookie Counter</title>
    </head>
    <body>

<%
    counter = Request().Cookies("cookiecounter")
    if isNull(counter) then
        print("cookie counter did not exist")
        counter = 1
    else
        print("cookie counter is " + counter)
        counter = integer(counter) + 1
    end
    response.Cookies("cookiecounter", counter)
    response.isBuffered(0)
%>
        <p>
        [ <a href="./cookiecounter.ctf">refresh</a> ]
    </body>
</html>






