Linux Simple attack and defense

Source: Internet
Author: User
Tags file diff

First, Linux security introduction


1, the impression of Linux security


2, whether have encountered the invasion, what are the phenomena, how to solve the


3, the process of hacking, how to defend


Ii. Linux attack and defense


1, common Trojan control terminal function (10771TCP, 10991UDP, integrated Control terminal 6886) (Control side)


2. Trojan client type (Trojan) generator


3, the transmission of the horse invasion process

Way

3.1. Default port 22 Weak password blasting

3.2, 21 port, 3306 port, weak password blasting

3.3, Webshell for Shell bounce right

3.4, Trojan into the top of the server and execute, through the way of the Trojan to control your server, to do some illegal operation

Process

3.1, cut into/tmp directory

3.2, Wge download Trojan

3.3, Trojan Load permissions

3.4. Execution Trojan

3.5, back door, support wood Mar Woo


4, the symptoms after the invasion

Inexplicably CPU utilization is very high, intermittent


Third, how to clear the Trojan and back door


1. Clear the Trojan Horse

1.1, network connection, filter out the normal connection

Netstat-nalp | grep "TCP/UDP" | grep-v XXX |grep "established"

1.2, judge some abnormal connection, through the PID to find the process name, stop the process

Ps-ef | grep "3249"

Kill-9 Process Number

1.3. Find the source file by name, delete it

Find/-name "XXXX"

2, clear the backdoor (in the following file may appear the relevant command, find it, and delete)

2.1,/etc/rc.local

2.2,/crontab-l

2.3,/ROOT/.BASHRC ordinary users under the. BASHRC

2.4,/etc/profile Backup profile file diff Profile.bak whether there are different


This article is from the "Crystal" blog, so be sure to keep this source http://crystal3331.blog.51cto.com/2948719/1705485

Linux Simple attack and defense

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.