Permanent Programming 11

Put your programming skills to the test in these challenges.

Permanent Programming 11

Post by s3klyma on Wed Apr 23, 2008 9:07 am
([msg=1060]see Permanent Programming 11[/msg])

Post about Permanent Programming 11
s3klyma
New User
New User
 
Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by s3klyma on Wed Apr 23, 2008 9:30 am
([msg=1063]see Re: Permanent Programming 11[/msg])

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-
If you would, please help me out with these two problems, and tell me whether you
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
New User
 
Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by lolobip on Wed Apr 23, 2008 10:02 am
([msg=1067]see Re: Permanent Programming 11[/msg])

that's one hell of a spoiler, but that's basically the idea ;)
lolobip
New User
New User
 
Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by s3klyma on Thu Apr 24, 2008 12:39 am
([msg=1153]see Re: Permanent Programming 11[/msg])

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
New User
 
Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by lolobip on Thu Apr 24, 2008 5:13 am
([msg=1171]see Re: Permanent Programming 11[/msg])

Think Basic 10 :)
lolobip
New User
New User
 
Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by sharpskater69 on Thu Apr 24, 2008 3:55 pm
([msg=1216]see Re: Permanent Programming 11[/msg])

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
New User
 
Posts: 34
Joined: Tue Apr 22, 2008 4:10 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by s3klyma on Fri Apr 25, 2008 4:49 pm
([msg=1325]see Re: Permanent Programming 11[/msg])

Okay, I think I've got it..
Thanks
s3klyma
New User
New User
 
Posts: 16
Joined: Tue Apr 22, 2008 3:19 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by terminus on Sat Apr 26, 2008 3:35 pm
([msg=1423]see Re: Permanent Programming 11[/msg])

So are the results supposed be characters A-Z or do they include the entire range of ascii characters?
terminus
New User
New User
 
Posts: 45
Joined: Mon Apr 14, 2008 9:10 am
Blog: View Blog (0)


Re: Permanent Programming 11

Post by lolobip on Sat Apr 26, 2008 4:01 pm
([msg=1430]see Re: Permanent Programming 11[/msg])

Entire range, and the result isn't comprehensible ;) ( e.g : "21zdM&é )
lolobip
New User
New User
 
Posts: 13
Joined: Sun Apr 13, 2008 4:11 pm
Blog: View Blog (0)


Re: Permanent Programming 11

Post by stringplayer92 on Sat Apr 26, 2008 4:57 pm
([msg=1439]see Re: Permanent Programming 11[/msg])

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;
use HTTP::Cookies;
#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
New User
 
Posts: 15
Joined: Thu Apr 24, 2008 8:33 pm
Blog: View Blog (0)


Next

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests