Legal Information
PC Knowledge Base - Obfuscation by Hex Encoding

Good Knowledge Is Good2Use

Because of the way Windows works, programs such as Outlook and Internet Explorer can accept input as either plain text or hexadecimal ASCII codes. This means it's perfectly possible to access a Web site by taking the URL, converting each character to its decimal ASCII code, converting that decimal code into a hexadecimal value, and then supplying the result to Internet Explorer! This example might require a small leap of faith, but it does work. Let's do the conversion with www.cnet.com:

  1. The first character of the URL is w. The decimal ASCII code of w is 119.
  2. 119 converted to hexadecimal is 77 (7 x 16 +7).
  3. The URL begins with www, so the first three hex codes are 77, 77, 77.
  4. The next character is a full stop. The decimal ASCII code of . is 46.
  5. 46 converted to hexadecimal is 2E.
  6. Our hex codes are now 77, 77, 77, 2E.
The process is repeated for all the characters in the URL until the entire string is converted. The final step is to replace all the commas with percent signs, and the conversion is complete. The URL www.cnet.com becomes:
%77%77%77%2E%63%6E%65%74%2E%63%6F%6D
If you type this string into Internet Explorer's address bar, you're taken to the CNET Web site.

Returning to the URL in the phishing e-mail, the point of all this conversion and messing about is nothing other than to confuse the reader and obfuscate its true purpose. Obfuscating URLs in this manner is a common trick used by malware and spyware programmers, too -- you'll often see this type of text in the output of HijackThis or Spybot if you're unlucky enough to be infected.

WARNING

The URL in the example phishing e-mail is valid and reachable. If you do decide to decode it, you're very strongly warned not to visit the Web site under any circumstances. It's a live, malicious Web site.



Search Knowledge Base Feedback
If you like our web site refer a friend.
Your friends name.
Your friends email address.
Your Name
Your Email Address


© Copyright 1998-1999 GOOD2USE