Join us at IRC!
Become the change you seek in the world. - Gandhi
Friday, May 25, 2012
Navigation
Members Online
Total Online: 33
Web Spiders: 14
Guests Online: 31
Members Online: 2

Registered Members: 70217
Newest Member: HyperFang8
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Page 1 of 2 1 2 >
Author

Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 18-10-07 04:26
It seems that I am having a problem with loading the html source. When I load the source, it says "YOU MUST BE LOGGED IN TO PLAY!". Is it correct in me using the PHPSESSID:

strSession = 'PHPSESSID=4gur3965olqilska86php6qpt6'
dicHeaders = {'COOKIE': strSession}
req = urllib2.Request(url, None, dicHeaders)


I do not understand, as this method worked on a different challenge on a different website.
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

Skunkfoot
Member



Posts: 672
Location:
Joined: 01.09.06
Rank:
God
Posted on 18-10-07 04:44
python ftw! :D

if it's python help you need, Richo's the man. and if it's php, system knows his stuff :)



Today a young man on acid realized that all matter is merely energy condensed to a slow vibration, that we are all one consciousness experiencing itself subjectively, that there is no such thing as death, life is only a dream, and we are the imaginations of ourselves.

--Bill Hicks

--=[ Skunkfoot || Temet Nosce ]=--


Edited by Skunkfoot on 18-10-07 04:44
n/a
Author

RE: Time challenge 1 (using python)

SySTeM
-=[TheOutlaw]=-

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
The Overlord
Posted on 18-10-07 07:53
You need to send your fusion_user cookie too ;)




http://www.elites0ft.com/
Author

RE: Time challenge 1 (using python)

mitz247
Member



Posts: 246
Location: far far away
Joined: 13.05.07
Rank:
God
Warn Level: 5
Posted on 18-10-07 09:47

class AppURLopener(urllib.FancyURLopener):
version = "Firefox\r\n"+"Cookie:<enter cookie here>"

urllib._urlopener = AppURLopener()


the enter cookie here will be all of your cookies.
/*\/*\ /*\/*\ its niiice
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 18-10-07 10:34
Thanks guys I solved that problem -the moment I read System_meltdown's post- and have created another one!

This new problem is frustrating. I open the link, which is the answer, and I get the message "Wrong string, try again!" Obviously, the machine is telling me that my answer is wrong; but I have analyzed all the angles and my answer checks out.

How did I check my answer, you ask? Well, I printed out: the original html source, which contains the encoded string; the encoded string; the decoded string; the url (answer).

I checked if the printed out encoded string matches with the source. I then took that encoded string and decoded it with a translator, and then compared that decoded string with my program's decoded string, surprise surprise it checked out. All in all, everything seems to check out. I see no reason why it would not work. Haaaa, the joys of programming...

Where do I go from here?
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

Zephyr_Pure
Member



Posts: 2402
Location:
Joined: 15.09.06
Rank:
God
Posted on 18-10-07 11:33
Are you sure you populated the answer box correctly (in your scblockedript) on the challenge page? I believe I found that it gives the "Wrong String" error if the string is empty, too.



I still check PMs from time to time.




Our responses were moronic, why shouldn't he follow suit? - Futility
Author

RE: Time challenge 1 (using python)

rumburak
Member

Posts: 47
Location:
Joined: 24.07.07
Rank:
Elite
Posted on 18-10-07 14:48
Check the last byte of the string as well.
rumburak.biz
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 19-10-07 06:59
Okey, I have isolated the problem now. I commented out the code which sends the answer, and I ran my code. I obtained the answer, in printed form, and manually entered it into the address bar. I got "Wrong string, try again!"

On to experiment 1.2: I then proceeded to comment out my first request (where I obtain the html source in order to obtain the encoded string) and commented out the sending of the answer, and imputed the encoded string manually into my program. I took the answer, that my program created, and inputed the answer manually and I got the response "You took longer than a second!"; So I take it that that means my answer was correct.

Q?
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

Zephyr_Pure
Member



Posts: 2402
Location:
Joined: 15.09.06
Rank:
God
Posted on 19-10-07 12:17
So, it looks like you finally got it to work (not quick enough, though) when you manually pulled the encoded string from the page's source. Have you checked to make sure that your scblockedript is finding the encoded string in its entirety? Try getting it to print a "before" and "after" of the string, then verify.



I still check PMs from time to time.




Our responses were moronic, why shouldn't he follow suit? - Futility
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 19-10-07 14:26
Zephyr_Pure wrote:
So, it looks like you finally got it to work (not quick enough, though) when you manually pulled the encoded string from the page's source. Have you checked to make sure that your scblockedript is finding the encoded string in its entirety? Try getting it to print a "before" and "after" of the string, then verify.


I don't think you understand why I did the experiments above; I did them to prove what was wrong with my program. I printed out every useful output that you can think of: the original html source, the html response source (when I submit my answer), the encoded string which I filtered out from the original source, the decrypted source; the final url (answer).

In layman's terms, my program does what it is supposed to do, i.e. if you comment out the retrieving of the original html source. Just to make sure my program filtered the encoded string out correctly, I even gave my program the mass of string to filter. Therefore, the original html source -that my program is receiving via my programs request- is corrupt, or something. Q

Edited by SwartMumba on 19-10-07 14:44
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

sharpskater80
Member

Posts: 170
Location: Missouri
Joined: 18.09.05
Rank:
God
Warn Level: 10
Posted on 20-10-07 00:18
Are you sure you're not making a separate request when sending after you get the answer for one already? That could be it.
Author

RE: Time challenge 1 (using python)

lesserlightsofheaven
Member

Posts: 723
Location: EAX
Joined: 02.11.06
Rank:
God
Warn Level: 30
Posted on 20-10-07 00:26
SwartMumba wrote:
Therefore, the original html source -that my program is receiving via my programs request- is corrupt, or something. Q


hmph, excuses excuses.

keep in mind that unless you're using regular expresblockedsions or some other method that I don't know about, the answer you get may be affected by the length of the page HBH spits out back at you. since users are logging in and out, the amount of information in the "members online" section is constantly changing, and your program will have to be written to accommodate that.
If you know it, you know it. Public no longer.
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 20-10-07 01:11
lesserlightsofheaven wrote:
SwartMumba wrote:
Therefore, the original html source -that my program is receiving via my programs request- is corrupt, or something. Q


hmph, excuses excuses.

keep in mind that unless you're using regular expresblockedsions or some other method that I don't know about, the answer you get may be affected by the length of the page HBH spits out back at you. since users are logging in and out, the amount of information in the "members online" section is constantly changing, and your program will have to be written to accommodate that.


"hmph, excuses excuses," not actually. I am hypothesizing. With regard to your second paragraph: it does not matter how long the html source is, my program will find the encoded string.

Shrapskater80, I am not quite sure what you mean.

Edited by SwartMumba on 20-10-07 01:14
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

lesserlightsofheaven
Member

Posts: 723
Location: EAX
Joined: 02.11.06
Rank:
God
Warn Level: 30
Posted on 20-10-07 01:26
so what's wrong with your program?

I don't understand from any of your previous posts what the current problem is.
If you know it, you know it. Public no longer.
Author

RE: Time challenge 1 (using python)

Zephyr_Pure
Member



Posts: 2402
Location:
Joined: 15.09.06
Rank:
God
Posted on 20-10-07 01:37
At this point, it looks like you will have to PM someone that has Python experience, unless you figure out the problem yourself. Anything else would constitute a spoiler.



I still check PMs from time to time.




Our responses were moronic, why shouldn't he follow suit? - Futility
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 20-10-07 02:25
I was beginning to think that, for I am a python beginner and I have done all I know to do.

Are there any candidates who would like to look at my code?

Thanks in advance, SwartMumba.
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

Zephyr_Pure
Member



Posts: 2402
Location:
Joined: 15.09.06
Rank:
God
Posted on 20-10-07 02:29
I am a beginner at Python as well, but I have experience with other languages, so I should be able to interpret the logic. You can PM me if you like. Otherwise, I'm sure one of the regular Python coders will catch this thread.



I still check PMs from time to time.




Our responses were moronic, why shouldn't he follow suit? - Futility
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 21-10-07 06:09
Zephyr_Pure, I tried to send you another pm, but I got "Unable to send the Private Message. The user's inbox is full." This is the only other way I now to contact you. lol Can you please make space for one more pm?
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

SwartMumba
Member



Posts: 292
Location: TX <--- I'm here‭‮
Joined: 18.09.07
Rank:
Uber Elite
Posted on 22-10-07 11:40
Is there someone ,who is good with python, who I can pm. I still have not solved the problem.



Kids, get educated: http://www.python.com
http://www.WarstBamum.org
Author

RE: Time challenge 1 (using python)

mitz247
Member



Posts: 246
Location: far far away
Joined: 13.05.07
Rank:
God
Warn Level: 5
Posted on 22-10-07 12:17
im beginer in python but ive done the timed ones in python so i could try and help you out if you want
/*\/*\ /*\/*\ its niiice
Page 1 of 2 1 2 >
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.