Skip to main content

Crack: Some javascript

This can be found in a RAD tool for generating DHTML menus. The name of the tool will remain secret from here. It’s up to you to find out. Take note that the original developer of this tool wrote the entire code in one line. Well, to add confusion?


in file tdqm_loader.js



...
function q28(){ca=new Array(97,108,101,114,116,40,110,101,116,115,99,97,112,101,49,41);
ct=new Array(69,114,114,111,114,32,45,32,85,110,114,101,103,105,115,116,101,114,101,100,32,79,112,
101,110,67,117,98,101,32,68,72,84,77,76,32,69,102,102,101,99,116,32,45,32,40,119,119,119,46,111,
112,101,110,99,117,98,101,46,99,111,109,41);
...

To remove the annoying alert box, you have to apply diff and patch. The function above should be replaced by something like this:



function q28(){
ca=new Array('CRACKED');
ct=new Array('CRACKED');
netscape1="";
ie1="";

for(i=0;i<ct .length;i++)
netscape1+=String.fromCharCode(ct[i]);
for(i=0;i<ca.length;i++)
ie1+=String.fromCharCode(ca[i]);

eval(ie1);
};

Your generated DHTML menu now will no longer be bothered by the annoying alert box. The code is self-explanatory.

Comments

Popular posts from this blog

Architecture Complexity

Here are the items to consider: Coding to an interface Service Oriented Architecture Automated Testing Domain Driven Design Custom Data Access Layer Layered architecture Complexity is relatively equal the number of lines of code. Note that complexity is not bad. It must be justified.

Moving on

So I bought my self a 2.5″ hard drive enclosure for about 750 bucks. I wish I have my own tools for constructing a device as such. Instead of going for a 2GB USB flash drive, I chose to salvage the 30GB hard drive of an incapacitated laptop. Cool isn’t it? Though relatively slower than a typical USB flash drive, the storage capacity outweighs it. [To God] Thanks for being there always.

Bin to hex converter in 16-bit DOS assembly

Just a quick code like putting your keyboard where your brain is. There should be another way of doing this. I hate this code. start: xor al, al xor bl, bl xor cl, cl mov dl, 4 ; use dl as counter input: mov ah, 00 int 16h cmp ah, 1ch je exit cmp al, '0' jb input cmp al, '1' ja input convert: mov cl, dl dec cl ; dl - 1 sub al, 30h ; get original value shl al, cl ; place in the appropriate bit position or bl, al ; save in bl dec dl ; prepare for the next bit jnz input ; must be 4 bits cmp bl, 9 ja letter jbe number letter: add bl, 37h ; because 'A' - 37h is 0Ah jmp here number: add bl, 30h ; because '0' - 30h is 00h here: call display jmp start display: mov ah, 02h ...