Permanent Programming 11

Put your programming skills to the test in these challenges.

Permanent Programming 11

s3klyma
New User

Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)

Re: Permanent Programming 11

If my generated string is
55 & 65 & 52 & 57 & 50 & 46 & 63 &
and my shift is 4, do I need to have
59 & 69 & 55 & 61 & 54 & 50 & 67 &?
and then
; E 7 = 6 2 C

And, could I do this with javascript?
This is my idea, please tell me if it sounds plausible...

1)Use index.of() to tell it where it finds "g:" for string:
and where it finds the last &,!, ect (How do I do this?)

2)add 2 to the first number, for g:

3)again, use index.of() to search from the first number
to the second,

Generated String: 78!77!83!83!84!80!40!79!67!63!39!73!
finds
g: 78!77!83!83!84!80!40!79!67!63!39!73!
gives..
16, and 44 then
18, and 44, or
78!77!83!83!84!80!40!79!67!63!39!73!

4)It will use index.of() to find "shift"
and then add 4 to that

5)It will add 4 to that, in a separate variable, and search from
the first, to the (first + 4), to give "shift "

6)it will then take the number from "shift "(how do I do that?)
and apply it to each of the numbers from the string (how can I tell it which parts of the string are
the numbers, and how can I separate them into individual variables?)

7)Finally, it will convert the numbers into their ascii
equivalent, and send it to the site.

-I don't know whether it's possible to find the numbers from the strings, and put them
in separate variables-
-I don't know how I can have it load the site so that it will be able to do any of this-
think that it could happen in 3 seconds.

~Thanks~

I just can't figure out how to put a spoiler tag in...
[spoiler]This is what I thought it was...[/spoiler]
Last edited by s3klyma on Wed Apr 23, 2008 9:30 pm, edited 2 times in total.
s3klyma
New User

Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)

Re: Permanent Programming 11

that's one hell of a spoiler, but that's basically the idea
lolobip
New User

Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)

Re: Permanent Programming 11

So how can I load the page's source, using view-source:http://www.hackthissite.org/missions/programming/11/
into a var?

Like..

var source = view-source:http://www.hackthissite.org/missions/programming/11/;
s3klyma
New User

Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)

Re: Permanent Programming 11

Think Basic 10
lolobip
New User

Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)

Re: Permanent Programming 11

You need to send a cookie to log yourself in, otherwise you'll just get a message saying you aren't authed. Think about it, the browser doesn't know you from an unregistered user unless you're logged in. And remember, "Reverse Ascii Shift". You've pretty much got it, and this is a good first programming mission I would say, just put your ideas into code.
sharpskater69
New User

Posts: 32
Joined: Tue Apr 22, 2008 4:10 pm
Blog: View Blog (0)

Re: Permanent Programming 11

Okay, I think I've got it..
Thanks
s3klyma
New User

Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)

Re: Permanent Programming 11

So are the results supposed be characters A-Z or do they include the entire range of ascii characters?
terminus
New User

Posts: 45
Joined: Mon Apr 14, 2008 9:10 am
Blog: View Blog (0)

Re: Permanent Programming 11

Entire range, and the result isn't comprehensible ( e.g : "21zdM&é )
lolobip
New User

Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)

Re: Permanent Programming 11

I am trying this challenge using Perl's LWP module. The problem I have is sending the cookies... Where does firefox save cookies? (I usually have it delete my cookies after I close it). If I change "/some/where/cookies.lwp" to "cookies.txt" will this code work?

Code: Select all
#!/usr/bin/perl
use LWP;
#some more stuff to be figured out and not _spoiled_

It seems the communication with the website is the "hardest" part of this challenge, not the actual ascii shift...

Thanks,
Stringplayer92

Edit: removed some spoilerific code. ~fas
stringplayer92
New User

Posts: 15
Joined: Thu Apr 24, 2008 8:33 pm
Blog: View Blog (0)

Next