SolvedXOR String html file?

Posts 13 of 3 · Page 1 of 1
XOR String html file?
I can't seem to find it. I had it bookmarked for a long ass time, but in a recent system wipe, it was lost. Was wondering if anyone could point me in the right direction for this file, googled for awhile, but every other XOR out there requires a password and i don't have one for my XOR as far as i can tell anyway
A password can be written in hex.... 0xDEADBEEF
BTW it seems that you didnt understand how XOR works... It HAS to have a password, or with what do you think you are actually XORring your string? -.-
Code:
<HTML> 
 
<HEAD> 
 
<SCRIPT language=JavaScript> 
 
var symbols = " !\"#$%&'()*+'-./0123456789:;<=>?@";
function toAscii (xx)  
{
	var loAZ = "abcdefghijklmnopqrstuvwxyz";
	symbols+= loAZ.toUpperCase();
	symbols+= "[\\]^_`";
	symbols+= loAZ;
	symbols+= "{|}~";
	var loc;
	loc = symbols.indexOf(xx);
	if (loc >-1) 
	{ 
		Ascii_Decimal = 32 + loc;
		return (32 + loc);
	}
	return(0);  // If not in range 32-126 return ZERO
}
 
function Dec2Hex(Decimal) 
{
	var hexChars = "0123456789ABCDEF";
	var a = Decimal % 16;
	var b = (Decimal - a)/16;
	hex = "" + hexChars.charAt(b) + hexChars.charAt(a);
	L = hexChars.charAt(a);
	H = hexChars.charAt(b);
	return hex;
}
 
function randByte() { return Math.floor(Math.random()*256%256); }
 
 
function blub(form) 
{
	s1 = form.inp.value;
	xvaluestart = randByte();
	xrefkill =  "0x" + Dec2Hex(randByte()) + Dec2Hex(randByte()) + Dec2Hex(randByte()) + Dec2Hex(randByte());
 
	finallen = s1.length+1;
 
	hexsequence = '"';
	xvalue = xvaluestart;
	for(i=0;i<s1.length;i++) 
	{ 
		ch     = s1.substr(i,1); 
		var chval; 
		if(ch=="\\"){ 
		    i++; 
		    ch     = s1.substr(i,1); 
		    if(ch=="0")       { chval = 0;  } 
		    else if(ch=="n")  { chval = 10; } 
		    else if(ch=="\\") { chval = toAscii("\\"); } 
		    else if(ch=="r")  { chval = 13; } 
		    else { javascript:alert("invalid control sequence: \\"+ch); } 
		    --finallen; 
		} 
		else if(ch=="|"){ 
		    chval=0; 
		} 
		else { 
		    chval  = toAscii(ch); 
		    if(chval==0) { form.ans.value = "invalid character: "+ch; return; } 
        } 
		chval ^=xvalue; 
		xvalue += 1; 
		xvalue %= 256; 
		hexsequence += "\\x"+ Dec2Hex(chval); 
	} 
	hexsequence += '"'; 
	
	s2  = "/*"+s1+"*/XorStr<0x" + Dec2Hex(xvaluestart) + ","  + finallen + ","+xrefkill+'>('
	s2 += hexsequence + "+" + xrefkill + ").s";
	
	form.ans.value = s2;
	form.ans.focus();
	form.ans.select();
}
 
 
</SCRIPT> 
</HEAD> 
 
 
<BODY background="../imgs/bg.gif"> 
<CENTER> 
<FORM name=formx> 
<INPUT name=inp size=20 value="IsDebuggerPresent">  <br><br>	
<INPUT onclick=blub(this.form) type=button value="******  CONVERT TO XOR STRING   ******"><br>&nbsp;&nbsp; 
<INPUT name=ans size=220 ?number?> 
</FORM> 
</CENTER>
Posts 13 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?