Make all programming missions easier!!!

Put your programming skills to the test in these challenges.

Make all programming missions easier!!!

Post by robs99 on Sun Apr 12, 2009 2:51 pm
([msg=21637]see Make all programming missions easier!!![/msg])

Use Opera web browser for easier hacking. For example press programming mission 1. You can see that you have 30 seconds time. Right click -> Source. You can see this:
<script language="JavaScript">
<!--
var TimeRemaining;
var Timer;

TimeRemaining = 30
Timer = setTimeout("countdown()", 1000);

function countdown()
{
TimeRemaining--;
document.submitform.submitbutton.value = "submit (remaining time: " + TimeRemaining + " seconds)";
if (TimeRemaining > 0)
Timer = setTimeout("countdown()", 1000);
else
{
document.submitform.submitbutton.value = "- - - - - - - - - - - - - - - - too late - - - - - - - - - - - - - - - -";
alert("Sorry, it's too late :(");
}
}
// -->
</script>

Now change this - if (TimeRemaining > 0)
Change 0 to about -999999999999999999999. Now you have 999999999999999999999 bonus seconds! Hope that works. I think it works with opera browser even if in comment it says its useless to edit javascript. Im always using opera for hackthissite. (THIS IS NOT AN ADVERTISEMENT!!!!! rly its not :D)
robs99
New User
New User
 
Posts: 2
Joined: Sun Apr 12, 2009 2:39 pm
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by godofcereal on Sun Apr 12, 2009 3:10 pm
([msg=21638]see Re: Make all programming missions easier!!![/msg])

you figured that out did you?
well done, others have done this. but not sure how it works because i doubt you can find 5 jumbled up words within however many words are in that list. also at the end of some of them you have to submit your source for the program you used to the mods so they can make sure its all clear.
Im off, last year of school and all, I had something longer but char limit fucked that up. So yeah, had a good run here. Thanks for the memories. Thanks to the staff and users.

Best regards, your posting whore,
godofcereal

p.s. Defience, you the man ;)
User avatar
godofcereal
Addict
Addict
 
Posts: 1068
Joined: Wed Aug 20, 2008 6:11 pm
Location: ireland
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by eljonto on Mon Apr 13, 2009 12:13 am
([msg=21671]see Re: Make all programming missions easier!!![/msg])

changing the time in the javascipt source code does nothing, the actual timing is done on the server, the javascript is just a visual representation for the people solving the challenges.
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________
User avatar
eljonto
Poster
Poster
 
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by robs99 on Mon Apr 13, 2009 5:44 am
([msg=21688]see Re: Make all programming missions easier!!![/msg])

eljonto wrote:changing the time in the javascipt source code does nothing, the actual timing is done on the server, the javascript is just a visual representation for the people solving the challenges.

But why is it showing my time -1, -2, -3, -4...???
robs99
New User
New User
 
Posts: 2
Joined: Sun Apr 12, 2009 2:39 pm
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by eljonto on Mon Apr 13, 2009 7:08 am
([msg=21689]see Re: Make all programming missions easier!!![/msg])

robs99 wrote:
eljonto wrote:changing the time in the javascipt source code does nothing, the actual timing is done on the server, the javascript is just a visual representation for the people solving the challenges.

But why is it showing my time -1, -2, -3, -4...???


Is this with or without editing the javascript code??
-Quis custodiet ipsos custodes?, Juvenal
_________________________________________________________________
User avatar
eljonto
Poster
Poster
 
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by aNewHobby4me on Mon Apr 13, 2009 8:55 am
([msg=21694]see Re: Make all programming missions easier!!![/msg])

@robs99: I like your thinking, but I have two options that I think might be simpler. The first is simply to disable javascript before you start the mission--the timer never counts down. Secondly, rather than change the '0' value, just inject
Code: Select all
javascript:void(TimeRemaining=86400)
and you literally have all day to solve it.

Of course, as its been pointed out earlier, these are client-side hacks, and wouldn't change any timing that is server-side.
"To understand recursion you must first understand recursion."
aNewHobby4me
Poster
Poster
 
Posts: 185
Joined: Thu Jan 08, 2009 5:44 pm
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by novalyphe on Mon Apr 13, 2009 10:51 am
([msg=21697]see Re: Make all programming missions easier!!![/msg])

This would prevent the pop-up from appearing and saying that you have run out of time. But you will still be told that you took too long if you try to submit your answer after then given time has elapsed.
novalyphe
Experienced User
Experienced User
 
Posts: 51
Joined: Mon Apr 14, 2008 11:15 am
Blog: View Blog (0)


Re: Make all programming missions easier!!!

Post by TheMindRapist on Mon Apr 13, 2009 7:14 pm
([msg=21734]see Re: Make all programming missions easier!!![/msg])

There is even a comment in the source of one of the missions:
Programming 2 wrote:<!-- happy coding 'Wells' ;-)
btw: the JavaScript-timer is only a service for you.
The HTS server checks whether you sent your answer in time, not this JavaScript-code.
I.e. it's useless to edit the JavaScript-code, you won't have unlimited time.
-->
Image
User avatar
TheMindRapist
Contributor
Contributor
 
Posts: 585
Joined: Mon Apr 14, 2008 4:57 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests