All pastes #83956 Raw Edit

Untitled

public text v1 · immutable
·published 2006-07-10 09:49 UTC
rendered paste body
ocalbox root $ cat a.s
.global _start

_start:
subl %eax,%eax
incb %al
int $0x80
localbox root $ cat a.c
char sc[] =
                                      // <_start>
        "\x29\xc0"                    // sub    %eax,%eax
        "\xfe\xc0"                    // inc    %al
        "\xcd\x80"                    // int    $0x80
;

int main()
{
        void    (*fp)(void) = (void (*)(void))sc;

        printf("Length: %d\n",strlen(sc));
        fp();
}