didactic green
didactic green
i sincerely didnt do it till the end, just started backwards, too lazy lol
didactic green
used pil
-
- Posts: 1
- Joined: Mon Dec 06, 2010 2:18 pm
Code: Select all
for(int i = 0; i<ImageIO.read(new File("greenline.png")).getWidth();i++)
System.out.print((char)((bild.getRGB(i,0)& 0x00ff00) >> 8));
I used the gimp and saved as c source code, the text was simply readeble
Code: Select all
/* GIMP RGB C-Source image dump (greenline.c) */
static const struct {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */
unsigned char pixel_data[84 * 1 * 3 + 1];
} gimp_image = {
84, 1, 3,
"\0t\0\0h\0\0e\0\0s\0\0e\0\0\40\0\0b\0\0y\0\0t\0\0e\0\0s\0\0\40\0\0a\0\0r"
"... etc
using imagemagick:
Code: Select all
$ stream greenline.png -
these bytes are ascii text, as you obviously guessed. your answer is 'ilearnsogood'.
Four lines in Ruby:
Code: Select all
image = ChunkyPNG::Image.from_file('greenline.png')
for i in 0..image.width-1
print ChunkyPNG::Color.g(image[i,0]).chr
end
-
- Posts: 3
- Joined: Wed May 02, 2012 7:50 pm
I saved it as a bitmap, then ran these two lines of Python, knowing that any invalid text would just show up as whitespace:
Edit: Even better:
That way, it gets rid of a lot of the junk data.
Code: Select all
with open('greenline.bmp') as a:
print a.read()
Code: Select all
with open('greenline.bmp') as a:
print ''.join(i for i in a.read() if ord(i)>0 and ord(i)<128)
255 character limit for signatures. Almost enough to display each ASCII character exactly twice (if all characters printed). One less than enough to display every character in ANSI exactly once (again, if all printed). Also, the number of characters here.
That is so pimp, thank you for sharing. I just used PHP:WakiMiko wrote:using imagemagick:
Code: Select all
$ stream greenline.png - these bytes are ascii text, as you obviously guessed. your answer is 'ilearnsogood'.
Code: Select all
$picture = imagecreatefrompng('greenline.png');
$width = imagesx($picture);
for ($x = 0; $x < $width; $x++) {
$pixel = imagecolorat($picture, $x, 0);
$green = ($pixel >> 8) & 0xFF;
echo chr($green);
}
- chaoscrusade
- Posts: 6
- Joined: Thu Dec 23, 2010 11:55 am
Didactic Blue
Hello to all the hackers out there
I have decoded the whole picture but i don't know what to do with the output of that.
I will not post my decoded Stuff here since it could spoil.
Can someone who solved the challenge PM me and give me a hint?
btw what does ch2e mean?
(sorry for the bad english I'm from switzerland )
edit: whoops looks like i got the flase thread
I have decoded the whole picture but i don't know what to do with the output of that.
I will not post my decoded Stuff here since it could spoil.
Can someone who solved the challenge PM me and give me a hint?
btw what does ch2e mean?
(sorry for the bad english I'm from switzerland )
edit: whoops looks like i got the flase thread