| Author |
A little help with Timed 7 |
-Kurt-
Member

Posts: 52
Location: 74.64.93.220
Joined: 29.08.06 Rank: God |
|
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 |
|
| Author |
RE: A little help with Timed 7 |
wolfmankurd
Member

Posts: 1519
Location: UK
Joined: 30.05.05 Rank: God |
|
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 |
|
| Author |
RE: A little help with Timed 7 |
stdio
Member
Posts: 375
Location: omnipresent
Joined: 06.04.08 Rank: God |
|
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! |
|
| Author |
RE: A little help with Timed 7 |
elmiguel
Member

Posts: 122
Location: Your Computer
Joined: 12.12.07 Rank: God |
|
|
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
|
|
| Author |
RE: A little help with Timed 7 |
synstealth
Member
Posts: 778
Location: /etc/shadow
Joined: 30.11.04 Rank: God |
|
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 |
|
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
|
|
|
stranac wrote:
I cant seem to find out how to download the generated image. Any help would be nice. Thanks. (Using PHP)
cURL.
CrazySpai |
|
| Author |
RE: A little help with Timed 7 |
stranac
Member
Posts: 122
Location: Croatia
Joined: 15.11.08 Rank: God |
|
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 |
|
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 |
|
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 |
|
| Author |
RE: A little help with Timed 7 |
GTADarkDude
Member

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

|
|
| Author |
RE: A little help with Timed 7 |
stranac
Member
Posts: 122
Location: Croatia
Joined: 15.11.08 Rank: God |
|
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 |
|
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 |
|
|
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.

|
|
| Author |
RE: A little help with Timed 7 |
synstealth
Member
Posts: 778
Location: /etc/shadow
Joined: 30.11.04 Rank: God |
|
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 |
|
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 |
|
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 |
|
lol thanks thats so freaking simpel i never thought about it xD I think ill get it now  |
|