Post Reply 
Mozilla browser "about:" exploit
Dec. 12, 2004, 07:17 PM
Post: #12
 
Well... here is what i used, it works the same way as the interception of "window.open()" in Scott's WindowOpen.js :

Code:
var PrxRealPrint = window.print;

function PrxPrint() {
  if (confirm("*** PROXOMITRON ALERT ***\nA script is trying to access your printer.  Allow it?")) {
    return PrxRealPrint();
  } else {
    return true;
  }
}

window.print = PrxPrint;
What needs to be changed is that not only "window.print()" but all calls to the print method get intercepted.
Feel free to fiddle with it if you like! Big Teeth

sidki
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[] - Siamesecat - Dec. 08, 2004, 08:08 AM
[] - sidki3003 - Dec. 08, 2004, 05:17 PM
[] - Siamesecat - Dec. 09, 2004, 06:30 AM
[] - sidki3003 - Dec. 09, 2004, 12:09 PM
[] - Kye-U - Dec. 09, 2004, 08:55 PM
[] - Siamesecat - Dec. 10, 2004, 07:39 AM
[] - Siamesecat - Dec. 10, 2004, 08:13 AM
[] - sidki3003 - Dec. 10, 2004, 12:32 PM
[] - Siamesecat - Dec. 12, 2004, 07:21 AM
[] - sidki3003 - Dec. 12, 2004, 05:16 PM
[] - Oddysey - Dec. 12, 2004, 05:56 PM
[] - sidki3003 - Dec. 12, 2004 07:17 PM
[] - sidki3003 - Dec. 12, 2004, 08:21 PM
[] - Oddysey - Dec. 12, 2004, 11:09 PM
[] - sidki3003 - Dec. 13, 2004, 02:32 AM
[] - Kye-U - Dec. 15, 2004, 04:40 AM
[] - Kye-U - Dec. 25, 2004, 07:37 AM

Forum Jump: