LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-27-2005, 12:14 AM   #1
djidji
LQ Newbie
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Arch
Posts: 27

Rep: Reputation: 15
executing shell code from stack


i guess because of ExecShield that has patched the kernel i cannot execute some shell code from stack. is there any way to disable this?
 
Old 02-28-2005, 07:10 AM   #2
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
As root type

echo "0" > /proc/sys/kernel/exec-shield
&
echo "0" > /proc/sys/kernel/exec-shield-randomize
 
Old 02-28-2005, 07:01 PM   #3
djidji
LQ Newbie
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Arch
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:

echo "0" > /proc/sys/kernel/exec-shield
&
echo "0" > /proc/sys/kernel/exec-shield-randomize
does not work... i still get Segmentation error. what works is:
Code:
setarch i686 <command>
but i don't get the output that i expected - that is i get no output at all of the assembler programm. comments?
 
Old 03-07-2005, 05:19 AM   #4
skunkburner
Member
 
Registered: Mar 2004
Distribution: Fedora Core 17 & 18, Debian Wheezy
Posts: 137

Rep: Reputation: 16
Err OK.

The setarch command just reports a different architecture it has nothing to do with exec-shield and shellcode.

Would I be right in guessing you are trying to buffer overflow an executeable with the SuID bit set?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to locate source code for TCP/IP stack in Red Hat 9.0 pjz Linux - Software 1 06-13-2005 01:41 PM
TCP/IP stack source code tarazan Linux - Networking 3 05-11-2005 02:56 PM
Problem in executing code in gcc gcc_learner Programming 3 03-26-2005 03:28 AM
Dbx stack dump for a C/Proc Code. Help! nathan75 Programming 0 10-13-2004 08:48 AM
Problem executing. This is not a due to code error :( estranged Linux - Software 2 09-06-2003 11:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration