Advertisement
n0t4dM1n

fake virus

May 23rd, 2011
1,678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!-- TWO STEPS TO INSTALL VIRUS:
  2.  
  3.    1.  Paste the coding into the HEAD of your HTML document
  4.    2.  Add the last code into the BODY of your HTML document  -->
  5.  
  6. <!-- STEP ONE: Copy this code into the HEAD of your HTML document  -->
  7.  
  8. <HEAD>
  9.  
  10. <SCRIPT LANGUAGE="JavaScript">
  11.  
  12. <!-- This script and many more are available free online at -->
  13. <!-- The JavaScript Source!! http://javascript.internet.com -->
  14.  
  15. <!-- Begin
  16. function confirmClose() {        
  17. alert("Error: 107x has occurred.  A virus has begun to infect your hard drive.  Please erase all infected files.")        
  18. if (confirm("Please inform the the hardware vendor of this error."))
  19. alert('The virus has been contained but the browser will shutdown to check for and prevent further internal damages.');
  20. else
  21. alert('The problem has not been fixed, the browser must be shut downtown to prevent further contamination.');
  22.   {              
  23. parent.close();        
  24.    }
  25. }
  26. // End -->
  27. </SCRIPT>
  28.  
  29. <!-- STEP TWO: Put this code into the BODY of your HTML document  -->
  30.  
  31. <BODY>
  32.  
  33. <CENTER>
  34. <FORM>
  35. <input type="button" value ="JavaScript Virus (not really...)" onClick="confirmClose()">
  36. </FORM>
  37. </CENTER>
  38.  
  39. <p><center>
  40. <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
  41. by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
  42. </center><p>
  43.  
  44. <!-- Script Size:  1.18 KB  -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement