Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 04-06-2009, 10:50 PM   #1 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default how does a hacker run remote scripts on a linux machine?

is it possible for a hacker to run malicious scripts on a linux server even without knowing the root or user password of a linux system?
any file which is copied from a remote system doesnt have execute (x) privileges! in such a scenario how do scripts get run on the remote machine?

assume i v configured iptables n left SE Linux in permissive state.
__________________
mekalodu
iinfi is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 04-06-2009, 11:12 PM   #2 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,905
Default Re: how does a hacker run remote scripts on a linux machine?

I don't think that script can execute unless and until it has execute permission.

One way is that, you have a script which takes a file and executes it (just like system() of c), and hacker anyhow can let your program execute the script.
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline  
Old 06-06-2009, 12:26 AM   #3 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default Re: how does a hacker run remote scripts on a linux machine?

@ Garbage
thank you
__________________
mekalodu
iinfi is offline  
Old 07-06-2009, 10:27 PM   #4 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default Re: how does a hacker run remote scripts on a linux machine?

@holiety
so you ran malicious scripts on a linux server ... or the chick in the pic did it?
u chinese dog...
__________________
mekalodu
iinfi is offline  
Old 16-06-2009, 11:52 AM   #5 (permalink)
Wise Old Owl
 
hullap's Avatar
 
Join Date: Dec 2006
Location: delhi
Posts: 1,425
Default Re: how does a hacker run remote scripts on a linux machine?

hullap is offline  
Old 17-06-2009, 10:27 AM   #6 (permalink)
Right Off the Assembly Line
 
Join Date: Nov 2006
Posts: 48
Default Re: how does a hacker run remote scripts on a linux machine?

Hi,
It works in following manner.

1) remote hacker try to exploit any service running on your system
as the service normally run in privilege mode for example ping has the sticky bit on and run as root.
2) exploiting
for example in your code you have defined
char str[10];
so your string can take 10 characters including end of line NULL char at end;

but what will happen if you try to push 1000 character in this.
for experimenting you can try this.
sometime it will do coredump - segmentation fault
but after certain number of characters you will get error like unable to write
and further more you will see unable to read or read error.
although you are writing in the string but it will tale that unable to read, it is because your stack point is now corrupted.
if you do more experiment and find out that you have reached to corrupt program counter then your service will start executing it.
and here if you put your script code then it will execute.

but this scenario was in old system, now a days most of the system prevent code execution from the stack.

i hope this add a little value to your understanding.
lilovirus is offline  
Old 20-06-2009, 03:21 PM   #7 (permalink)
mekalodu
 
iinfi's Avatar
 
Join Date: Oct 2004
Location: Navi Mumbai
Posts: 1,495
Default Re: how does a hacker run remote scripts on a linux machine?

thanks a lot for your reply.....
i m not into coding. m working as a jr. linux admin and this is informative.
i was wondering apart from getting firewalls and OS patches rite is there any other way i can keep hackers at bay. i dont v too much exp in production env. though. i work in implementation.
__________________
mekalodu
iinfi is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 06:45 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2