Join us at IRC!
The important thing is not to stop questioning. - Albert Einstein
Wednesday, February 08, 2012
Navigation
Members Online
Total Online: 43
Web Spiders: 20
Guests Online: 37
Members Online: 6

Registered Members: 67250
Newest Member: fabek
Latest Articles
View Thread

HellBound Hackers | Challenges | Timed Challenges

Author

A little help with Timed 7

-Kurt-
Member



Posts: 52
Location: 74.64.93.220
Joined: 29.08.06
Rank:
God
Posted on 06-08-09 12: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:


Edited by -Kurt- on 06-08-09 19:08
inferne@live.com
Author

RE: A little help with Timed 7

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
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



BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.




Edited by wolfmankurd on 11-11-09 19:37
Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: A little help with Timed 7

stdio
Member

Posts: 375
Location: omnipresent
Joined: 06.04.08
Rank:
God
Posted on 12-11-09 00:30
Yeah your post id's seem right, but the scblockedript 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.



I'm sorry, I cant hear you over the sound of how awesome I am!
www.thewebsiteisdown.com
Author

RE: A little help with Timed 7

elmiguel
Member



Posts: 122
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


<script>alert('XSS');</script>
Author

RE: A little help with Timed 7

synstealth
Member

Posts: 778
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..


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


result:


‰PNG  ��� IHDR���Ò���d���ÉÄüi���PLTEÿÿÿ���UÂÓ~���tRNS�@æØf���;IDATH‰c`رñŸŸ™æ±ù`lü™ŸßàÏÃçy ŒGåFåFåFåFåFåFåF冢ÜÈ�hÒˆ¸;D2����IEND®B`‚





Author

RE: A little help with Timed 7

stranac
Member

Posts: 122
Location: Croatia
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

Compromise
Member

Posts: 224
Location:
Joined: 11.11.09
Rank:
Moderate
Warn Level: 30
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.


CrazySpai
minecraft.net
Author

RE: A little help with Timed 7

stranac
Member

Posts: 122
Location: Croatia
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:
God
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

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
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.


BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.




Edited by wolfmankurd on 30-01-10 14:36
Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: A little help with Timed 7

GTADarkDude
Member



Posts: 142
Location: The Netherlands
Joined: 23.02.08
Rank:
God
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

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
Posted on 30-01-10 16:47
Just got this done and the code it horrible...


BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: A little help with Timed 7

stranac
Member

Posts: 122
Location: Croatia
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:
God
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

wolfmankurd
Member



Posts: 1519
Location: UK
Joined: 30.05.05
Rank:
God
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.



BY READING MY POST, YOU ACCEPT IT AS IS AND AGREE TO MY DISCLAIMER OF ALL WARRANTIES, EXPRESS OR IMPLIED, AS WELL AS DISCLAIMERS OF ALL LIABILITY, DIRECT, INDIRECT, CONSEQUENTIAL OR INCIDENTAL, THAT MAY ARISE FROM THE USE OF THIS (MIS)INFORMATION.


Widowmakr@hotmail.com http://LetsHackStuff.com
Author

RE: A little help with Timed 7

synstealth
Member

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




Author

RE: A little help with Timed 7

synstealth
Member

Posts: 778
Location: /etc/shadow
Joined: 30.11.04
Rank:
God
Posted on 31-07-10 07: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.




Author

RE: Barcode decode

b4ckd0or
Member

Posts: 10
Location:
Joined: 13.08.09
Rank:
God
Posted on 27-09-10 20: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 scblockedript 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 :)

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

RE: A little help with Timed 7

b4ckd0or
Member

Posts: 10
Location:
Joined: 13.08.09
Rank:
God
Posted on 28-09-10 15:58
lol thanks thats so freaking simpel i never thought about it xD I think ill get it now :)
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

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

© HellBound Hackers 2004 - 2012. Since 3rd December 2004.