LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-24-2017, 11:38 PM   #16
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,723

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211

Quote:
Originally Posted by krazybob View Post
Umm.. I'm not cross posting. I posted in Servers.
Not what I meant, my bad. Was only talking about how you and I and Turbocapitalist were all posting at the same time.
Quote:
Originally Posted by krazybob View Post
They uploaded javascript and symlinked sendmail to another MTA. I don't know how to reverse it.

Code:
lrwxrwxrwx 1 root root 21 Jan 10  2010 sendmail -> /etc/alternatives/mta
I think it's just
Code:
rm /path/to/symlink/sendmail
but I note:

Quote:
Originally Posted by krazybob View Post
Code:
lrwxrwxrwx 1 root root 21 Jan 10  2010 sendmail -> /etc/alternatives/mta
-bash-3.2 clss03 # cd /etc/alternatives/mta
-bash: cd: /etc/alternatives/mta: Not a directory
-bash-3.2 clss03 # cd /etc/alternatives/   
-bash-3.2 clss03 # ls -lah
total 8.0K
[snip]
lrwxrwxrwx  1 root root   23 Jan 12  2010 mta -> /var/qmail/bin/sendmail
[snip]
so it is using your MTA (qmail, right?) So you can stop sending out spam with
Code:
qmailctl stop
(!) [If you *firefighting]
Then, kill the /etc/init.d processes, rm the /etc/alternatives directory and files,
[stopping to see what you just posted...]
 
Old 05-24-2017, 11:50 PM   #17
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,293
Blog Entries: 3

Rep: Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718Reputation: 3718
Quote:
Originally Posted by krazybob View Post
Code:
        /usr/bin/adsosqsdxj
Physically removing the cable is the best option if possible. That program can have launched something else that you can't find easily or quickly.

If you are not able to physically remove the network cable, then I'd look for processes named "adsosqsdxj" and kill them. The script they put on your machine will not stop anything even if told to, so you'll have do it by hand. This would be one of the few instances where SIGKILL ( -9 ) is needed:

Code:
pgrep -lf adsosqsdxj
pkill -9 -x adsosqsdxj
 
  


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
LXer: Shell Scripting Part I: Getting started with bash scripting LXer Syndicated Linux News 0 04-29-2015 08:03 AM
Bash Scripting – Code Structure - Defining Multiple Points Of Entry In Bash Script carlr Programming 10 08-25-2014 02:38 AM
[To share Bash knowledge]Notes for Advanced Bash-Scripting Version 10 (Latest) jcky Programming 4 07-31-2014 09:24 AM
LXer: Bash If statements, Exit Status and Comparison Operators, A beginners guide to bash scripting LXer Syndicated Linux News 0 06-29-2014 07:35 PM
Reading a bash variable in bash scripting problem freeindy Programming 3 11-27-2008 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:36 AM.

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