Kaz_A-Level_2019
Badges: 13
Rep:
?
#1
Report Thread starter 2 years ago
#1
<script type="text/javascript">
// Launch the rocket!
var launchRocket = function (sequence) {
if (sequence === 321) {
var _$_f307 = ["\x63\x6C\x61\x73\x73\x4E\x61\x6 D\x65", "\x61\x6E\x69\x6D\x61\x74\x69\x6 F\x6E\x2D\x77\x69\x6E\x64\x6F\x7 7", "\x67\x65\x74\x45\x6C\x65\x6D\x6 5\x6E\x74\x73\x42\x79\x43\x6C\x6 1\x73\x73\x4E\x61\x6D\x65", "\x62\x6F\x64\x79", "\x61\x6E\x69\x6D\x61\x74\x69\x6 F\x6E\x2D\x77\x69\x6E\x64\x6F\x7 7\x20\x61\x6E\x69\x6D\x61\x74\x6 5", "\x74\x61", "\x6b\x33\x6d", "\x6f\x76\x33", "\x69\x6E\x6E\x65\x72\x48\x54\x4 D\x4C", "\x72\x6F\x63\x6B\x65\x74\x2D\x6 3\x6F\x64\x65"];
document[_$_f307[3]][_$_f307[2]](_$_f307[1])[0][_$_f307[0]] = _$_f307[4];
var e = _$_f307[5];
var x = _$_f307[6];
var n = _$_f307[7];
document[_$_f307[3]][_$_f307[2]](_$_f307[9])[0][_$_f307[8]] = e + x + n;
}
}
</script>

I need to be able to run this code without clicking a "run" button.
0
reply
shawtyb
Badges: 20
Rep:
?
#2
Report 2 years ago
#2
is it possible to include a timer?
0
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#3
Report Thread starter 2 years ago
#3
(Original post by shawtyb)
is it possible to include a timer?
I'm not sure how to do that :/
0
reply
shawtyb
Badges: 20
Rep:
?
#4
Report 2 years ago
#4
(Original post by GCSEstudent1307)
I'm not sure how to do that :/
its been a long time since i coded and even then it was only basic
try codeacademy
1
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#5
Report Thread starter 2 years ago
#5
(Original post by shawtyb)
its been a long time since i coded and even then it was only basic
try codeacademy
Erm... Okayyy
0
reply
CompSci in2k17
Badges: 15
Rep:
?
#6
Report 2 years ago
#6
What exactly do you want?
0
reply
J2theamie
Badges: 3
Rep:
?
#7
Report 2 years ago
#7
(Original post by GCSEstudent1307)
<script type="text/javascript">
// Launch the rocket!
var launchRocket = function (sequence) {
if (sequence === 321) {
var _$_f307 = ["\x63\x6C\x61\x73\x73\x4E\x61\x6 D\x65", "\x61\x6E\x69\x6D\x61\x74\x69\x6 F\x6E\x2D\x77\x69\x6E\x64\x6F\x7 7", "\x67\x65\x74\x45\x6C\x65\x6D\x6 5\x6E\x74\x73\x42\x79\x43\x6C\x6 1\x73\x73\x4E\x61\x6D\x65", "\x62\x6F\x64\x79", "\x61\x6E\x69\x6D\x61\x74\x69\x6 F\x6E\x2D\x77\x69\x6E\x64\x6F\x7 7\x20\x61\x6E\x69\x6D\x61\x74\x6 5", "\x74\x61", "\x6b\x33\x6d", "\x6f\x76\x33", "\x69\x6E\x6E\x65\x72\x48\x54\x4 D\x4C", "\x72\x6F\x63\x6B\x65\x74\x2D\x6 3\x6F\x64\x65"];
document[_$_f307[3]][_$_f307[2]](_$_f307[1])[0][_$_f307[0]] = _$_f307[4];
var e = _$_f307[5];
var x = _$_f307[6];
var n = _$_f307[7];
document[_$_f307[3]][_$_f307[2]](_$_f307[9])[0][_$_f307[8]] = e + x + n;
}
}
</script>

I need to be able to run this code without clicking a "run" button.
Oi mate, you aren't the only one doing Cyber Discovery. You should be doing this by yourself, as the whole point of it is to assess your skill in cyber security.

Ill give you a clue though- Hex
4
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#8
Report Thread starter 2 years ago
#8
Lol. It's a small world.
0
reply
Mya_oty
Badges: 11
Rep:
?
#9
Report 2 years ago
#9
Wait how did yi get that code from the image?
0
reply
flare001
Badges: 5
Rep:
?
#10
Report 2 years ago
#10
You can decode the javascript they've put on the source code using any hex to text converter. It turns into:

Code:
// Launch the rocket!
             var launchRocket = function (sequence) {
              if (sequence === 321) {
               var _$_f307 =["className", "animation-window",
"getElementsByClassName", "body", "animation-window animate",
"z0", "omf", "orward", "innerHTML", "rocket-code"];
 document[_$_f307[3]][_$_f307[2]](_$_f307[1])[0][_$_f307[0]] = _$_f307[4];
 var e = _$_f307[5];
 var x = _$_f307[6];
 var n = _$_f307[7];
document[_$_f307[3]][_$_f307[2]](_$_f307[9])[0][_$_f307[8]] = e + x + n;   
 } 
 }
But it still doesn't work if I try to run it on the chrome console? Any ideas?
0
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#11
Report Thread starter 2 years ago
#11
I hadn't thought of that. I'll try it and let you know.
0
reply
Mya_oty
Badges: 11
Rep:
?
#12
Report 2 years ago
#12
im on this question too
0
reply
Mya_oty
Badges: 11
Rep:
?
#13
Report 2 years ago
#13
code doesn't work on Mac either
0
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#14
Report Thread starter 2 years ago
#14
(Original post by flare001)
You can decode the javascript they've put on the source code using any hex to text converter. It turns into:

Code:
// Launch the rocket!
             var launchRocket = function (sequence) {
              if (sequence === 321) {
               var _$_f307 =["className", "animation-window",
"getElementsByClassName", "body", "animation-window animate",
"z0", "omf", "orward", "innerHTML", "rocket-code"];
 document[_$_f307[3]][_$_f307[2]](_$_f307[1])[0][_$_f307[0]] = _$_f307[4];
 var e = _$_f307[5];
 var x = _$_f307[6];
 var n = _$_f307[7];
document[_$_f307[3]][_$_f307[2]](_$_f307[9])[0][_$_f307[8]] = e + x + n;   
 } 
 }
But it still doesn't work if I try to run it on the chrome console? Any ideas?
What happened to the numbers next to the " _$_f307"?
0
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#15
Report Thread starter 2 years ago
#15
(Original post by Mya_oty)
im on this question too
Oooh, have you done challenge 9?
0
reply
Mya_oty
Badges: 11
Rep:
?
#16
Report 2 years ago
#16
yepp
0
reply
flare001
Badges: 5
Rep:
?
#17
Report 2 years ago
#17
(Original post by GCSEstudent1307)
What happened to the numbers next to the " _$_f307"?
You have to plug those number into a hexadecimal to text converter and it comes up with the text I posted. Try this one:
http://www.unit-conversion.info/texttools/hexadecimal/
0
reply
flare001
Badges: 5
Rep:
?
#18
Report 2 years ago
#18
Yeah I've done challenge 9 too
0
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#19
Report Thread starter 2 years ago
#19
Plz helppppp
0
reply
Kaz_A-Level_2019
Badges: 13
Rep:
?
#20
Report Thread starter 2 years ago
#20
I don't get it 😭
Well, I do get it, but everything I type doesn't work :/
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Regarding Ofqual's most recent update, do you think you will be given a fair grade this summer?

Yes (256)
33.82%
No (501)
66.18%

Watched Threads

View All