Join us at IRC!
Never in the field of human conflict was so much owed by so many to so few. - Winston Churchill
Thursday, May 24, 2012
Navigation
Members Online
Total Online: 35
Web Spiders: 15
Guests Online: 32
Members Online: 3

Registered Members: 70190
Newest Member: CrOnUs
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

Java login not working

BrandonHeat
Member



Posts: 12
Location:
Joined: 26.02.11
Rank:
Monster
Posted on 02-03-11 14:32
Hi, I'm trying to login to HBH using java, but for some reason my code isn't wokring. I'm not getting an error or anything, just no result at all. Could someone have a look at the code and point me in the right direction? Any help is appreciated. (I know I'll need PHPSESSID later on when going to the mission URL, but I should be getting some result at this stage first).

My code: http://pastebin.com/DN8rBUtv

Edit: after editing the code a little, I've managed to make it connect to HBH, but when I move to a URL different from the homepage(some of the timed challenges), it says I'm not logged in. I am passing the PHPSESSID in a cookie, is there something else I need other than the session id?

Edited by BrandonHeat on 02-03-11 20:47
Author

RE: Java login not working

j4m32
Member

Posts: 81
Location:
Joined: 01.05.10
Rank:
God
Posted on 02-03-11 18:52
Yes, this website is based on PHP-fusion, there are two/three other cookies that are set but one of them is probably most important:

fusion_user=blah.blah;

This is necessary for the CMS to know that you're logged in (I think).

There are also two others:
fusion_visited=TRUE; and
fusion_lastvisit=time(seconds, probably a UNIX timestamp);

I don't think these are as important.
Hope this helps!

Jim,
Author

RE: Java login not working

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 02-03-11 19:24
j4m32 wrote:
Hope this helps!

It doesn't, as cookies have nothing to do with his problem. I'd say what it is, but then I don't want to help such a blatant java user.
Suffice it to say that this problem has come up and been mentioned over and over again for the timed challenges.


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Java login not working

j4m32
Member

Posts: 81
Location:
Joined: 01.05.10
Rank:
God
Posted on 02-03-11 20:02
@COM: Ah fair do, I think it's harder to use Java for these challanges because it over complicates the simple, I hadn't read the code so I just took a guess... :p

Jim,
Author

RE: Java login not working

BrandonHeat
Member



Posts: 12
Location:
Joined: 26.02.11
Rank:
Monster
Posted on 02-03-11 20:43
@j4m32: Thanks, Jim, you really helped me out a lot.

@COM: Actually, that's exactly what my problem was. Works like a charm now.

In case there are other "blatant" java users like me out there having trouble with this, here's how I did it: http://pastebin.com/DN8rBUtv

Of course that's just the connection part and you have to get the data and solve the challenge yourselves, and you don't really need to print everything to the screen, I just wanted to see that it works :)

Edited by BrandonHeat on 02-03-11 21:06
Author

RE: Java login not working

COM
Banned



Posts: 800
Location:
Joined: 31.08.07
Rank:
God
Posted on 03-03-11 05:31
BrandonHeat wrote:
@COM: Actually, that's exactly what my problem was. Works like a charm now.

Actually, no. Notice how you have a user agent in there now (which you didn't before when I checked it)? Yeah...


K'aem'nhi kh'rn, K'aem'nhi kh'r, K'aem'nhi kh'rmnu.
I'a Y'gs-Othoth!
Author

RE: Java login not working

BrandonHeat
Member



Posts: 12
Location:
Joined: 26.02.11
Rank:
Monster
Posted on 07-03-11 12:49
Thread revival:

OK, so my code works perferctly for HBH, I've already finished 5 or 6 of the programming challenges and everything is fine, but for the life of me I can't ajust my code to work for HTS. I've asked there, but nobody seems to know. Do you know what I need to add, I've trying setting all the request properties to match what I get with tamper data, filled in all the cookie values, but to no avail. If anyone here has also done some programming challenges at HackThisSite, could you please give me a hand. Thanks.
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.