SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 667 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"

So we have two options. First,
we could do all our testing on a web server that is in the Internet zone. Or second, we can
just tell IE to load this page in the Internet zone even though it really lives on the local
machine. The trick to push a page load into a more restrictive zone is called Mark of the
Web (MOTW). It only goes one direction. You can??™t place the Mark of theWeb on a page in
the Internet zone telling IE to load it in the Local Machine zone, but you can go the other
way. You can read more about the Mark of the Web by following the link in the ???Reference???
section later. For now, just type exactly what I have in the first line of the following
HTML anytime you want to force a page to load in the Internet zone:






The preceding HTML instantiates the control and names it ???a???. It then uses JavaScript to
call a method on that object. That method could be RebootMachine(), but GetHostname()
makes a better screenshot, as you can see in Figure 15-2.


Pages:
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679