Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-11-2006, 05:22 PM   PM User | #1
jdo
New to the CF scene

 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
jdo is an unknown quantity at this point
Challenge

Hi all,

Im trying to complete a security challenge. Im not very good with javascript but I need to debug this code, can anyone help with it?


<script>
function o(e){var k='';for(var i=0;i<e.length;i+=arguments.callee.toString().length-141){k+=String.fromCharCode(e.charCodeAt(i)>>1);}eval(k);}
o('ÈÞÆêÚÊÜè\\îäÒèÊPNxæÆäÒàè@ØÂÜÎêÂÎÊzDìÄæÆäÒàèD@èòàÊzDèÊðè^ìÄæÆäÒàèD@ÐäÊÌzDÊÒÈÔÈÔÈÔfffÈ\\ìÄæD|x^æÆäÒ àè|NRv');
</script>

Many thanks
jdo is offline   Reply With Quote
Old 12-11-2006, 05:25 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
The whole idea behind the challenge is for you to do it yourself not for you to ask others for help. Why do you need to debug it anyways? Its obvious someone doesn't want you to know what it says.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 12-11-2006, 06:59 PM   PM User | #3
jdo
New to the CF scene

 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
jdo is an unknown quantity at this point
There are different stages of the challenge before this one which ive gotten through but this part has me stumped. The hint says it need debugging.
I really dont have a clue what the above is supposed to do. Im not asking for anyone to solve it for me, just a pointer.
Ive googled the functions and im still getting nowhere.
jdo is offline   Reply With Quote
Old 12-11-2006, 07:25 PM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Get Firefox and test the script. Firefox will give you errors telling you the general problem. Where are you taking these challenges?
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||

Last edited by _Aerospace_Eng_; 12-11-2006 at 07:28 PM..
_Aerospace_Eng_ is offline   Reply With Quote
Old 12-11-2006, 07:31 PM   PM User | #5
dwees
New to the CF scene

 
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dwees is an unknown quantity at this point
Debugging the script

If you are looking for the problem, it lies in how the for loop is constructed.

Place an alert(k) before eval(k), and then change the ;i+=bunch_of_junk to ;i++, you will get some very interesting information from the alert.

Dave
dwees is offline   Reply With Quote
Old 12-11-2006, 08:54 PM   PM User | #6
jdo
New to the CF scene

 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
jdo is an unknown quantity at this point
Thanks for your help guys, youve been really great!
jdo is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:24 AM.


Advertisement
Log in to turn off these ads.