導航:首頁 > 配伺服器 > 中維世紀雲視通伺服器被黑

中維世紀雲視通伺服器被黑

發布時間:2023-07-21 03:54:30

㈠ 如何檢查linux伺服器是不是被黑了

linux系統的伺服器被入侵,總結了以下的基本方法,供不大懂linux伺服器網理人員參考考學習。
首先先用iptraf查下,如果沒裝的運行yum install iptraf裝下,看裡面是不是UDP包發的很多,如果是,基本都被人裝了後門
1. 檢查帳戶
# less /etc/passwd
# grep :0: /etc/passwd(檢查是否產生了新用戶,和UID、GID是0的用戶)
# ls -l /etc/passwd(查看文件修改日期)
# awk -F: 『$3= =0 {print $1}』 /etc/passwd(查看是否存在特權用戶)
# awk -F: 『length($2)= =0 {print $1}』 /etc/shadow(查看是否存在空口令帳戶)

2. 檢查日誌
# last(查看正常情況下登錄到本機的所有用戶的歷史記錄)
注意」entered promiscuous mode」
注意錯誤信息
注 意Remote Procere Call (rpc) programs with a log entry that includes a large number (> 20) strange characters(-^PM-^PM-^PM-^PM-^PM-^PM-^PM-^PM)

3. 檢查進程
# ps -aux(注意UID是0的)
# lsof -p pid(察看該進程所打開埠和文件)
# cat /etc/inetd.conf | grep -v 「^#」(檢查守護進程)
檢查隱藏進程
# ps -ef|awk 『{print }』|sort -n|uniq >1
# ls /porc |sort -n|uniq >2
# diff 1 2

4. 檢查文件
# find / -uid 0 –perm -4000 –print
# find / -size +10000k –print
# find / -name 「…」 –print
# find / -name 「.. 」 –print
# find / -name 「. 」 –print
# find / -name 」 」 –print
注意SUID文件,可疑大於10M和空格文件
# find / -name core -exec ls -l {} ;(檢查系統中的core文件)
檢查系統文件完整性
# rpm –qf /bin/ls
# rpm -qf /bin/login
# md5sum –b 文件名
# md5sum –t 文件名

5. 檢查RPM
# rpm –Va
輸出格式:
S – File size differs
M – Mode differs (permissions)
5 – MD5 sum differs
D – Device number mismatch
L – readLink path mismatch
U – user ownership differs
G – group ownership differs
T – modification time differs
注意相關的 /sbin, /bin, /usr/sbin, and /usr/bin

6. 檢查網路
# ip link | grep PROMISC(正常網卡不該在promisc模式,可能存在sniffer)
# lsof –i
# netstat –nap(察看不正常打開的TCP/UDP埠)
# arp –a

7. 檢查計劃任務
注意root和UID是0的schele
# crontab –u root –l
# cat /etc/crontab
# ls /etc/cron.*

8. 檢查後門
# cat /etc/crontab
# ls /var/spool/cron/
# cat /etc/rc.d/rc.local
# ls /etc/rc.d
# ls /etc/rc3.d
# find / -type f -perm 4000

9. 檢查內核模塊
# lsmod

10. 檢查系統服務
# chkconfig
# rpcinfo -p(查看RPC服務)

11. 檢查rootkit
# rkhunter -c
# chkrootkit -q

閱讀全文

與中維世紀雲視通伺服器被黑相關的資料

熱點內容
怎麼能成為優秀程序員 瀏覽:245
智行app怎麼查學生認證 瀏覽:556
萬心pdf 瀏覽:92
哪個app能看3d電影 瀏覽:270
劍網三伺服器是怎麼運營 瀏覽:690
快手app快遞在哪裡查 瀏覽:474
開發聊天機器人python 瀏覽:856
程序員入職後無法工作 瀏覽:953
買海鮮用什麼app好 瀏覽:923
看劇用什麼app好 瀏覽:906
sql命令update 瀏覽:26
生意不忙怎麼解壓 瀏覽:501
歡太健康app在哪裡下載 瀏覽:489
androidtools使用教程 瀏覽:972
十天突破雅思口語pdf劍9 瀏覽:296
李誕笑場pdf 瀏覽:266
自用紙巾做解壓筆 瀏覽:130
銀行流水解壓碼是多少 瀏覽:896
百度哪個app好用 瀏覽:317
115廣告聯盟源碼 瀏覽:496