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

如何在CentOS 5.5上安裝Kippo蜜罐

原創(chuàng)
安全 數(shù)據(jù)安全
Kippo是一個可交互的SSH蜜罐,旨在記錄暴力攻擊行為,最重要的是可以記錄攻擊者的shell交互行為,如果你需要了解有關(guān)Kippo更多信息,請?jiān)L問它的官方網(wǎng)站http://code.google.com/p/kippo/,本教程只教你如何在CentOS 5.5服務(wù)器上編譯和安裝Kippo,但我不保證你照做也能成功。

【51CTO.com 獨(dú)家譯稿】Kippo是一個可交互的SSH蜜罐,旨在記錄暴力攻擊行為,最重要的是可以記錄攻擊者的shell交互行為,如果你需要了解有關(guān)Kippo更多信息,請?jiān)L問它的官方網(wǎng)站http://code.google.com/p/kippo/,本教程只教你如何在CentOS 5.5服務(wù)器上編譯和安裝Kippo,但我不保證你照做也能成功。

安裝Python 2.6

你可能已經(jīng)知道,CentOS自帶的是Python 2.4,因此你需要安裝Python 2.6,具體的安裝教程請?jiān)L問下面這個鏈接:

http://www.geekymedia.com/tech-articles/rhel5-centos5-rpms-for-python-2-5-and-2-6/.

重要提示:

1)安裝你需要的RPM包,包括Python基礎(chǔ)包和libs包。

2)在命令行輸入python26啟動Python 2.6,注意不是輸入python(系統(tǒng)自帶的Python 2.4仍然保留在系統(tǒng)中)。

3)如果你使用setuptolls安裝軟件包,確保使用正確的python版本(如python26 setup.py安裝)

Twisted,Zope和Pycrypto安裝

Twisted是一個事件驅(qū)動的網(wǎng)絡(luò)引擎,使用Python編寫,基于MIT許可協(xié)議發(fā)布,Twisted項(xiàng)目支持TCP,UDP,SSL/TLS,多播,Unix套接字和其它許多協(xié)議(包括HTTP,NNTP,IMAP,SSH,IRC和FTP等)。

  1. cd /tmp  
  2. wget http://twistedmatrix.com/Releases/Twisted/10.2/Twisted-10.2.0.tar.bz2  
  3. tar -xvf Twisted-10.2.0.tar.bz2  
  4. cd Twisted-10.2.0 
  5. python26 setup.py build  
  6. python26 setup.py install 

Zope是一個開源的Web應(yīng)用程序服務(wù)器,主要用Python寫成。

  1. cd /tmp  
  2. wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz  
  3. tar -xvf zope.interface-3.3.0.tar.gz  
  4. cd zope.interface-3.3.0 
  5. python26 setup.py build  
  6. python26 setup.py install  

Pycrypto是一套使用Python實(shí)現(xiàn)的加密算法和協(xié)議集合。

  1. cd /tmp  
  2. wget wget http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz  
  3. tar -xvf pycrypto-2.0.1.tar.gz  
  4. cd pycrypto-2.0.1 
  5. python26 setup.py build  
  6. python26 setup.py install  

ASN.1類型和編碼(BER,CER,DER)也是使用Python編程語言實(shí)現(xiàn)的。

  1. cd /tmp  
  2. wget http://sourceforge.net/projects/pyasn1/files/pyasn1-devel/0.0.12a/pyasn1-0.0.12a.tar.gz/download  
  3. tar -xvf pyasn1-0.0.12a.tar.gz  
  4. cd pyasn1-0.0.12a 
  5. python26 setup.py build  
  6. python26 setup.py install 

創(chuàng)建用戶

Kippo不能以root用戶運(yùn)行,因此我們必須創(chuàng)建一個正規(guī)的用戶。

useradd kippouser

你需要從http://kippo.googlecode.com下載最新的Kippo源代碼包。

#p#

  1. su - kippouser   
  2. wget http://kippo.googlecode.com/files/kippo-0.5.tar.gz  
  3. tar -xvf kippo-0.5.tar.gz  
  4. cd kippo-0.5 

配置Kippo

  1. vi kippo.cfg  
  2. #  
  3. # Kippo configuration file (kippo.cfg)  
  4. #  
  5. [honeypot]  
  6. # IP addresses to listen for incoming SSH connections.  
  7. #  
  8. # (default: 0.0.0.0) = any address  
  9. #ssh_addr = 0.0.0.0  
  10. # Port to listen for incoming SSH connections.  
  11. #  
  12. # (default: 2222)  
  13. ssh_port = 2222 
  14. # Hostname for the honeypot. Displayed by the shell prompt of the virtual  
  15. # environment.  
  16. #  
  17. # (default: sales)  
  18. hostname = sales  
  19. # Directory where to save log files in.  
  20. #  
  21. # (default: log)  
  22. log_path = log  
  23. # Directory where to save downloaded (malware) files in.  
  24. #  
  25. # (default: dl)  
  26. download_path = dl  
  27. # Directory where virtual file contents are kept in.  
  28. #  
  29. # This is only used by commands like 'cat' to display the contents of files.  
  30. # Adding files here is not enough for them to appear in the honeypot - the  
  31. # actual virtual filesystem is kept in filesystem_file (see below)  
  32. #  
  33. # (default: honeyfs)  
  34. contents_path = honeyfs  
  35. # File in the python pickle format containing the virtual filesystem.   
  36. #  
  37. # This includes the filenames, paths, permissions for the whole filesystem,  
  38. # but not the file contents. This is created by the createfs.py utility from  
  39. # a real template linux installation.  
  40. #  
  41. # (default: fs.pickle)  
  42. filesystem_file = fs.pickle  
  43. # Directory for miscellaneous data files, such as the password database.  
  44. #  
  45. # (default: data_path)  
  46. data_path = data  
  47. # Directory for creating simple commands that only output text.  
  48. #  
  49. # The command must be placed under this directory with the proper path, such  
  50. # as:  
  51. #   txtcmds/usr/bin/vi  
  52. # The contents of the file will be the output of the command when run inside  
  53. # the honeypot.  
  54. #  
  55. # In addition to this, the file must exist in the virtual  
  56. # filesystem {filesystem_file}  
  57. #  
  58. # (default: txtcmds)  
  59. txtcmds_path = txtcmds  
  60. # Public and private SSH key files. If these don't exist, they are created  
  61. # automatically.  
  62. #  
  63. # (defaults: public.key and private.key)  
  64. public_key = public.key  
  65. private_key = private.key  
  66. # Initial root password. Future passwords will be stored in  
  67. # {data_path}/pass.db  
  68. #  
  69. # (default: 123456)  
  70. password = 123456 
  71. # IP address to bind to when opening outgoing connections. Used exclusively by  
  72. # the wget command.  
  73. #  
  74. # (default: not specified)  
  75. #out_addr = 0.0.0.0  
  76. # Sensor name use to identify this honeypot instance. Used by the database  
  77. # logging modules such as mysql.  
  78. #  
  79. # If not specified, the logging modules will instead use the IP address of the  
  80. # connection as the sensor name.  
  81. #  
  82. # (default: not specified)  
  83. #sensor_name=myhostname  
  84. # Fake address displayed as the address of the incoming connection.  
  85. # This doesn't affect logging, and is only used by honeypot commands such as  
  86. # 'w' and 'last'  
  87. #  
  88. # If not specified, the actual IP address is displayed instead (default  
  89. # behaviour).  
  90. #  
  91. # (default: not specified)  
  92. #fake_addr = 192.168.66.254  
  93. # MySQL logging module  
  94. #  
  95. # Database structure for this module is supplied in doc/sql/mysql.sql  
  96. #  
  97. # To enable this module, remove the comments below, including the  
  98. # [database_mysql] line.  
  99. #[database_mysql]  
  100. #host = localhost  
  101. #database = kippo  
  102. #username = kippo  
  103. #password = secret 

#p#

啟動Kippo

  1. ./start.sh 

日志文件

默認(rèn)情況下,kippo的輸出將會被重定向到日志文件log/kippo.log,使用下面的命令查看Kippo的日志:

  1. tail -f log/kippo.log 

提示:如何訪問Kippo

默認(rèn)情況下,Kippo運(yùn)行在2222端口上,如果運(yùn)行在Windows上,端口22通常是空閑的,可以將Kippo運(yùn)行在這個端口上,在Linux上,端口22有所限制,只能由root使用,但可以使用下面的命令進(jìn)行端口映射:

  1. iptables -t nat -A PREROUTING -i IN_IFACE -p tcp --dport 22 -j REDIRECT --to-port 2222 

使用你真實(shí)的接口名如eth0替換這里的IN_IFACE。

測試

使用root用戶連接到Kippo服務(wù)器的2222端口:

  1. ssh 127.0.0.1 -p 2222 -l root 

如果成功登錄,你一定會看到下面的banner:

  1. sales:~# 

原文出處:http://www.howtoforge.com/how-to-set-up-kippo-ssh-honeypot-on-centos-5.5

原文名:How To Set Up Kippo SSH Honeypot On CentOS 5.5

【51CTO.com獨(dú)家譯稿,非經(jīng)授權(quán)謝絕轉(zhuǎn)載!合作媒體轉(zhuǎn)載請注明原文出處及出處!】

【編輯推薦】

  1. Honeyd:您私人的蜜罐系統(tǒng)
  2. 蜜罐技術(shù):如何跟蹤攻擊者的活動?
  3. 黑客開始利用蜜罐系統(tǒng)誘捕安全研究人員?
  4. 蜜罐服務(wù)器成黑客DoS元兇 安全公司很受傷
責(zé)任編輯:佟健 來源: 51CTO.com
相關(guān)推薦

2014-12-01 11:27:54

CentOS 7Docker

2017-08-15 11:58:15

LinuxCentOSApache Hado

2017-05-03 14:00:00

LinuxCentOSElastic Sta

2010-11-19 09:30:29

2020-03-02 14:06:54

CentOS 8FFmpegLinux

2013-12-04 14:45:22

2013-04-07 15:14:41

2015-09-10 11:38:37

iTOPCentOS開源

2017-04-11 13:20:06

CentOSRHELFedora

2015-12-11 13:16:10

CentOS 7Redis服務(wù)器

2015-12-21 13:19:23

CentosRHEL 6.XWetty

2015-12-29 13:59:53

Ubuntu 15.0CentOS 7Android Stu

2019-12-02 11:50:09

CentOS 8VirtualBoxLinux

2017-04-24 18:10:27

DrupalCentOSFedora

2011-09-09 16:22:21

centosHandlerSock

2016-01-06 13:04:13

CentOS 7Ubuntu 15.0Laravel

2017-03-21 15:51:57

LinuxCentOS 7MariaDB 10

2016-09-21 08:54:33

2019-07-30 10:33:01

2019-10-12 10:24:06

CentOSRHELCockpit
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號

主站蜘蛛池模板: 9999在线视频 | 久久国产精品久久 | 精品av | 综合久久av | 成人福利在线视频 | 黄色大全免费看 | 韩国av电影网 | 亚洲成人一区二区 | 成人免费在线观看 | 久久久高清 | 精品一区二区视频 | 久夜精品| 欧美区在线 | 成人影院av | 俺去俺来也www色官网cms | 欧美一区二区三区在线 | 国产一区二区三区久久久久久久久 | 亚洲欧美男人天堂 | 亚洲九色 | 在线观看免费毛片 | 亚洲国产精品视频一区 | 成人看片在线观看 | 日韩欧美亚洲 | 午夜影院网站 | 99亚洲精品 | 久久一二区 | 国产一区二区三区亚洲 | 一区二区三区四区不卡视频 | 999久久久久久久久 国产欧美在线观看 | 日韩成人久久 | a在线视频| 国内久久 | 国产视频1区2区 | 国产一区不卡 | 亚洲视频中文字幕 | 一区二区三区精品 | 狠狠操网站 | 久久久久久久久国产成人免费 | 91大神在线看| 国产精品亚洲成在人线 | 国产99热精品 |