Created May 2001

WS_FTP JavaScript Password Decoder

Go into the .ini file, and look for the lines which begin with PWD.
Enter the value of the PWD line:

It should look like hex encoded gobbledegook with "PWD=" attached to it:
PWD=V1DF32C1C88985F24FE8A3D03783C07E2A1667BA9AD77A96E
Encoded PWD Line
Decoded Password

Source Code

<script language="Javascript" type="text/javascript">
<!--

function wsFTP_decoder(myString) {
if (myString.indexOf('PWD=', 0) == -1 || myString.length-37<0)
	{
	alert("ENTRY NOT VALID: be sure to enter the whole line, including 'PWD='");
	}
	else
	{
	myPassword=myString.substring(37,myString.length);

	var x= "";
	
	for (var i = 0; i<myPassword.length/2; i++)
		{
			document.forms[0].decoded_entry.value = "";

			var myCharacter=myPassword.substring(i*2,i*2+2);
			var myParsed=myString.substring(5+i,6+i);
			var myClearText=parseInt("0x"+myCharacter) -i -1 -((47+parseInt("0x"+myParsed))%57);
			x = x+String.fromCharCode(myClearText);

			document.forms[0].decoded_entry.value = x;
		}
	}
}
// -->
</script> 
Google
 
Web lab.artlung.com