tkbctf1ã«ikachanã¨ãã¦åå ãã¦ãã¾ããããããã£ãCTFã«åå ããã®ã¯åãã¦ã§ããããã¨ã¦ã楽ããã¾ããã
éå¶ã®çæ§å¤§å¤ãç²ãæ§ã§ããã
Good Old Days (Challenge 7)
å人çã«ããã§ãããåé¡æã¯ãã¡ãã
[ADVANCED]
I need the "Message" to continue my game but I forgot the secret command!!!
Can you get the "Message"? I remember that the "Message" was alphanumeric characters.
渡ããããã¡ã¤ã«ã®ä¸èº«ã¯ãªãã¨ãã¡ãã³ã³ã®ROMã§ããã
% file cb0c3d0f55b9b627b831f4fbbc153846 cb0c3d0f55b9b627b831f4fbbc153846: iNES ROM dump, 2x16k PRG, 1x8k CHR, [Vert.], [SRAM]
ãã¼å
¥åãã§ããããã«ãªã£ã¦ãã¦ãããã«å¯¾ãã¦åºåãããæåãå¤åããã
ããããã«ãããã¬èµ·åã
ãã¬ã¼ã¯ãã¤ã³ããè¨å®ãä¸æ¹åãã¼ãå
¥åã
ä¸æ¹åãã¼ãå
¥åããå ´åã0xC9ã§XORããã¦ãã¾ããããã¹ã¦ã®ãã¼ã§èª¿ã¹ãã¨ããã
A: 0x36ã§XOR B: 0x5Cã§XOR â: 0xC9ã§XOR â: 0xA3ã§XOR â: å·¦ãã¼ãã¼ã â: å³ãã¼ãã¼ã
ã¨ãªã£ã¦ãããã¨ããããã¾ããã
$6000-$6007ãé çªã«ãã¼ã®å
¥åã«ãã£ã¦å¤ããã¿ããã§ããã
ãã¼å
¥åå¾:
大ä½ã®ãã¨ã¯åãã£ãã®ã§ãã¡ããã£ã¨ã¹ã¯ãªãããæ¸ãã¾ããæ¡ä»¶ã¨ãã¦ãã¡ãã»ã¼ã¸ã¯è±æ°åãªã®ã§ããç¨åº¦ã®è¦å½ã¯ã¤ãã¯ãã§ãã
use strict; use warnings; use utf8; my %control = ( a => sub { $_[0] ^ 0x36 }, b => sub { $_[0] ^ 0x5c }, up => sub { $_[0] ^ 0xc9 }, down => sub { $_[0] ^ 0xa3 }, left => sub { $_[0] << 1 }, right => sub { $_[0] >> 1 }, ); for my $c (0xbe, 0x60, 0xa4, 0xa5, 0x88, 0x64, 0x03, 0x6a) { for my $key (keys %control) { my $output = chr($control{$key}->($c)); if ($output =~ /^[A-Za-z0-9]$/) { print "$key\t: $output\n"; } } print "\n"; }
å®è¡ããã¨ãããã¤ãåè£ãåºã¦ããã®ã§ããæãã«çµã¿åããã㨠"w0RlD256" ãflagã ã¨ãããã¾ãã