All of lore.kernel.org
 help / color / mirror / Atom feed
* shellcode
@ 2002-06-24  5:18 xlp
  2002-06-24  6:01 ` shellcode Scott Lanning
  2002-06-25 19:22 ` shellcode Stephan Walter
  0 siblings, 2 replies; 6+ messages in thread
From: xlp @ 2002-06-24  5:18 UTC (permalink / raw)
  To: linux-assembly

hi, i am reading a doc about buffer overflow, and i have some questions, check
+this c code:
char bsdshell[] = "\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f"
                  "\x62\x69\x6e\x89\xe3\x50\x53\x50\x54\x53"
                  "\xb0\x3b\x50\xcd\x80";
int main() {
        void (*s)()=(void *)bsdshell;
        s();
}
If i run it, it executes a shell. I'd like to know in what does bsdshell
+contain?, What is it? hexadacimal? how can i get that?, acording to the doc,
+it's the execve for /bin/sh.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-06-26 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-24  5:18 shellcode xlp
2002-06-24  6:01 ` shellcode Scott Lanning
2002-06-25 19:22 ` shellcode Stephan Walter
     [not found]   ` <20020625144651.A430@nietzsche>
2002-06-25 20:28     ` shellcode Stephan Walter
     [not found]       ` <20020625161401.B27404@nietzsche>
2002-06-26 17:08         ` shellcode Stephan Walter
2002-06-26 18:00           ` shellcode Brian Raiter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.