16 å, 2006
Make key useing Openssl
1 å, 2006
PGP Public key for Adrian
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
mQGiBEVHDPoRBADcwjeeIwKKgsI3A7+4UKO8lLrQywbZIrwh0j94LgrA7awA+/s4
I0MkN03s7MQuCPRWMkuYflWkOK+ZaTnbggNSSfjeFwxgfaXzxXOpMAAzdTurAQjH
+tKn4py/z1/JmEyErV/gllrEKP6/Up/LwnZjIzqQLTL9RJrXdoN02c0e7wCg/5bH
aKy0gNxPy1w46M6RSW3ChecEALhjMygnUMWC+HoJAXtfPdSli0WsiK6zW57hFQwe
u6qbPei8mpSnUt+/m90fAuTFvWhGAIP6QRjuDLVzaMZTm5gi7HxsMfPfJX2QMIEl
DjRQt4aaXiwJ/89TODhex/7ehNmOXjSLqHpsR41kXy2bykfFkE4XwRxRYVrhzGgE
WoVtBADMWZTqmsoS1L46QdnI8U/Qhl2kFXobFCkld1I783G1k4/VxriTY/CyGBOJ
7g1I5znlN/+fxbJzDslk0aWx3W79VFWcjn6OdO4690VRRubOtVz9OZwc2WebLX6/
8JaaO1bl98Di5bFexw6j/zCXHiYOBdEr/DUaGIBWREwdoVwpM7QrT3V5YW5nLldl
bmZlbmcgPE91eWFuZ1dlbmZlbmdAa2luZ3NvZnQuY29tPokATgQQEQIADgUCRUcM
+gQLAQMCAhkBAAoJEJVsqqR1iM6xYvIAnA0mbgDghaOlj4pObNp7GWp5pLT5AJ0b
8ux4b1QlAn6pWDXOdUYYfVbkErkCDQRFRw0DEAgA7xYDX2v/9f7X893COnHlc178
h7Z1+sK8oG8m9QtUQe0O+AFq+4ThIRrjPExjSzllWFUMQgPuGTD7FVq+kTWOLtd2
O0tjBzI61LsCIu3dny2xRVmFRWsRJxsLztT4JWXlhi/kaZncyZdrlbW4HorVo8JR
BSniXOU4pVV725aLhApGtTEd0xbES8J7VRjnXn+ZPg+8lvyrUSvjho658or+RAAi
V4ywAwgcZaayI/0aVb7G6Gi/Ee9H35aGD9x7rQn2hx3ojQsyTAt7JN8vFeSjHAP0
P0DFjEaQ/sNZYQ1RCx6Y6LBRsVdO/794sKgw3X7EqZbMQgVe/i9NWi6Gvpu3PQAC
Agf+KfbjUsL+WdsXGbxw+krJUVuh7m3fga8PUNrv1IwqIn+VNTJ3kXQUjdPgHj5X
iD0bWMWqZ+8LvQIoYxCoGAYPxHYUAQBHQANNc3e9MR3EB5XQP85XWgFk3b4QX0L+
XPZDBwBJwULZAPX7wTYJrRw4OvSe5fQ0Abzk8ZMXqm912J5g6NEvWGKvxQojTWVT
Uj/zHSE8DTG7lVmD2TNg1yOVHt+KgSTDXnC+S9GZ+4yW6I7d2hqSpVK2DZDKvJL6
zpc4ejiveQfK6QzMHxBy56zf3rPKxu9vYo29yoEKL2ivLIGiMhGN60RlVCjbqkZw
GrWU4DqLNRCSC/JefTo2cU+MFYkARgQYEQIABgUCRUcNAwAKCRCVbKqkdYjOsfMh
AJ9DGZHYPInD53aLYRZrJH+c9Dw45wCaAngLILOpLFgQTlDFQmFwUCuD5Xs=
=MmBY
-----END PGP PUBLIC KEY BLOCK-----
5 ä¹, 2006
网络安全å¨èƒå’Œå®‰å…¨æœåŠ¡
所谓安全å¨èƒæ˜¯æŒ‡æŸä¸ªäººã€ç‰©ã€äº‹ä»¶æˆ–概念对æŸä¸€èµ„æºçš„æœºå¯†æ€§ã€å®Œæ•´æ€§ã€å¯ç”¨æ€§æˆ–åˆæ³•ä½¿ç”¨æ‰€é€ æˆçš„å±å®³ã€‚从计算机信æ¯ç³»ç»Ÿçš„角度æ¥è®²ï¼Œä¸»è¦é¢ä¸´å¦‚下4个基本的安全å¨èƒã€‚
(1) ä¿¡æ¯æ³„露: ä¿¡æ¯è¢«æ³„露或é€éœ²ç»™æŸä¸ªæœªæŽˆæƒçš„实体。
(2) å®Œæ•´æ€§ç ´å: æ•°æ®çš„一致性通过未授æƒçš„创建ã€ä¿®æ”¹æˆ–ç ´å而å—到æŸå。
(3) æ‹’ç»æœåŠ¡: å¯¹ä¿¡æ¯æˆ–其他资æºçš„åˆæ³•è®¿é—®è¢«æ— æ¡ä»¶çš„阻æ¢ã€‚
(4) éžæ³•使用: æŸä¸€èµ„æºè¢«æŸä¸ªæœªæŽˆæƒçš„人或以æŸä¸€ç§æœªæŽˆæƒçš„æ–¹å¼ä½¿ç”¨ã€‚
网络系统的概念涵盖了与计算机系统互连相关的软硬件ç‰ä¸€åˆ‡è®¾æ–½ã€‚我们将所有通过网络系统实施的,或针对网络系统本身的安全å¨èƒç§°ä¸ºç½‘络安全å¨èƒã€‚网络安全å¨èƒåŒ…å«çš„èŒƒå›´å¾ˆå¹¿ï¼Œå› ä¸ºè®¸å¤šé’ˆå¯¹è®¡ç®—æœºç³»ç»Ÿå†…éƒ¨çš„å®‰å…¨å¨èƒä¹Ÿè¶Šæ¥è¶Šå¤šåœ°æ˜¯é€šè¿‡ç½‘络系统å‘起的,人们一说到安全å¨èƒï¼Œå¤§å¤šæŒ‡çš„就是网络安全å¨èƒã€‚网络安全å¨èƒå¯ä»¥ä»Žå¦‚下角度划分æˆ3大类。
◠针对数æ®ä¼ 输的å¨èƒ: 会导致基本å¨èƒ(1) å’Œ(2) ,例如数æ®ä¿¡æ¯çš„窃å¬ã€æ•°æ®ä¿¡æ¯çš„ç¯¡æ”¹ã€æ•°æ®ä¼ 输的抵赖ã€ä¸é—´äººæ”»å‡»ï¼Œç‰ç‰ã€‚
◠针对网络åè®®æ ˆæœ¬èº«è®¾è®¡æ¼æ´žçš„å¨èƒ: 会导致基本å¨èƒ(3) ï¼Œä¾‹å¦‚åœ°å€æ¬ºéª—攻击ã€Ping攻击ã€SYN攻击,ç‰ç‰ã€‚
◠以网络系统为通é“的计算机系统内部å¨èƒ: ä¸ç ´å网络系统,仅仅是借助网络系统æ¥å¯¹è®¡ç®—æœºå†…éƒ¨ç³»ç»Ÿè¿›è¡Œéžæ³•的数æ®èŽ·å–æˆ–修改,会导致基本å¨èƒ(1) ã€(2) å’Œ(4) ,例如æ—路控制ã€ç‰¹æ´›ä¼Šæœ¨é©¬ã€æŽˆæƒä¾µçŠ¯ï¼Œç‰ç‰ã€‚
é¢å¯¹å¦‚æ¤ä¼—多的网络安全å¨èƒï¼Œä»»ä½•ä¿¡æ¯ç³»ç»Ÿéƒ½éœ€è¦é‡‡å–å¿…è¦çš„安全防护措施,甚至应该包括必è¦çš„安全检测和å“应措施,我们把这些主è¦çš„网络安全措施称作网络安全æœåŠ¡ã€‚ä»¥ä¸‹æ˜¯å‡ ç§é€šç”¨çš„网络安全æœåŠ¡ã€‚
â— è®¤è¯æœåŠ¡: æä¾›æŸä¸ªå®žä½“的身份ä¿è¯ã€‚
◠访问控制æœåŠ¡: ä¿æŠ¤èµ„æºä»¥å…å¯¹å…¶è¿›è¡Œéžæ³•使用和æ“纵。
â— æ•°æ®æœºå¯†æ€§æœåŠ¡: ä¿æŠ¤ä¿¡æ¯ä¸è¢«æ³„露或暴露给未授æƒçš„实体。
â— æ•°æ®å®Œæ•´æ€§æœåŠ¡: ä¿æŠ¤æ•°æ®ä»¥é˜²æ¢æœªæŽˆæƒçš„æ”¹å˜ã€åˆ 除或替代。
â— éžå¦è®¤æœåŠ¡: 防æ¢å‚ä¸ŽæŸæ¬¡é€šä¿¡äº¤æ¢çš„一方事åŽå¦è®¤æœ¬æ¬¡äº¤æ¢æ›¾ç»å‘生过。
◠网络安全检测æœåŠ¡: 对系统的è¿è¡Œçжæ€è¿›è¡Œç›‘视,å‘现å„ç§æ”»å‡»ä¼å›¾ã€æ”»å‡»è¡Œä¸ºæˆ–者攻击结果。
◠审计æœåŠ¡: 对系统记录和过程的检查和审查,å助攻击的分æžï¼Œæ”¶é›†è¯æ®ä»¥ç”¨äºŽèµ·è¯‰æ”»å‡»è€…。
◠攻击监控和报è¦å“应æœåŠ¡: 对攻击事件的监视与控制,æä¾›å¯¹æ”»å‡»äº‹ä»¶çš„æŠ¥è¦ä¸Žå“应。
å„ç§å®‰å…¨æœåŠ¡æ˜¯æœ‰ä¸€å®šçš„é’ˆå¯¹æ€§çš„ï¼Œä¾‹å¦‚è®¤è¯æœåŠ¡ç”¨æ¥é˜²æ¢å‡å†’æ”»å‡»ï¼Œæ•°æ®æœºå¯†æ€§æœåŠ¡ç”¨æ¥é˜²æ¢æ•°æ®ä¿¡æ¯æ³„éœ²ã€‚åŒæ—¶å„ç§å®‰å…¨æœåС之间å˜åœ¨ç€ååŒå…³ç³»ï¼Œå•独一ç§å®‰å…¨æœåС并ä¸ä¸€å®šèƒ½å¤Ÿé˜²æ¢æŸäº›å®‰å…¨å¨èƒçš„å‘生,例如访问控制æœåŠ¡éœ€è¦è®¤è¯æœåŠ¡çš„é…åˆï¼Œæœ‰æ—¶ä¹Ÿéœ€è¦æ•°æ®æœºå¯†æ€§å’Œå®Œæ•´æ€§æœåŠ¡çš„æ”¯æŒã€‚在安全防护æœåŠ¡æœªèƒ½é˜»æ¢å¯¹ç³»ç»Ÿçš„å…¥ä¾µæ”»å‡»æ—¶ï¼Œè¿˜éœ€è¦æœ‰å®‰å…¨æ£€æµ‹ã€å®¡è®¡å’ŒæŠ¥è¦æœåŠ¡æ¥è¿›è¡ŒåŽç»å¤„ç†ã€‚å› æ¤å¯¹ç³»ç»Ÿæä¾›å…¨é¢å®‰å…¨ä¿æŠ¤ï¼Œé˜²æ¢å½¢å½¢è‰²è‰²ä¸”䏿–增长的安全å¨èƒçš„å‘生,是系统ä¸å¤šç§å®‰å…¨æœåŠ¡ç»¼åˆä½œç”¨çš„结果。
网络体系结构的分层特性使得安全æœåŠ¡çš„é…ç½®è¾ƒä¸ºå¤æ‚。å议分层导致了数æ®é¡¹åµŒåœ¨äº†æ•°æ®é¡¹ä¸ï¼Œè¿žæŽ¥ä¹‹ä¸æœ‰è¿žæŽ¥ï¼Œæ½œåœ¨åœ°å½¢æˆå¤šé‡åµŒå¥—ã€‚ä¸¥æ ¼åœ°è¯´ï¼Œåè®®æ ˆä¸çš„æ¯ä¸€å±‚å’Œå®ƒçš„å¯¹ç‰å议层构æˆäº†ä¸€ä¸ªç›¸å¯¹ç‹¬ç«‹çš„ä¿¡æ¯å系统,æ¯ä¸ªä¿¡æ¯å系统都有自己的主体和客体,应该通过æä¾›æŸäº›å®‰å…¨æœåŠ¡æ¥å®žçŽ°è‡ªèº«çš„å®‰å…¨æ€§ã€‚ä½†æ˜¯å¦‚æžœåœ¨æ¯ä¸€å±‚都æä¾›ç›¸åŒçš„安全æœåŠ¡ï¼Œå°±ä¼šé€ æˆåŠŸèƒ½çš„é‡å¤ä¸Žæµªè´¹ã€‚一个åˆç†çš„æ€è·¯æ˜¯ï¼ŒæŒ‰ç…§ä¸åŒçš„安全需求,在ä¸åŒçš„å议层ä¸è®¾ç½®ç›¸åº”的安全æœåŠ¡ï¼Œä½¿å¾—å„层之间的安全æœåŠ¡èƒ½å¤ŸååŒå·¥ä½œï¼Œä»Žè€Œè¾¾åˆ°ç½‘络系统的整体安全性。
基于实际网络ä¸çš„安全实现,我们一般å¯ä»¥å°†OSIçš„7å±‚æ¨¡åž‹åˆ’åˆ†æˆæ›´åŠ ç®€å•å’Œæ›´åŠ å®žç”¨çš„4个基本的安全结构级,它们是应用级ã€ç«¯ç³»ç»Ÿçº§ã€å网络级和直接链路级。
实施网络安全æœåŠ¡çš„æœºåˆ¶ç§°ä¸ºç½‘ç»œå®‰å…¨æœºåˆ¶ã€‚ç½‘ç»œå®‰å…¨æœºåˆ¶ç§ç±»å¾ˆå¤šï¼Œä¾‹å¦‚åŠ å¯†ã€æ•°å—ç¾åã€è®¿é—®æŽ§åˆ¶ã€æ•°æ®å®Œæ•´æ€§ã€è®¤è¯äº¤æ¢ã€ä¸šåŠ¡æµå¡«å……ã€è·¯ç”±æŽ§åˆ¶ã€å…¬è¯ï¼Œç‰ç‰ã€‚一ç§å®‰å…¨æœåŠ¡æœ‰æ—¶è¦ç”¨åˆ°å¤šç§å®‰å…¨æœºåˆ¶ï¼Œä¸€ç§å®‰å…¨æœºåˆ¶ä¹Ÿå¯èƒ½åœ¨å¤šä¸ªå®‰å…¨æœåŠ¡çš„å®žçŽ°ä¸è¢«ä½¿ç”¨ã€‚在这些安全机制ä¸ï¼Œæœ‰ä¸¤ç§è¢«ä½¿ç”¨çš„å®‰å…¨æŠ€æœ¯æœ€ä¸ºå…³é”®ã€‚ä¸€ç§æ˜¯å¯†ç 技术,它是实现所有安全æœåŠ¡çš„é‡è¦åŸºç¡€ã€‚ä¸€ç§æ˜¯è®¿é—®æŽ§åˆ¶æŠ€æœ¯ï¼Œå®ƒæ˜¯ç»´æŠ¤ç³»ç»Ÿå†…éƒ¨åˆæ³•æ“作行为的基础。
31 å…«, 2006
WPDRRC模型
该模型有6个环节和3大è¦ç´ 。6个环节是Wã€Pã€Dã€Rã€Rã€C,它们具有动æ€å馈关系。其ä¸ï¼ŒPã€Dã€Rã€R与PDRR模型ä¸å‡ºçŽ°çš„ä¿æŠ¤ã€æ£€æµ‹ã€ååº”ã€æ¢å¤ç‰4个环节相åŒï¼›Wå³é¢„è¦ï¼ˆwarningï¼‰ï¼Œå°±æ˜¯æ ¹æ®å·²æŽŒæ¡çš„系统脆弱性以åŠå½“å‰çš„计算机犯罪趋势,去预测未æ¥å¯èƒ½å—到的攻击与å±å®³ï¼›C(counterattack)则是å击——采用一切å¯èƒ½çš„é«˜æ–°æŠ€æœ¯æ‰‹æ®µï¼Œä¾¦å¯Ÿã€æå–计算机犯罪分åçš„ä½œæ¡ˆçº¿ç´¢ä¸ŽçŠ¯ç½ªè¯æ®ï¼Œå½¢æˆå¼ºæœ‰åŠ›çš„å–è¯èƒ½åŠ›å’Œä¾æ³•æ‰“å‡»æ‰‹æ®µã€‚å› æ¤è¿‘å¹´æ¥å‡ºçŽ°çš„â€œè®¡ç®—æœºå–è¯ï¼ˆcomputer forensicsï¼‰â€æˆä¸ºä¸šç•Œçš„ç ”ç©¶çƒç‚¹ä¹‹ä¸€ã€‚äººã€æ”¿ç–和技术是WPDRRC模型ä¸å…·æœ‰å±‚次关系的3大è¦ç´ ,其ä¸â€œäººâ€æ˜¯å†…层,是基座;“政ç–â€åŒ…æ‹¬æ³•å¾‹ã€æ³•è§„ã€åˆ¶åº¦å’Œç®¡ç†ï¼Œæ˜¯ä¸é—´å±‚ï¼›â€œæŠ€æœ¯â€æ˜¯å¤–层,它的æ“作必须å—到人和政ç–这两个层é¢çš„制约。WPDRRCæ¨¡åž‹çš„æ ¸å¿ƒæ˜¯å®žçŽ°ä¼ä¸šä¿¡æ¯å®‰å…¨èµ„æºçš„综åˆç®¡ç†(enterprise information security resource management,EISRM)。EISRMçš„é‡ç‚¹æ˜¯ä¸¤å¤§ä¸»è¦ç‰¹å¾ï¼š
其一,信æ¯å®‰å…¨æ˜¯éžå¸¸é‡è¦çš„ä¼ä¸šåŸºç¡€èµ„æºï¼Œä¿¡æ¯å®‰å…¨å¾—ä¸åˆ°ä¿éšœï¼Œä¼ä¸šçš„ä¿¡æ¯åŒ–管ç†å°±æ˜¯ç©ºä¸æ¥¼é˜ï¼Œä»Žè€Œå½±å“到整个ä¼ä¸šç®¡ç†æ°´å¹³çš„æå‡ï¼Œç”šè‡³æ˜¯å¯¹ç”Ÿäº§ç»è¥é€ æˆå±å®³ï¼Œå¯¹å›½æ°‘ç»æµŽå…·æœ‰é‡è¦æ„义的ä¼ä¸šæ›´æ˜¯å¸¦æ¥æžå…¶ä¸¥é‡çš„社会影å“。
其二,信æ¯å®‰å…¨æ˜¯ä¸€ç§ç»¼åˆèµ„æºï¼Œè€Œéžå•一的技术系统,包括ä¼ä¸šèƒ½åŠ›ã€äººã€æŠ€æœ¯ã€æ”¿ç–都是其密ä¸å¯åˆ†çš„组æˆéƒ¨åˆ†ï¼Œåªæœ‰å°†è¿™äº›ç›¸å…³èµ„æºæ•´åˆæˆä¸€å¥—ä½“ç³»ï¼Œæ‰æ˜¯çœŸæ£æ„义上的信æ¯å®‰å…¨ã€‚ä»¥ä¸Šä¸¤ç‚¹æ˜¯åŒºåˆ†ä¼ ç»Ÿä¿¡æ¯å®‰å…¨è§‚å¿µçš„æ ¹æœ¬ç‰¹å¾ï¼Œä¹Ÿæ˜¯ä¿¡æ¯å®‰å…¨ä½“系框架的基石。
25 å…«, 2006
æž„é€ å…费的ä¼ä¸šå®‰å…¨é£Žé™©è¯„估工具
OS:FreeBSD 6.0
Application Software:Mysql4.1 + Perl5.8 + Apache2.2.3+PHP5.1.5 + Nessus 3.0.3 + Nmap 4.11 + Nikto 1.35 + Inprotect 0.22.03 + Jpgraph-2.1.2
Recommend tools: Hydra+Nikto+John etc
Before installing, please ensure the following software is
installed on your host(s).
1) Perl v5.8
Perl libraries :
- DBI
- MIME::Lite
- Parallel::ForkManager
- Date::Calc
2) Apache2.2.3
3) PHP v5.1.5
Note: PHP with compiled with GD support (C) in /usr/ports/lang/php5-extensions/
4) MySQL v4.1
Note: #chown -R mysql:mysql /var/db/mysql
5) Nessus v3.0.3
6) Nmap v4.11
**********************************************************************
Please note, we assume you have already installed the above packages
and where services, they are already started. If you have not done so,
please complete before continuing.
**********************************************************************
Part I - Setup Inprotect "scanner"
----------------------------------
** N.B. There is no longer any need to setup the Inprotect software **
** on the "scanner" hosts any longer - useful for having multiple **
** drone "scanners" just running Nessus / Nmap. **
P.S. This can be installed on a separate host or the same one you will
be using to host the "web console" and "database".
1. Setup a Nessus user so the Inprotect "console" can login to the
Scanner (you'll need to remember the username / password to add
the "scanner" into the Inprotect "console":
$ nessus-adduser
Add a new nessusd user
----------------------
Login : <login for Inprotect to use>
Authentication (pass/cert) [pass] : pass
Login password : <password for Inprotect login to use>
Login password (again) : <password for Inprotect login to use>
User rules
----------
nessusd has a rules system which allows you to restrict the hosts
that admin has the right to test. For instance, you may want
him to be able to scan his own host only.
Please see the nessus-adduser(8) man page for the rules syntax
Enter the rules for this user, and hit ctrl-D once you are done :
(the user can have an empty rules set)
<simply press ctrl-D as no rules are required - policy
configuration will be completed through the Inprotect GUI>
Login : <login for Inprotect to use>
Password : *******************
DN :
Rules :
Is that ok ? (y/n) [y] y
user added.
2. Setup a cron job to run the Nessus update plugins script
("nessus-update-plugins") found in the <NESSUS_INSTALL>/sbin
directory.
N.B. This should be set to run by root on a daily basis. Where
you have multiple "scanners", ensure they run at the some time to
keep your "scanners" plugin archives consistent. An example line
for root's crontab is (this will run at 2am every morning):
00 2 * * * root /usr/local/sbin/nessus-update-plugins
3. Repeat if you have multiple "scanners".
modified install.sh so that runing on FreeBSD.
=================================================================================
cp -rf console/scripts/sched.pl /usr/local/bin
cp -rf console/scripts/inprotect.cfg /usr/local/etc
echo "/usr/local/bin/inprotect_reset.pl" >> /etc/rc.d/rc.local
echo "/usr/local/bin/sched.pl" >> /etc/rc.d/rc.local
crontab -l | grep -F -v -f console/crontab_web | grep -v ^# > /tmp/cron.tmp
cat console/crontab_web >> /tmp/cron.tmp
crontab /tmp/cron.tmp
rm /tmp/cron.tmp
crontab -l | grep -F -v -f scanner/crontab | grep -v ^# > /tmp/cron.tmp
cat scanner/crontab >> /tmp/cron.tmp
crontab /tmp/cron.tmp
rm /tmp/cron.tmp
echo "Web console setup finished."
echo "Please review settings in the files:"
echo " - /usr/local/etc/inprotect.cfg"
echo " - $web/config.php"
}
install_db(){
echo "Setting up Inprotect database"
echo "============================="
FAIL=1
while [ "$FAIL" -eq "1" ];
do
mysql -u root -p -e "show databases;" >>/dev/null 2>&1
if [ "$?" -eq "0" ]; then
mysql -h localhost -u root -p < console/sql/inprotect.sql
FAIL=0
else
echo "Please enter mysql root password:"
stty -echo
read mysql_pass < /dev/tty
stty echo
mysql -u root -p$mysql_pass -e "show databases;" >> /dev/null
if [ "$?" -eq "0" ]; then
mysql -u root -p$mysql_pass < console/sql/inprotect.sql
FAIL=0
else
FAIL=1
fi
fi
done
echo "Database setup finished."
}
=================================================================================
Part II - Setup Inprotect "database"
------------------------------------
N.B. This can be installed on a separate host or the same one you will
be using to host the "web console" and "scanner".
1. If you haven't already, it is recommended you set a password for
the "root" user in your MySQL installation:
Mysqladmin -uroot -p password "Newpassword"
2. Enter the directory where you un-tarred the Inprotect download
(N.B. If you are using CentOS Linux, you will not be able to
install from /tmp).
3. Run the "install.sh" script and select option 2:
$ ./install.sh
Inprotect installation
======================
Please run this installation as root user
1 - Install Web Console interface only
2 - Install Database only
3 - install Web Console & Database components
Q - Quit without installation
N.B. To install a Scanner, all you need is Nessus and required
components installed on a scanner host - see INSTALL file (part I)
for more details.
Make your selection [1-5] (Choose menu item 5.)
2
Database setup finished.
4. Create a MySQL user for the Inprotect Web Console to use:
mysql> GRANT ALL ON inprotect.* TO <inprotect_username>@localhost
IDENTIFIED BY <inprotect_password>;
mysql> exit
Part III - Setup Inprotect "web console"
----------------------------------------
N.B. This can be installed on a separate host or the same one you will
be using to host the "web console" and "scanner".
1. Enter the directory where you un-tarred the Inprotect download
(N.B. If you are using CentOS Linux, you will not be able to
install from /tmp).
2. Run the "install.sh" script and select option 1:
$ ./install.sh
Inprotect installation
======================
Please run this installation as root user
1 - Install Web Console interface only
2 - Install Database only
3 - install Web Console & Database components
Q - Quit without installation
N.B. To install a Scanner, all you need is Nessus and required
components installed on a scanner host - see INSTALL file (part I)
for more details.
Make your selection [1-5] (Choose menu item 5.)
1
Setting up Web Console interface
================================
Inprotect webroot path [/var/www/html]
<enter for the default above or type your own webroot>
/somewebroot does not exist - do you want to create it ? [y]
<enter for yes>
Web console setup finished.
Please review settings in the files:
- /usr/local/etc/inprotect.cfg
- /somewebroot/config.php"
3. Now edit the inprotect.cfg using your favourite editor (it can be
found in /usr/local/etc) and change the following lines to be:
NESSUSPATH=<path where "nessus" is>/nessus
DATABASEHOST=<localhost or hostname of MySQL server from Part II>
DATABASEUSER=<MySQL username setup in Part II, pt 4>
DATABASEPASSWORD=<Password for MySQL user setup in Part II, pt 4>
EMAILSUBJECT=<Subject of results e-mails sent by Inprotect>
4. You now need to edit the config.php installed in the webroot
location in point 2 using your favourite editor (using our
example, it would be /somewebroot/config.php). Change the
following lines to be:
$dbhost="<localhost or hostname of MySQL server from Part II>";
$dbuname="<MySQL username setup in Part II, pt 4>";
$dbpass="<Password for MySQL user setup in Part II, pt 4>";
5. If you wish your Inprotect Web console to only use encrypted HTTP
(i.e. HTTPS), change the following line in
/somewebroot/config.php:
$enablessl=1;
For this to work, you must make sure your webserver is configured
to run a HTTPS server at the virtual host you configure for
Inprotect.
6. Finally configure your web browser to server webpages giving it
permissions to execute PHP scripts within the webroot you
specified in point 2.
7. Login to the Inprotect Web Console using the username "Admin"
(case sensitive) and the password "password".
8. Add the "scanner" server you configured in Part I to the Inprotect
system by selecting:
Settings -> Nessus Servers -> Add new Nessus server
Enter the following information:
Server Name: <Insert a meaningful name for the scanner>
Server Description: <Insert your own description>
Server Hostname/IP address: <Insert the host/IP of the scanner
setup in Part I>
Server Port: <Enter the port of the Nessus daemon>
Server type: <Select Global>
Nessus Username: <Nessus user created in Part I point 1>
Nessus Password: <Nessus user's password setup in Part I point 1>
Max number of hosts to scan: <4 for a decent powered PC or higher
for better speced servers>
Click on Save.
9. Make sure you have internet access and have already configured
the nessus-fetch.rc file as part of the Nessus installation. Run:
$ updateplugins.pl
This will populate the Inprotect Database with Nessus plugin
information.
10. Download the JpGraph software from the link below and install it
into the <webroot directory>/jpgraph. Unfortunately we cannot
include it within this installation bundle:
http://www.aditus.nu/jpgraph/jpdownload.php
N.B. If you are running PHP 5.0x, you will need to modify
jpgraph.php for it to work - see the JpGraph website for details.
P.S. JpGraph will only work if you have compiled in GD support into
your PHP installation or have installed the "php-gd" package.
11. Reboot to get the Inprotect "sched.pl" daemon to initialise and
execute properly from the "rc.local" script.
Let's get scanning!
===================
Now login to the website with username: Admin, password: password
If the login does not work then start by looking at the
/var/www/logs/error_log or your web server error_log file to help double
check your settings.
To Perform a Nessus Scan:
-------------------------
A) You need to create a profile first
Select "Settings" -> "Nessus Scan Profiles" -> "Create New Profile" ->
Fill out details -> Click "Save".
B) Then assign it to a user
Select "Settings" -> "Nessus Scan Profiles" ->
Select a Profile to assign to a user -> "Edit" -> "Edit Users" ->
Select User(s) and "Add Users"
C) Pick a victim
"Security Scan" -> "Nessus Scan" -> "New Schedule" -> Give it a name ->
"Manage Hosts" -> Input IP(s) -> "Manage Schedule" ->
Enter Appropriate Data -> "Submit"
D) Then view your results
Check the "Reports" link
or
"Security Scan" -> "Nessus Scan" -> "View runnings scans details"
To Perform a nmap scan:
-----------------------
A) "Security Scan" -> "Nmap Port Scan"
25 å…«, 2006
Apache 2.x å¯åŠ¨æŠ¥é”™é—®é¢˜ï¼Ž
#/usr/local/sbin/apachectl start
["date"] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
The solution to approach:
1) kldload /boot/kernel/accf*.ko or add it to rc.local.
2) echo 'accf_http_load="yes" ' >> /boot/loader.conf.