Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-19, 16:26:19

Author Topic: How to find exaxt shell location  (Read 11376 times)

0 Members and 1 Guest are viewing this topic.

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
How to find exaxt shell location
« on: 2016-05-23, 11:37:41 »
Someone has added shell in my server. Thatswhy he is adding many php files in my all sites... is there anyway to find exact shell file or that shell php. Any command or any way to check that shell location???

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #1 on: 2016-05-23, 11:44:28 »
How to make sure 'Someone has added shell in my server'.

Info here 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #2 on: 2016-05-23, 11:58:43 »
A. Kloxo-MR: 6.5.0.f-2016040502

B. OS: CentOS release 6.7 (Final) x86_64

C. Apps:
   1. MySQL: mysql55-5.5.48-1.ius.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: --uninstalled--
   6. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
   7. Dns: bind-9.9.7-1.mr.el6.x86_64

D. Php-type (for Httpd/proxy): php-fpm_worker

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:         15944      15162        781          1        402      11285
   -/+ buffers/cache:       3474      12469
   Swap:            0          0          0

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #3 on: 2016-05-23, 12:06:06 »
Update '/etc/httpd/conf/httpd.conf' where change from 'LoadModule cgi_module modules/mod_cgi.so' to '#LoadModule cgi_module modules/mod_cgi.so' and then restart webserver.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #4 on: 2016-05-23, 12:33:13 »
Permissions denied

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #5 on: 2016-05-23, 14:06:09 »
This is text file. Need edit with vi or nano.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #6 on: 2016-05-23, 16:54:57 »
ok... how to protect server from future addition of shell by hackers... is there any command to run for that???
« Last Edit: 2016-05-23, 17:04:32 by zong11 »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #7 on: 2016-05-23, 17:07:16 »
Update your Kloxo-MR.

No access using 'shell' from outside.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #8 on: 2016-05-25, 16:38:13 »
I want to remove pending mails from qmail... i am running this '/usr/local/lxlabs/kloxo/bin/misc/qmHandle -D' command but it replies permissions denied.  I have already run 'sh /script/fix-chownchmod'

So please tell me commands to remove that pending mails?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #9 on: 2016-05-25, 17:35:26 »
Use 'perl /usr/local/lxlabs/kloxo/bin/misc/qmHandle -D' or 'sh /script/mailqueue -D'. It's the same.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #10 on: 2016-05-26, 08:38:31 »
Someone adding PHP in my WordPress sites like start.php; general.php and many more. So above var command will solve this or required to run any other command.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #11 on: 2016-05-26, 09:09:00 »
Someone adding PHP in my WordPress sites like start.php; general.php and many more. So above var command will solve this or required to run any other command.
So, your wordpress (main, themes and or plugins) may have hacked code.

Usually I am using wordfence for prevent/warning in wordpress.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #12 on: 2016-05-26, 10:34:00 »
Even wordfense also can't prevent this file addition. Also due to wordfense in 24hrs 1hr my disc i/o going above 98%. So please help me in this regard.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: How to find exaxt shell location
« Reply #13 on: 2016-05-26, 11:25:26 »
No trouble with wordfence if change 'Update interval in seconds (2 is default)' from '2' to '10' or more.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zong11

  • Junior Member
  • *
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Re: How to find exaxt shell location
« Reply #14 on: 2016-05-26, 12:28:25 »
Where is that update interval setting in kloxo ? I didn't found that.

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.057 seconds with 19 queries.

web stats analysis