Earlier quoted context omitted.
Echo the LD_PRELOAD environment variable first and check for anything suspect.
the twist: echo is also hijacked...
Linux terminal keylogger in userspace
11–20 of 36 posts
Re: Linux terminal keylogger in userspace
#12People don't seem to think twice about failing a password auth.
Re: Linux terminal keylogger in userspace
#13Earlier quoted context omitted.
Speaking from personal experience, some of your incoming connections may not have been people abusing your keylogger. Personally, the first thing I do when I play around with any source code is compile, run, and test it.
There were lots of notices. You couldn't have missed it.
Re: Linux terminal keylogger in userspace
#14Earlier quoted context omitted.
There were lots of notices. You couldn't have missed it.
My gennerally approach is: 1) Download source 2) Uncompress file 3) ./configure 4) make 5) ./[name of binary] 6) Read documentation/source_code/other_stuff
Anyway, enough of this discussion. Let's talk about the actual keylogger -- Comments? Questions? Suggestions?
Re: Linux terminal keylogger in userspace
#15Re: Linux terminal keylogger in userspace
#16Is there a way to send a secure attention command to su/sudo to protect against this?
Re: Linux terminal keylogger in userspace
#17Re: Linux terminal keylogger in userspace
#18So when would you want to use LD_PRELOAD?
Re: Linux terminal keylogger in userspace
#19Is there a way to send a secure attention command to su/sudo to protect against this?
Re: Linux terminal keylogger in userspace
#20All of our deployment scripts at work use SSH to accomplish their tasks. All of the tasks are prepended with "LD_PRELOAD=", and I've always wondered why but never bothered to look it up. So when would you want to use LD_PRELOAD?
The classic LD_PRELOAD trick is to replace malloc and free with your own functions that contain some kind of instrumentation for debugging/profiling purposes.
Tinkering with LD_PRELOAD (and LD_LIBRARY_PATH) may have unintended consequences, so it's not a good idea to use them in your environment permanently.