The Student Room Group

CyberStart Assess 2019 chat

Scroll to see replies

Original post by Master Nathobi
ok so basically that is javascript so theres a few checks i dont fully understand but the main part is the:
var output = input.slice(-1) + input.slice(0, -1);
output = output.charAt(0).toUpperCase() + output.slice(1);
output = output.split("").reverse().join("");
return output + 'secret';

and the task is to figure out what input gives you an output and there's a part of the code that says:
if (''crof-eturbEsecret"=== answer) {
return showFlag(input);
which means in order for the 'flag' to be shown you need to give it an input so that after those lines of codes are run it equals 'crof-eturbEsecret'
and to do that you just start with crof-eturbEsecret and work backwards
1. take away secret : crof-eturbE
2.output.split("").reverse().join("") (which just reverses the code) : Ebrute-forc
3. output.charAt(0).toUpperCase() + output.slice(1) (which takes the first letter and makes it upper case, so we make it lower case) : ebrute-forc
4. input.slice(-1) + input.slice(0, -1) which takes the last letter and puts it to the front : brute-force

so you just go to the console and use the function getOutout() with the parameter brute force and type this: getOutput('brute-force');



You can still do it in chrome but it's less intuitive.
Original post by AaronSR
You can still do it in chrome but it's less intuitive.


ok.....how?
Original post by Master Nathobi
ok.....how?

You use copy as Fetch in network then edit your response.
Original post by AaronSR
You use copy as Fetch in network then edit your response.

what are you supposed to do once you've sent the request?
hey i still can't do it, i edited to remove the get-balances bit but it says 301 moved permanently??????
question 4 please
i have done all the others
i understand that but i can't find what the actual code should be
happy to trade answers
Original post by mastercoda
question 4 please

dude that's the easiest one just put the password as the place followed by the year
i have done, i sent the request using firefox
Reply 192
could u walk me through q14 pls as I have done all others
okay done it now, thanks so much but how did you know to use get-accounts???
hmmm i thought i did that and there wasn't a page to go to but thnaks anyway
Reply 195
what do i do after i find get balances
Capture6.PNG
Reply 196
got q14 thx so much everyone!!
Ive done everything other than 13, please give me answer ill exchange
Reply 198
Original post by Adi05
got q14 thx so much everyone!!

how?????
Reply 199
Original post by Adi05
this doesnt work,look
Capture1.PNG

In JavaScript, all string have to be surrounded with quotation marks :wink:

Quick Reply

Latest

Trending

Trending