hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : decoding javascripts?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

decoding javascripts?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-28-2008, 03:39 AM
jjk2 jjk2 is offline
Web Hosting Master
 
Join Date: Mar 2008
Posts: 606

decoding javascripts?


is it possible to decode the javascript file ?

js.anonym.to/anonym/anonymize.js

Reply With Quote


Sponsored Links
  #2  
Old 05-28-2008, 08:39 AM
prickett233 prickett233 is offline
WHT Addict
 
Join Date: Jan 2007
Posts: 157
yes.

Code:
ar protected_links = "";
var a_to_va = 0;
var a_to_vb = 0;
var a_to_vc = "";
function auto_anonymize()
{
	auto_anonyminize();
}
function auto_anonyminize()
{
	var a_to_vd = window.location.hostname;
	if(protected_links != "" && !protected_links.match(a_to_vd))
	{
		protected_links += ", " + a_to_vd;
	}
	else if(protected_links == "")
	{
		protected_links = a_to_vd;
	}
	var a_to_ve = "";
	var a_to_vf = new Array();
	var a_to_vg = 0;
	a_to_ve = document.getElementsByTagName("a");
	a_to_va = a_to_ve.length;
	a_to_vf = a_to_fa();
	a_to_vg = a_to_vf.length;
	var a_to_vh = false;
	var j = 0;
	var a_to_vi = "";
	for(var i = 0; i < a_to_va; i++)
	{
		a_to_vh = false;
		j = 0;
		while(a_to_vh == false && j < a_to_vg)
		{
			a_to_vi = a_to_ve[i].href;
			if(a_to_vi.match(a_to_vf[j]) || !a_to_vi || !a_to_vi.match("http://"))
			{
				a_to_vh = true;
			}
			j++;
		}
		
		if(a_to_vh == false)
		{
			a_to_ve[i].href = "http://anonym.to?" + a_to_vi;		
			a_to_vb++;
			a_to_vc += i + ":::" + a_to_ve[i].href + "\n" ;	
		}
	}
	var a_to_vj = document.getElementById("anonyminized");
	var a_to_vk = document.getElementById("found_links");
	if(a_to_vj)
	{
		a_to_vj.innerHTML += a_to_vb;
	}
	if(a_to_vk)
	{
		a_to_vk.innerHTML += a_to_va;
	}	
}
function a_to_fa()
{
	var a_to_vf = new Array();
	protected_links = protected_links.replace(" ", "");
	a_to_vf = protected_links.split(",");
	return a_to_vf;
}

Reply With Quote
  #3  
Old 05-28-2008, 01:35 PM
jjk2 jjk2 is offline
Web Hosting Master
 
Join Date: Mar 2008
Posts: 606
errr how did you do it ?

Reply With Quote
Sponsored Links
  #4  
Old 05-28-2008, 07:30 PM
isurus isurus is offline
Junior Guru Wannabe
 
Join Date: Mar 2007
Location: UK
Posts: 89
voodoo magic perhaps?

Personally I would've used JS to output the un-"encoded" string to the browser, eg
Code:
<html>
<head>
<title>Magic</title>
</head>
<body>
<pre>
<div id="decoded">&nbsp;</div>
</pre>
<script language="JavaScript">
document.getElementById('decoded').innerHTML = unescape('%76%61%72%20%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%20%3d%20%22%22%3b%0d%0a%76%61%72%20%61%5f%74%6f%5f%76%61%20%3d%20%30%3b%0d%0a%76%61%72%20%61%5f%74%6f%5f%76%62%20%3d%20%30%3b%0d%0a%76%61%72%20%61%5f%74%6f%5f%76%63%20%3d%20%22%22%3b%0d%0a%66%75%6e%63%74%69%6f%6e%20%61%75%74%6f%5f%61%6e%6f%6e%79%6d%69%7a%65%28%29%0d%0a%7b%0d%0a%09%61%75%74%6f%5f%61%6e%6f%6e%79%6d%69%6e%69%7a%65%28%29%3b%0d%0a%7d%0d%0a%66%75%6e%63%74%69%6f%6e%20%61%75%74%6f%5f%61%6e%6f%6e%79%6d%69%6e%69%7a%65%28%29%0d%0a%7b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%64%20%3d%20%77%69%6e%64%6f%77%2e%6c%6f%63%61%74%69%6f%6e%2e%68%6f%73%74%6e%61%6d%65%3b%0d%0a%09%69%66%28%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%20%21%3d%20%22%22%20%26%26%20%21%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%2e%6d%61%74%63%68%28%61%5f%74%6f%5f%76%64%29%29%0d%0a%09%7b%0d%0a%09%09%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%20%2b%3d%20%22%2c%20%22%20%2b%20%61%5f%74%6f%5f%76%64%3b%0d%0a%09%7d%0d%0a%09%65%6c%73%65%20%69%66%28%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%20%3d%3d%20%22%22%29%0d%0a%09%7b%0d%0a%09%09%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%20%3d%20%61%5f%74%6f%5f%76%64%3b%0d%0a%09%7d%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%65%20%3d%20%22%22%3b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%66%20%3d%20%6e%65%77%20%41%72%72%61%79%28%29%3b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%67%20%3d%20%30%3b%0d%0a%09%61%5f%74%6f%5f%76%65%20%3d%20%64%6f%63%75%6d%65%6e%74%2e%67%65%74%45%6c%65%6d%65%6e%74%73%42%79%54%61%67%4e%61%6d%65%28%22%61%22%29%3b%0d%0a%09%61%5f%74%6f%5f%76%61%20%3d%20%61%5f%74%6f%5f%76%65%2e%6c%65%6e%67%74%68%3b%0d%0a%09%61%5f%74%6f%5f%76%66%20%3d%20%61%5f%74%6f%5f%66%61%28%29%3b%0d%0a%09%61%5f%74%6f%5f%76%67%20%3d%20%61%5f%74%6f%5f%76%66%2e%6c%65%6e%67%74%68%3b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%68%20%3d%20%66%61%6c%73%65%3b%0d%0a%09%76%61%72%20%6a%20%3d%20%30%3b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%69%20%3d%20%22%22%3b%0d%0a%09%66%6f%72%28%76%61%72%20%69%20%3d%20%30%3b%20%69%20%3c%20%61%5f%74%6f%5f%76%61%3b%20%69%2b%2b%29%0d%0a%09%7b%0d%0a%09%09%61%5f%74%6f%5f%76%68%20%3d%20%66%61%6c%73%65%3b%0d%0a%09%09%6a%20%3d%20%30%3b%0d%0a%09%09%77%68%69%6c%65%28%61%5f%74%6f%5f%76%68%20%3d%3d%20%66%61%6c%73%65%20%26%26%20%6a%20%3c%20%61%5f%74%6f%5f%76%67%29%0d%0a%09%09%7b%0d%0a%09%09%09%61%5f%74%6f%5f%76%69%20%3d%20%61%5f%74%6f%5f%76%65%5b%69%5d%2e%68%72%65%66%3b%0d%0a%09%09%09%69%66%28%61%5f%74%6f%5f%76%69%2e%6d%61%74%63%68%28%61%5f%74%6f%5f%76%66%5b%6a%5d%29%20%7c%7c%20%21%61%5f%74%6f%5f%76%69%20%7c%7c%20%21%61%5f%74%6f%5f%76%69%2e%6d%61%74%63%68%28%22%68%74%74%70%3a%2f%2f%22%29%29%0d%0a%09%09%09%7b%0d%0a%09%09%09%09%61%5f%74%6f%5f%76%68%20%3d%20%74%72%75%65%3b%0d%0a%09%09%09%7d%0d%0a%09%09%09%6a%2b%2b%3b%0d%0a%09%09%7d%0d%0a%09%09%0d%0a%09%09%69%66%28%61%5f%74%6f%5f%76%68%20%3d%3d%20%66%61%6c%73%65%29%0d%0a%09%09%7b%0d%0a%09%09%09%61%5f%74%6f%5f%76%65%5b%69%5d%2e%68%72%65%66%20%3d%20%22%68%74%74%70%3a%2f%2f%61%6e%6f%6e%79%6d%2e%74%6f%3f%22%20%2b%20%61%5f%74%6f%5f%76%69%3b%09%09%0d%0a%09%09%09%61%5f%74%6f%5f%76%62%2b%2b%3b%0d%0a%09%09%09%61%5f%74%6f%5f%76%63%20%2b%3d%20%69%20%2b%20%22%3a%3a%3a%22%20%2b%20%61%5f%74%6f%5f%76%65%5b%69%5d%2e%68%72%65%66%20%2b%20%22%5c%6e%22%20%3b%09%0d%0a%09%09%7d%0d%0a%09%7d%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%6a%20%3d%20%64%6f%63%75%6d%65%6e%74%2e%67%65%74%45%6c%65%6d%65%6e%74%42%79%49%64%28%22%61%6e%6f%6e%79%6d%69%6e%69%7a%65%64%22%29%3b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%6b%20%3d%20%64%6f%63%75%6d%65%6e%74%2e%67%65%74%45%6c%65%6d%65%6e%74%42%79%49%64%28%22%66%6f%75%6e%64%5f%6c%69%6e%6b%73%22%29%3b%0d%0a%09%69%66%28%61%5f%74%6f%5f%76%6a%29%0d%0a%09%7b%0d%0a%09%09%61%5f%74%6f%5f%76%6a%2e%69%6e%6e%65%72%48%54%4d%4c%20%2b%3d%20%61%5f%74%6f%5f%76%62%3b%0d%0a%09%7d%0d%0a%09%69%66%28%61%5f%74%6f%5f%76%6b%29%0d%0a%09%7b%0d%0a%09%09%61%5f%74%6f%5f%76%6b%2e%69%6e%6e%65%72%48%54%4d%4c%20%2b%3d%20%61%5f%74%6f%5f%76%61%3b%0d%0a%09%7d%09%0d%0a%7d%0d%0a%66%75%6e%63%74%69%6f%6e%20%61%5f%74%6f%5f%66%61%28%29%0d%0a%7b%0d%0a%09%76%61%72%20%61%5f%74%6f%5f%76%66%20%3d%20%6e%65%77%20%41%72%72%61%79%28%29%3b%0d%0a%09%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%20%3d%20%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%2e%72%65%70%6c%61%63%65%28%22%20%22%2c%20%22%22%29%3b%0d%0a%09%61%5f%74%6f%5f%76%66%20%3d%20%70%72%6f%74%65%63%74%65%64%5f%6c%69%6e%6b%73%2e%73%70%6c%69%74%28%22%2c%22%29%3b%0d%0a%09%72%65%74%75%72%6e%20%61%5f%74%6f%5f%76%66%3b%0d%0a%7d');
</script>

</body>
</html>
hth

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Softaculous Adds Reseller Control Panel with New Version of Auto-Installer Web Hosting News 2012-01-03 17:27:22


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?