Skip to content
Snippets Groups Projects
Commit bfd2d34f authored by Clement Ballabriga's avatar Clement Ballabriga
Browse files

Ajout de cookies

parent 6110aa69
Branches
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ class VulnerableApp(object): ...@@ -10,6 +10,7 @@ class VulnerableApp(object):
@cherrypy.expose @cherrypy.expose
def index(self, **post): def index(self, **post):
cherrypy.response.cookie["ExempleCookie"] = "Valeur du cookie"
cursor = self.conn.cursor() cursor = self.conn.cursor()
if cherrypy.request.method == "POST": if cherrypy.request.method == "POST":
requete = "INSERT INTO chaines (txt,who) VALUES('" + post["chaine"] + "','" + cherrypy.request.remote.ip + "')" requete = "INSERT INTO chaines (txt,who) VALUES('" + post["chaine"] + "','" + cherrypy.request.remote.ip + "')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment