LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2013, 09:09 PM   #1
Needsashave
LQ Newbie
 
Registered: Apr 2013
Posts: 6

Rep: Reputation: Disabled
Question Foreign Bash exec will not run from launcher as exe


Hi,
I statically compiled bash using statifier on a trusted system for use on a system with a rootkit. I called it tbash

I'm trying to run the bash exe on the TRUSTED machine from a launcher. If I can get it to work I'll put it on the broken box to avoid opening an untrusted bash.

Kernels are the same on both boxes.

Invoking the name of the exe in the launcher command box will not start a shell. It's driving me mad. Why? (not the madness, I know that bit).

I've tried;
./tbash
./tbash -i
./tbash -l (getting desperate)
./tbash 2&>1

EDIT: I've now discovered that running the original /bin/bsah executable doesn't work on the trusted machine. This begs the question;
What file is run to get a shell?

EDIT2: Got it: gnome-terminal.

I'll statify that instead.

Using Breezy Badger - Ubuntu 5.xxxxx (yes I know it's old).

Last edited by Needsashave; 04-20-2013 at 12:08 AM. Reason: Got it.
 
Old 04-20-2013, 04:55 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by Needsashave View Post
I statically compiled bash (..) for use on a system with a rootkit. (..) If I can get it to work I'll put it on the broken box to avoid opening an untrusted bash.
Please don't do that. If a machine has a rootkit then you should investigate properly and not add or replace anything. Do use a Live CD or equivalent and if it's not a local machine then maybe post some details about it and how you determined it has a rootkit.
 
  


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
I created a launcher for a bash(sh) script but it won't run p3aul Ubuntu 14 06-16-2012 04:06 AM
Where are BASH commands stored? Not scripts but what bash exe uses. theKbStockpiler Programming 11 02-23-2011 03:06 PM
chroot: cannot run command `/bin/bash': Exec format error snakeo2 Linux - Newbie 6 09-28-2010 03:41 AM
exec command in Launcher? annehoog Linux - Newbie 4 11-23-2006 11:08 AM
SETUP.EXE/autorun.exe don't run in wine mst3kman Linux - Games 3 01-22-2006 02:20 PM


All times are GMT -5. The time now is 09:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration