Page 1 of 11

Permanent Programming 11

PostPosted: Wed Apr 23, 2008 9:07 am
by s3klyma
Post about Permanent Programming 11

Re: Permanent Programming 11

PostPosted: Wed Apr 23, 2008 9:30 am
by s3klyma
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]

Re: Permanent Programming 11

PostPosted: Wed Apr 23, 2008 10:02 am
by lolobip
that's one hell of a spoiler, but that's basically the idea ;)

Re: Permanent Programming 11

PostPosted: Thu Apr 24, 2008 12:39 am
by s3klyma
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/;

Re: Permanent Programming 11

PostPosted: Thu Apr 24, 2008 5:13 am
by lolobip
Think Basic 10 :)

Re: Permanent Programming 11

PostPosted: Thu Apr 24, 2008 3:55 pm
by sharpskater69
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.

Re: Permanent Programming 11

PostPosted: Fri Apr 25, 2008 4:49 pm
by s3klyma
Okay, I think I've got it..
Thanks

Re: Permanent Programming 11

PostPosted: Sat Apr 26, 2008 3:35 pm
by terminus
So are the results supposed be characters A-Z or do they include the entire range of ascii characters?

Re: Permanent Programming 11

PostPosted: Sat Apr 26, 2008 4:01 pm
by lolobip
Entire range, and the result isn't comprehensible ;) ( e.g : "21zdM&é )

Re: Permanent Programming 11

PostPosted: Sat Apr 26, 2008 4:57 pm
by stringplayer92
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