Solving abo #4

July 8, 2010

Let’s move forward, this time solving abo4.c If you have no doubts on how to solve abo3, this one will be fairly easy.

First, let’s take a look at the code:

/* abo4.c
* specially crafted to feed your brain by gera@core-sdi.com */

/* After this one, the next is just an Eureka! away */

extern system,puts;
void (*fn)(char*)=(void(*)(char*))&system;

int main(int argv,char **argc) {
char *pbuf=malloc(strlen(argc[2])+1);
char buf[256];

fn=(void(*)(char*))&puts;
strcpy(buf,argc[1]);
strcpy(pbuf,argc[2]);
fn(argc[3]);
while(1);
}

Read the rest of this entry »

Solving abo #3

July 4, 2010

Hi everyone!

After a long time sitting on my ass and not solving any abo’s (kudos to Cesar for being more determined than me), here I am again with my solution to abo3.c.
Read the rest of this entry »

Follow

Get every new post delivered to your Inbox.