Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
860 B

  1. <HTML>
  2. <HEAD>
  3. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  4. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  5. <TITLE>Document Title</TITLE>
  6. </HEAD>
  7. <SCRIPT LANGUAGE=javascript>
  8. <!--
  9. function Print( line )
  10. {
  11. out.innerHTML = out.innerHTML + line + "\n";
  12. }
  13. function button_sec()
  14. {
  15. // debugger;
  16. Print( "ActiveXObject Shell" );
  17. sh = new ActiveXObject( "Shell.Application.1" );
  18. Print( "ActiveXObject" );
  19. fso = new ActiveXObject("Scripting.FileSystemObject");
  20. Print( "CreateTextFile" );
  21. myfile = fso.CreateTextFile( "c:\\testfile.txt", true );
  22. Print( "Close" );
  23. myfile.Close();
  24. Print( "Done" );
  25. }
  26. //-->
  27. </SCRIPT>
  28. <INPUT type="button" value="Start Security Check" id=button1 name=button1 onClick="button_sec();"><P>
  29. <DIV ID=out></DIV>
  30. </BODY>
  31. </HTML>