didactic green

Discussion of challenges you have already solved
Post Reply
Tokugawa
Posts: 2
Joined: Tue Jul 21, 2009 5:33 am

didactic green

Post by Tokugawa »

i sincerely didnt do it till the end, just started backwards, too lazy lol
justindm
Posts: 1
Joined: Mon Aug 10, 2009 12:17 pm
Location: unterlauter

didactic green

Post by justindm »

used pil
matter
Posts: 11
Joined: Mon Oct 12, 2009 7:30 am

Post by matter »

Good ol' bitmap :-)
Mcord
Posts: 3
Joined: Tue Jun 03, 2008 12:56 pm

Code !

Post by Mcord »

C# anyone ? :)

Bitmap bm = new Bitmap("greenline.png");
for(var i=0;i< bm.Width;i++)
Console.Write((char)bm.GetPixel(i, 0).G);
gowron
Posts: 9
Joined: Mon Sep 20, 2010 2:23 pm

Post by gowron »

Matlab's also very nice: File -> Import Data, choose the image and you're almost done - just apply the char command on the data.
hubert-cumberdale
Posts: 1
Joined: Mon Dec 06, 2010 2:18 pm

Post by hubert-cumberdale »

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));
[/code]
desert77
Posts: 2
Joined: Sun Jun 22, 2008 3:54 pm

Post by desert77 »

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
WakiMiko
Posts: 1
Joined: Mon Oct 24, 2011 1:37 am

Post by WakiMiko »

using imagemagick:

Code: Select all

$ stream greenline.png -
these bytes are ascii text, as you obviously guessed. your answer is 'ilearnsogood'.
wynk
Posts: 7
Joined: Tue Jan 03, 2012 7:59 pm

Post by wynk »

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
DragonEgghead
Posts: 3
Joined: Wed May 02, 2012 7:50 pm

Post by DragonEgghead »

I saved it as a bitmap, then ran these two lines of Python, knowing that any invalid text would just show up as whitespace:

Code: Select all

with open('greenline.bmp') as a:
	print a.read()
Edit: Even better:

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)
That way, it gets rid of a lot of the junk data.
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.
alakani
Posts: 2
Joined: Thu Jun 28, 2012 8:21 pm

Post by alakani »

WakiMiko wrote:using imagemagick:

Code: Select all

$ stream greenline.png -
these bytes are ascii text, as you obviously guessed. your answer is 'ilearnsogood'.
That is so pimp, thank you for sharing. I just used PHP:

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);
}
User avatar
chaoscrusade
Posts: 6
Joined: Thu Dec 23, 2010 11:55 am

Didactic Blue

Post by chaoscrusade »

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 :)
derplumps
Posts: 3
Joined: Sun Mar 03, 2013 11:19 am

Post by derplumps »

my way:

wget png
convert png bmp
cat bmp
Post Reply