Testing the Network Alert System 2.0 [ Log In | Register ]       

r00tsecurity: Problem With Shellcode In Debian - r00tsecurity

Jump to content

Carders Placecredit cards & transfers
carders-place.com
Ferbourtoi.orgWhere We Provide...
ferbourtoi.org
DirtymusicDirtymusic
dirtymusic.co.uk
StoleThe.NetFree Rapidshare Downloads
stolethe.net
ZaraByteHack like the PROS
ZaraByte.com
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
Ads by r00tsecurity.org

FORUM RULES

This is a discussion forum. Questions, Serious Articles/Guides & Discussion Based Topics Only

RELATED NETWORK CONTENT => Source Code Database || Article/Tutorial Database || Cheat Sheets Database
Page 1 of 1

Problem With Shellcode In Debian

#1 User is offline   GoneGirl Icon

  • Level 13 Member
  • Group: Dedicated
  • Posts: 2,199
  • Joined: 17-January 08

Posted 06 October 2008 - 01:59 AM

Hi all of guys , i am using Debian 4.0 and when i compile and execute

char shellcode[] =
"\xeb\x1a\x5e\x31\xc0\x88\x46\x07\x8d\x1e\x89\x5e\x08\x89\x46"
"\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\xe8\xe1"
"\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68\x4a\x41\x41\x41\x41"
"\x4b\x4b\x4b\x4b";

int main()
{

int *ret;
ret = (int *)&ret + 2;
(*ret) = (int)shellcode;
}


nothing happens. :/
0

#2 User is offline   (elchupathingy) Icon

  • Website Dev / Forum Mod



  • Group: (r00t staff)
  • Posts: 571
  • Joined: 27-August 08
  • LocationnoitacoL

Posted 07 October 2008 - 11:03 PM

needs a function pointer

typedef int (*tShell)();

tShell mShell = (tShell) shellcode;

int i = mShell();

0

ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
Ads by r00tsecurity.org

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Image SpotImage Hosting
imgspot.org
XtremeLiDirect Downloads
xtremeli.com
CysForum.comPowered By Warez
CysForum.com
Warez LegendWarez Forum
warez-legend.com
Warez GalaxyWarez Site
warezgalaxy.org
Wrz-XWarez Forum
wrz-x.net
ADVERTISE HEREAdvertise here for cheap...
www.r00tsecurity.org
Ads by r00tsecurity.org