[Project_owners] Getting Source Tab When Listening to http-on-modify-request

Arturo 'Buanzo' Busleiman buanzo at buanzo.com.ar
Wed Feb 28 17:44:57 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I DID IT!

IT WORKS!!!

I got the document of the HTTP request I'm observing!

check this out: (identation removed for posting here)

enigform_observer.prototype = {
observe: function(subject, topic, data) {
var oHttp = subject.QueryInterface(Components.interfaces.nsIHttpChannel);
if (subject.requestMethod=="POST") {
	var visitor = new HeaderInfoVisitor(subject);
	var interfaceRequestor =
oHttp.notificationCallbacks.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
	var DOMWindow = interfaceRequestor.getInterface(Components.interfaces.nsIDOMWindow);
	var loadedDoc = DOMWindow.document;
	dump("[ENIGFORM] FORM[0].id: "+loadedDoc.forms[0].id+"\n\n");

And, this is the FORM I load:

<FORM action="/pba/postverify.php" method="post" enctype="application/x-www-form-urlencoded"
id="itworkscarajo">
<INPUT TYPE="hidden" NAME="__BUANZO_ENIGFORM_REQUEST" VALUE="ToBeSigned">
<INPUT TYPE="Text" NAME="variable">
<INPUT TYPE="Submit">
</FORM>

AND this is the output in the console:

[ENIGFORM] FORM[0].id: itworkscarajo

:D :D :D

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Mail Hosting Seguro y Consultoria - http://www.buanzo.com.ar/pro/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF5jAZAlpOsGhXcE0RAuh1AJ4m8mXbME301TqSRmISfoj61/iLqgCggLyx
DTN6p8CXvssA6tJ4KKm1gGo=
=Q337
-----END PGP SIGNATURE-----


More information about the Project_owners mailing list