Re: Generating shellcode

From: SpaceWalker (spacewalker@altern.org)
Date: 05/20/02


Date: Mon, 20 May 2002 20:32:58 +0200
From: SpaceWalker <spacewalker@altern.org>
To: Sergei Kostov <serj@varna.net>



> do is a simple proggy which does
> printf("\\0%x",(unsigned char) c); for the simbols from the file
>
> The confusing thin is that you have to convert from AT&T
> asembly style(gas gdb etc) to INTEL asm style (nasm)
> But that is no problem.
I did a program which dump a shellcode as
shellcode =
        "\xcd\x80";
 /* Size : 2 */
on stdout, using his object file linked to.






Relevant Pages

  • Doubts in shellcode !?
    ... I'm reading a tutorial about shellcode, ... That will execute the /bin/sh. ... And we must, compile it, and open gdb and get the hex value with ... x/xb main+3 ...
    (comp.security.unix)
  • Re: Problem exploiting a CGI overflow
    ... Second, I wrote a shellcode without 0x0b,0x0c, but it didnt work because ... int main(int argc, char *argv) { ... $ ./post.cgi < buffer ... gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, ...
    (Vuln-Dev)
  • Re: shellcode -> asm?
    ... shell code is in a the char array "shellcode". ... GNU gdb 2002-08-18-cvs ... For most of the attacks I have, ...
    (Vuln-Dev)
  • Re: Problem exploiting a CGI overflow
    ... looking at the gdb output- it looks like you are on the right ... There is a problem with the shellcode, ... >> char txt; ... >> Violación de segmento (core dumped) ...
    (Vuln-Dev)
  • Re: Problem exploiting a CGI overflow
    ... > Second, I wrote a shellcode without 0x0b,0x0c, but it didnt work because ... > int main(int argc, char *argv) { ... > char *buff, *ptr; ... > gdb: Symbol `emacs_ctlx_keymap' has different size in shared object, ...
    (Vuln-Dev)

Quantcast