Follow us on Twitter!
Hacking isn't just Computers & Exploits. It's a Philosophy. - Mr_Cheese
Saturday, April 19, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 33
Guests Online: 32
Members Online: 1

Registered Members: 82831
Newest Member: FL4SHC0D3R
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 06-08-09 13:50
So I've been working on Timed 7 using PHP + GD Library, and I'm pretty sure the actual code works correctly, just not how I'm sending it to HBH. I decoded a barcode by hand and it matches up to the code my program outputs.

I'm a little confused as to what it means by a 'valid' barcode. If it means using the formula to make sure everything matches up to the check digit, then that's what I'm doing. I'm also confused as to what to set 'validity' equal to. Is it a true/false variable, or should I actually set it to 'valid' or 'invalid'?

I think my biggest problem though, is that the barcode I decode is different from the one that HBH spits out when I request it, because I do all the decoding before I connect to HBH with cURL. So if anyone can help me how to figure out how to get the barcode HBH spits out, rather than a random one, that would be great.

If anyone wants to help me more, I can PM them my code to see if there's something specific I'm doing wrong.

And I hope this isn't a spoiler, but this is the code my program outputted: 684093883049

For this barcode:
img44.imageshack.us/img44/8995/barcode.png

Edited by on 06-08-09 20:08
Author

RE: A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 11-11-09 19:09
Same problem here, not a clue how it wants me to submit the answer.
I'll update you if I work this out.

I think you get a barcode then submit it, even though to spits out a new barcode. but I don't know what the post fields should be.

got it, as an example:

barcode=1978928928&validity=valid





Edited by on 11-11-09 19:37
Author

RE: A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 12-11-09 00:30
Yeah your post id's seem right, but the script generates random barcodes I believe... you need to request the page and use that Image before posting back. Otherwise you would have to just be damn lucky to send back any random barcode image.


Author

RE: A little help with Timed 7

elmiguel
Member



Posts: 160
Location: Your Computer
Joined: 12.12.07
Rank:
God
Posted on 12-11-09 03:10

barcode=1978928928&validity=valid


These are correct, just make sure you send a page request to the image itself then save it your HDD. After that, its pretty simple.


Good Luck.


The philosophy of one century is the common sense of the next. -Fortune Cookie

I would like to thank a few friends that I have made here that helped me and deserve to be mentioned:
System_Meltdown, Futility, nvrlivenvrdie, Mastergamer, TrueHacker, S1L3NTKn1GhT, Reelix, ynori7, Demons Halo, kryptor

www.hellboundhackers.org/sig/r/24963.png

www.hellboundhackers.org/sig/hbh2.png
<script>alert('XSS');</script>
Author

RE: A little help with Timed 7

synstealth
PHP WARRIOR

Your avatar

Posts: 807
Location: /etc/shadow
Joined: 30.11.04
Rank:
God
Posted on 04-12-09 00:31
ive been working on this for a while now .. I cant seem to pull images generated by barcode.php and I cURL from it and it gives me garbage. how do I get around this? what am I missing out ? hope this is not a spoiler..

Code

curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_URL, 'http://www.hellboundhackers.org/challenges/timed/timed7/barcode.php');





result:


PNG  a33;a33;a33; IHDRa33;a33;a33;a33;a33;a33;da33;a33;a33;ia33;a33;a33;PLTEa33;a33;a33;U~a33;a33;a33;tRNSa33;@fa33;a33;a33;;IDATHc`؁`lρy GFFFFFFF冢a33;hҍ;D2a33;a33;a33;a33;IENDB`





know where to Look
Author

RE: A little help with Timed 7

stranac
Member



Posts: 149
Location:
Joined: 15.11.08
Rank:
God
Posted on 27-01-10 23:18
After thinking about it for a while, I decided not to make a new thread.

I cant seem to find out how to download the generated image. Any help would be nice. Thanks. (Using PHP)

Edited by stranac on 27-01-10 23:20
Author

RE: A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 27-01-10 23:29
stranac wrote:
I cant seem to find out how to download the generated image. Any help would be nice. Thanks. (Using PHP)


cURL.


Author

RE: A little help with Timed 7

stranac
Member



Posts: 149
Location:
Joined: 15.11.08
Rank:
God
Posted on 27-01-10 23:45
Compromise wrote:
stranac wrote:
I cant seem to find out how to download the generated image. Any help would be nice. Thanks. (Using PHP)


cURL.


OK, but if I get the page trough cURL, I can just see the url. Or are you saying I should access the image URL directly? I guess I should try that.
Author

RE: A little help with Timed 7

GTADarkDude
Member



Posts: 142
Location: The Netherlands
Joined: 23.02.08
Rank:
Newbie
Posted on 28-01-10 12:32
It is possible to go for CURLOPT_BINARYTRANSFER, but personally I preferred CURLOPT_FILE to save the retrieved image as a local file. Then use the GD library to determine the barcode and then check if it's valid. Finally, use cURL again to send the answer back to HBH.


...
- - -
Author

RE: A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 29-01-10 23:11
Hope this isn't a spoiler but it's not the part being tested by this challenge anyways.
This is what you do.

1) download png file from http://www.hellboundhackers.org/challenges/timed/timed7/barcode.php
2) decode barcode. test validity
3) POST barcode=NUMBER&validity=(valid|invalid) to http://www.hellboundhackers.org/challenges/timed/timed7/index.php

All within the specified time.

As you can see from my profile page I haven't done it (keep getting time outs) but I think this is correct.



Edited as per GTADarkDude's post.




Edited by on 30-01-10 14:36
Author

RE: A little help with Timed 7

GTADarkDude
Member



Posts: 142
Location: The Netherlands
Joined: 23.02.08
Rank:
Newbie
Posted on 30-01-10 14:04
wolfmankurd wrote:
...
3) POST barcode=NUMBER&validity=(valid|invalid) to http://www.hellboundhackers.org/challenges/timed/timed7/barcode.php
...
POST the answer to index.php, not barcode.php.


...
- - -
Author

RE: A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 30-01-10 16:47
Just got this done and the code it horrible...


Author

RE: A little help with Timed 7

stranac
Member



Posts: 149
Location:
Joined: 15.11.08
Rank:
God
Posted on 01-02-10 10:35
Does anyone know what the time limit is on this one?

I was kinda hoping my home connection would be good enough, but it seems I'm gonna have to do it when I get back to college.
Author

RE: A little help with Timed 7

GTADarkDude
Member



Posts: 142
Location: The Netherlands
Joined: 23.02.08
Rank:
Newbie
Posted on 01-02-10 16:36
I'm pretty sure it's around 2 seconds. Tried a couple of times, and it works in 1.9767189025879 seconds, but it says I ran out of time when it lasts 2.0428001880646 seconds.


...
- - -
Author

RE: A little help with Timed 7


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 01-02-10 20:15
stranac wrote:
Does anyone know what the time limit is on this one?

I was kinda hoping my home connection would be good enough, but it seems I'm gonna have to do it when I get back to college.


unless it's very low you should have time, cause the actual computation doesn't take long at all nor does the post.



Author

RE: A little help with Timed 7

synstealth
PHP WARRIOR

Your avatar

Posts: 807
Location: /etc/shadow
Joined: 30.11.04
Rank:
God
Posted on 30-07-10 04:49
is there a script where I can look into decoding / reading barcodes from an image?




know where to Look
Author

RE: A little help with Timed 7

synstealth
PHP WARRIOR

Your avatar

Posts: 807
Location: /etc/shadow
Joined: 30.11.04
Rank:
God
Posted on 31-07-10 08:37
ive done that part. I figured how to pull image by colors..

now Im working on how to convert the output to measure the numbers in binary .. I am wanting to say something here that may be a big spoiler - PM me so I can PM you on my results of what im trying to do.




know where to Look
Author

RE: Barcode decode

b4ckd0or
Member

Your avatar

Posts: 10
Location:
Joined: 13.08.09
Rank:
Newbie
Posted on 27-09-10 21:07
I can easily save the barcode local, look how thick a line is(in pixels), but i dont know how i now can decode the barcode. I already Googled, but didn't find any helpfull answer. Can somebody give me a link or something to help me out?

Edit:

My Script already outputs his:
10101011110100011010001101110110011001011011101010111010010011101001000100001011101001101100101

1 = black px
0 = white px

if that spoils to mutch ill edit it. Then you could answer me per PM Smile

Edited by b4ckd0or on 27-09-10 21:17
Author

RE: A little help with Timed 7

b4ckd0or
Member

Your avatar

Posts: 10
Location:
Joined: 13.08.09
Rank:
Newbie
Posted on 28-09-10 16:58
lol thanks thats so freaking simpel i never thought about it xD I think ill get it now Smile