Author Topic: Need some help  (Read 1177 times)

0 Members and 4 Guests are viewing this topic.

Offline icon

  • Serf
  • *
  • Posts: 26
  • Cookies: 6
  • Ghost
    • View Profile
Need some help
« on: August 24, 2013, 05:11:40 am »
Hey guys. Yep, I'm still alive. Sorry for the long absence, I'm just getting back from basic training. Anyway, I'm trying out for a competitive cyber warfare team, and the tryout is basically just a series of wargames. This one has me really stumped. Which bothers me, because it should be easy. The page looks like:

Code: [Select]
<html>
<head>
<title><3 Burritos</title>
 <script type="text/javascript">
 eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('a 9(){4 1=3.6(\'c\');4 0=3.6(\'7\');0.2(\'8\',\'b\');0.2(\'k\',\'i==\');0.2(\'d\',\'h\');1.2(\'g\',\'e\');1.5(0);3.f.5(1);1.j()}',21,21,'theInput|theForm|setAttribute|document|var|appendChild|createElement|input|name|donate|function|donate_the_monies|form|type|POST|body|method|hidden|MQ|submit|value'.split('|'),0,{}))  </script>
 <style type="text/css"> body { background-color:#281400; color:#fff; text-align:center; } </style>
 </head>
<body>
<h2>I <3 Chipotle.</h2>
 <img src="menu_burrito.png" width="672" height="376" alt=""> <br />   
 Chipotle is among Shareef12's top 3 favorite things in the world. Unfortunately, due to a limited supply and high demand, burritos currently cost $10,000.00 each. <br />
However, if you donate enough for a burrito, you may be rewarded.<br />   
<button onclick="javascript:donate();">Donate $0.01</button><br />    So far, $0 has been donated. <br />     That's not enough money for a burrito    </body>
</html>



The part that is messing me up is the Javascript. I've never been strong in this area, and I dont know what the fuck that means. If yall could help me, much respect.

Thanks. It's good to be back.


MOD: Sorry for the formatting of the code; that's the way it came

 ???
« Last Edit: August 24, 2013, 05:14:13 am by icon »
De Oppresso Liber

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Need some help
« Reply #1 on: August 24, 2013, 08:03:14 am »
Hint: use a JavaScript beautifier.
It should be obvious that the code is obfuscated though.

Offline icon

  • Serf
  • *
  • Posts: 26
  • Cookies: 6
  • Ghost
    • View Profile
Re: Need some help
« Reply #2 on: August 24, 2013, 03:06:55 pm »
Hint: use a JavaScript beautifier

I did. The top portion makes sense to me. It's the last line thats fucking me over

Code: [Select]
    }('a 9(){4 1=3.6(\'c\');4 0=3.6(\'7\');0.2(\'8\',\'b\');0.2(\'k\',\'i==\');0.2(\'d\',\'h\');1.2(\'g\',\'e\');1.5(0);3.f.5(1);1.j()}', 21, 21, 'theInput|theForm|setAttribute|document|var|appendChild|createElement|input|name|donate|function|donate_the_monies|form|type|POST|body|method|hidden|MQ|submit|value'.split('|'), 0, {})
I have no idea what this is.
De Oppresso Liber

Offline hanorotu

  • Dj Rapture
  • VIP
  • Majesty
  • *
  • Posts: 1173
  • Cookies: 98
  • ( ͡° ʖ ͡°)
    • View Profile
    • Rapture
Re: Need some help
« Reply #3 on: August 24, 2013, 03:13:11 pm »
I did. The top portion makes sense to me. It's the last line thats fucking me over

Code: [Select]
    }('a 9(){4 1=3.6(\'c\');4 0=3.6(\'7\');0.2(\'8\',\'b\');0.2(\'k\',\'i==\');0.2(\'d\',\'h\');1.2(\'g\',\'e\');1.5(0);3.f.5(1);1.j()}', 21, 21, 'theInput|theForm|setAttribute|document|var|appendChild|createElement|input|name|donate|function|donate_the_monies|form|type|POST|body|method|hidden|MQ|submit|value'.split('|'), 0, {})
I have no idea what this is.
That would be obfuscation I think lol, I don't know


Life is hard, then you get buried.
If you want to use my work all of my music is licensed under GNU General Public License v3 (GPL-3) - http://bit.ly/TfUOBA

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Need some help
« Reply #4 on: August 24, 2013, 03:31:51 pm »
You obviously did not use what I told you to use :P the code is obfuscated.

Offline icon

  • Serf
  • *
  • Posts: 26
  • Cookies: 6
  • Ghost
    • View Profile
Re: Need some help
« Reply #5 on: August 24, 2013, 04:32:16 pm »
i ran it through a couple different beautifiers, it still gave me the same code back
De Oppresso Liber

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Need some help
« Reply #6 on: August 24, 2013, 04:33:33 pm »
Try using Firebug to deobfuscate this.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Need some help
« Reply #7 on: August 24, 2013, 05:43:20 pm »
I don't like spoonfeeding, how ever, http://jsbeautifier.org/ gives me a pretty readable code block. If you can't make sense of what that gives then I've got bad news for you.