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

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

發布時間: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

閱讀全文

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

熱點內容
php抓取動態網頁 瀏覽:184
c51單片機原 瀏覽:196
交行app在哪裡買東西 瀏覽:39
python高手之路pdf 瀏覽:84
iphone怎麼像安卓一樣返回 瀏覽:162
linuxtomcat埠佔用怎麼辦 瀏覽:722
表演pdf 瀏覽:923
微信如何更換伺服器 瀏覽:861
android使用html5 瀏覽:460
python可視化極坐標 瀏覽:386
程序員喜歡綠色 瀏覽:732
php編譯的主流軟體 瀏覽:366
操作系統伺服器版本下載地址 瀏覽:247
手機管家加密圖片打不開 瀏覽:841
基於單片機的智能散熱器控制器的設計 瀏覽:473
pdfadobereaderxi 瀏覽:490
本田雅閣壓縮機工作 瀏覽:683
河北編程排行榜 瀏覽:136
胸椎12輕度壓縮性骨折 瀏覽:106
演算法英文pdf 瀏覽:360