<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/styles/rss.css" type="text/css"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns="http://purl.org/rss/1.0/"
>
 <channel rdf:about="http://adrianyang.blog.isyi.com/rss/rss10/80">
  <title>港湾</title>
  <link>http://adrianyang.blog.isyi.com</link>
  <description></description>
    <dc:creator>adrianyang</dc:creator>
  <dc:date>2008-11-19T19:51:30Z</dc:date>
  <admin:generatorAgent rdf:resource="http://www.lifetype.net" />
  <items>
   <rdf:Seq>
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/631" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/622" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/566" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/563" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/558" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/556" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/555" />
       <rdf:li rdf:resource="http://adrianyang.blog.isyi.com/post/80/394" />
      </rdf:Seq>
  </items> 
 </channel>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/631">
  <title>Make key useing Openssl</title>
  <link>http://adrianyang.blog.isyi.com/post/80/631</link>
  <dc:description>用OpenSSL创建自己的证书 

SSL是一种基于证书的协议，任何运行SSL服务的服务器都需要自己的证书。通常为了保证通用性，我们会向证书颁发机构(Certificate Authority, 简称CA, 如VeriSign、Thawte等等)申请证书，但这需要一笔费用。对于小型组织的内部邮件服务器而言，我们完全可以使用自行建立的证书颁发机构和证书来实现我们的需求。 

下面的例子中，我们约定文件名如下： 

服务器的key-pair mykey.pem 
服务器的CA签名证书 mycert.pem 
CA自己的证书 cacert.pem 

注意，如果使用证书颁发机构发行的证书，请务必向证书颁发机构声明不要使用DES编码，否则证书将无法在sendmail中使用！ 

按照下面的操作创建自己的CA 

mkdir /usr/local/CA 
cd /usr/local/CA 
mkdir certs crl newcerts private 
echo “01” &amp;gt; serial 
cp /dev/null index.txt 
cp /etc/ssl/openssl.cnf openssl.cnf 
ee openssl.cnf 

将光标移到38行左右，将 

dir = ./demoCA # Where everything is kept 

改为 

dir = /usr/local/CA # Where everything is kept 

接着生成CA证书 

cd /usr/local/CA 
openssl req -new -x509 -keyout private/cakey.pem -out cacert.pem 
-days 1825 -config openssl.cnf 

请根据自己的实际情况回答OpenSSL的问题。我们设定CA证书的有效期为5年(1825天)，这能够满足一般的要求，又不致经常更新CA证书造成麻烦；也可以根据需要延长或缩短。需要注意，在提示PEM Passphrase的时候，请牢记输入的这个密码。 

然后，对CA证书进行自签名，然后生成新的服务器证书。注意，服务器证书的Common Name必须是服务器的FQDN名字，如mail.frontfree.net，而不可以是mail，否则今后用户每次连接服务器的时候都会得到警告，造成不必要的困扰。 

cd /usr/local/CA 
openssl req -nodes -new -x509 -keyout mykey.pem -out myreq.pem 
-days 365 -config openssl.cnf 
openssl x509 -x509toreq -in myreq.pem -signkey mykey.pem -out tmp.pem 
openssl ca -config openssl.cnf -policy policy_anything 
-out mycert.pem -infiles tmp.pem 
rm -f tmp.pem</dc:description>
      
    <dc:subject>技术类</dc:subject>
     
    
  <dc:date>2006-11-16T02:17:36Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/622">
  <title>PGP Public key for Adrian</title>
  <link>http://adrianyang.blog.isyi.com/post/80/622</link>
  <dc:description>&lt;p&gt;-----BEGIN PGP PUBLIC KEY BLOCK-----&lt;br /&gt;Version: PGPfreeware 6.5.3 for non-commercial use &amp;lt;&lt;a href=&quot;http://www.pgp.com&quot;&gt;http://www.pgp.com&lt;/a&gt;&amp;gt;&lt;/p&gt;&lt;p&gt;mQGiBEVHDPoRBADcwjeeIwKKgsI3A7+4UKO8lLrQywbZIrwh0j94LgrA7awA+/s4&lt;br /&gt;I0MkN03s7MQuCPRWMkuYflWkOK+ZaTnbggNSSfjeFwxgfaXzxXOpMAAzdTurAQjH&lt;br /&gt;+tKn4py/z1/JmEyErV/gllrEKP6/Up/LwnZjIzqQLTL9RJrXdoN02c0e7wCg/5bH&lt;br /&gt;aKy0gNxPy1w46M6RSW3ChecEALhjMygnUMWC+HoJAXtfPdSli0WsiK6zW57hFQwe&lt;br /&gt;u6qbPei8mpSnUt+/m90fAuTFvWhGAIP6QRjuDLVzaMZTm5gi7HxsMfPfJX2QMIEl&lt;br /&gt;DjRQt4aaXiwJ/89TODhex/7ehNmOXjSLqHpsR41kXy2bykfFkE4XwRxRYVrhzGgE&lt;br /&gt;WoVtBADMWZTqmsoS1L46QdnI8U/Qhl2kFXobFCkld1I783G1k4/VxriTY/CyGBOJ&lt;br /&gt;7g1I5znlN/+fxbJzDslk0aWx3W79VFWcjn6OdO4690VRRubOtVz9OZwc2WebLX6/&lt;br /&gt;8JaaO1bl98Di5bFexw6j/zCXHiYOBdEr/DUaGIBWREwdoVwpM7QrT3V5YW5nLldl&lt;br /&gt;bmZlbmcgPE91eWFuZ1dlbmZlbmdAa2luZ3NvZnQuY29tPokATgQQEQIADgUCRUcM&lt;br /&gt;+gQLAQMCAhkBAAoJEJVsqqR1iM6xYvIAnA0mbgDghaOlj4pObNp7GWp5pLT5AJ0b&lt;br /&gt;8ux4b1QlAn6pWDXOdUYYfVbkErkCDQRFRw0DEAgA7xYDX2v/9f7X893COnHlc178&lt;br /&gt;h7Z1+sK8oG8m9QtUQe0O+AFq+4ThIRrjPExjSzllWFUMQgPuGTD7FVq+kTWOLtd2&lt;br /&gt;O0tjBzI61LsCIu3dny2xRVmFRWsRJxsLztT4JWXlhi/kaZncyZdrlbW4HorVo8JR&lt;br /&gt;BSniXOU4pVV725aLhApGtTEd0xbES8J7VRjnXn+ZPg+8lvyrUSvjho658or+RAAi&lt;br /&gt;V4ywAwgcZaayI/0aVb7G6Gi/Ee9H35aGD9x7rQn2hx3ojQsyTAt7JN8vFeSjHAP0&lt;br /&gt;P0DFjEaQ/sNZYQ1RCx6Y6LBRsVdO/794sKgw3X7EqZbMQgVe/i9NWi6Gvpu3PQAC&lt;br /&gt;Agf+KfbjUsL+WdsXGbxw+krJUVuh7m3fga8PUNrv1IwqIn+VNTJ3kXQUjdPgHj5X&lt;br /&gt;iD0bWMWqZ+8LvQIoYxCoGAYPxHYUAQBHQANNc3e9MR3EB5XQP85XWgFk3b4QX0L+&lt;br /&gt;XPZDBwBJwULZAPX7wTYJrRw4OvSe5fQ0Abzk8ZMXqm912J5g6NEvWGKvxQojTWVT&lt;br /&gt;Uj/zHSE8DTG7lVmD2TNg1yOVHt+KgSTDXnC+S9GZ+4yW6I7d2hqSpVK2DZDKvJL6&lt;br /&gt;zpc4ejiveQfK6QzMHxBy56zf3rPKxu9vYo29yoEKL2ivLIGiMhGN60RlVCjbqkZw&lt;br /&gt;GrWU4DqLNRCSC/JefTo2cU+MFYkARgQYEQIABgUCRUcNAwAKCRCVbKqkdYjOsfMh&lt;br /&gt;AJ9DGZHYPInD53aLYRZrJH+c9Dw45wCaAngLILOpLFgQTlDFQmFwUCuD5Xs=&lt;br /&gt;=MmBY&lt;br /&gt;-----END PGP PUBLIC KEY BLOCK-----&lt;/p&gt;</dc:description>
      
    <dc:subject>技术类</dc:subject>
     
    
  <dc:date>2006-11-01T00:58:48Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/566">
  <title>网络安全威胁和安全服务</title>
  <link>http://adrianyang.blog.isyi.com/post/80/566</link>
  <dc:description>&lt;p&gt;所谓安全威胁是指某个人、物、事件或概念对某一资源的机密性、完整性、可用性或合法使用所造成的危害。从计算机信息系统的角度来讲，主要面临如下4个基本的安全威胁。&lt;br /&gt;(1) 信息泄露: 信息被泄露或透露给某个未授权的实体。&lt;br /&gt;(2) 完整性破坏: 数据的一致性通过未授权的创建、修改或破坏而受到损坏。&lt;br /&gt;(3) 拒绝服务: 对信息或其他资源的合法访问被无条件的阻止。&lt;/p&gt;&lt;p&gt;(4) 非法使用: 某一资源被某个未授权的人或以某一种未授权的方式使用。&lt;br /&gt;网络系统的概念涵盖了与计算机系统互连相关的软硬件等一切设施。我们将所有通过网络系统实施的，或针对网络系统本身的安全威胁称为网络安全威胁。网络安全威胁包含的范围很广，因为许多针对计算机系统内部的安全威胁也越来越多地是通过网络系统发起的，人们一说到安全威胁，大多指的就是网络安全威胁。网络安全威胁可以从如下角度划分成3大类。&lt;br /&gt;● 针对数据传输的威胁: 会导致基本威胁(1) 和(2) ，例如数据信息的窃听、数据信息的篡改、数据传输的抵赖、中间人攻击，等等。&lt;br /&gt;● 针对网络协议栈本身设计漏洞的威胁: 会导致基本威胁(3) ，例如地址欺骗攻击、Ping攻击、SYN攻击，等等。&lt;br /&gt;● 以网络系统为通道的计算机系统内部威胁: 不破坏网络系统，仅仅是借助网络系统来对计算机内部系统进行非法的数据获取或修改，会导致基本威胁(1) 、(2) 和(4) ，例如旁路控制、特洛伊木马、授权侵犯，等等。&lt;br /&gt;面对如此众多的网络安全威胁，任何信息系统都需要采取必要的安全防护措施，甚至应该包括必要的安全检测和响应措施，我们把这些主要的网络安全措施称作网络安全服务。以下是几种通用的网络安全服务。&lt;br /&gt;● 认证服务: 提供某个实体的身份保证。&lt;br /&gt;● 访问控制服务: 保护资源以免对其进行非法使用和操纵。&lt;br /&gt;● 数据机密性服务: 保护信息不被泄露或暴露给未授权的实体。&lt;br /&gt;● 数据完整性服务: 保护数据以防止未授权的改变、删除或替代。&lt;br /&gt;● 非否认服务: 防止参与某次通信交换的一方事后否认本次交换曾经发生过。&lt;br /&gt;● 网络安全检测服务: 对系统的运行状态进行监视，发现各种攻击企图、攻击行为或者攻击结果。&lt;br /&gt;● 审计服务: 对系统记录和过程的检查和审查，协助攻击的分析，收集证据以用于起诉攻击者。&lt;br /&gt;● 攻击监控和报警响应服务: 对攻击事件的监视与控制，提供对攻击事件的报警与响应。&lt;br /&gt;各种安全服务是有一定的针对性的，例如认证服务用来防止假冒攻击，数据机密性服务用来防止数据信息泄露。同时各种安全服务之间存在着协同关系，单独一种安全服务并不一定能够防止某些安全威胁的发生，例如访问控制服务需要认证服务的配合，有时也需要数据机密性和完整性服务的支持。在安全防护服务未能阻止对系统的入侵攻击时，还需要有安全检测、审计和报警服务来进行后续处理。因此对系统提供全面安全保护，防止形形色色且不断增长的安全威胁的发生，是系统中多种安全服务综合作用的结果。&lt;br /&gt;网络体系结构的分层特性使得安全服务的配置较为复杂。协议分层导致了数据项嵌在了数据项中，连接之中有连接，潜在地形成多重嵌套。严格地说，协议栈中的每一层和它的对等协议层构成了一个相对独立的信息子系统，每个信息子系统都有自己的主体和客体，应该通过提供某些安全服务来实现自身的安全性。但是如果在每一层都提供相同的安全服务，就会造成功能的重复与浪费。一个合理的思路是，按照不同的安全需求，在不同的协议层中设置相应的安全服务，使得各层之间的安全服务能够协同工作，从而达到网络系统的整体安全性。&lt;br /&gt;基于实际网络中的安全实现，我们一般可以将OSI的7层模型划分成更加简单和更加实用的4个基本的安全结构级，它们是应用级、端系统级、子网络级和直接链路级。&lt;/p&gt;&lt;p&gt;实施网络安全服务的机制称为网络安全机制。网络安全机制种类很多，例如加密、数字签名、访问控制、数据完整性、认证交换、业务流填充、路由控制、公证，等等。一种安全服务有时要用到多种安全机制，一种安全机制也可能在多个安全服务的实现中被使用。在这些安全机制中，有两种被使用的安全技术最为关键。一种是密码技术，它是实现所有安全服务的重要基础。一种是访问控制技术，它是维护系统内部合法操作行为的基础。&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</dc:description>
      
    <dc:subject>技术类</dc:subject>
     
    
  <dc:date>2006-09-05T12:11:59Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/563">
  <title>WPDRRC模型</title>
  <link>http://adrianyang.blog.isyi.com/post/80/563</link>
  <dc:description>&lt;p&gt;该模型有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的重点是两大主要特征：&lt;/p&gt;&lt;p&gt;其一，信息安全是非常重要的企业基础资源，信息安全得不到保障，企业的信息化管理就是空中楼阁，从而影响到整个企业管理水平的提升，甚至是对生产经营造成危害，对国民经济具有重要意义的企业更是带来极其严重的社会影响。&lt;/p&gt;&lt;p&gt;其二，信息安全是一种综合资源，而非单一的技术系统，包括企业能力、人、技术、政策都是其密不可分的组成部分，只有将这些相关资源整合成一套体系，才是真正意义上的信息安全。以上两点是区分传统信息安全观念的根本特征，也是信息安全体系框架的基石。&lt;/p&gt;&lt;p /&gt;</dc:description>
      
    <dc:subject>技术类</dc:subject>
     
    
  <dc:date>2006-08-31T19:01:31Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/558">
  <title>心情</title>
  <link>http://adrianyang.blog.isyi.com/post/80/558</link>
  <dc:description>男子汉大丈夫,做人做事光明磊落,坦坦荡荡! 至于别人爱怎么想就怎么想.</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2006-08-27T10:32:26Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/556">
  <title>构造免费的企业安全风险评估工具</title>
  <link>http://adrianyang.blog.isyi.com/post/80/556</link>
  <dc:description>&lt;p&gt;OS：FreeBSD 6.0 &lt;/p&gt;&lt;p&gt;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 &lt;/p&gt;&lt;p&gt;Recommend tools: Hydra+Nikto+John etc&lt;/p&gt;&lt;p&gt;Before installing, please ensure the following software is &lt;br /&gt;installed on your host(s).&lt;/p&gt;&lt;p&gt;1) Perl v5.8&lt;/p&gt;&lt;p&gt; Perl libraries :&lt;br /&gt;  - DBI&lt;br /&gt;  - MIME::Lite&lt;br /&gt;  - Parallel::ForkManager&lt;br /&gt;  - Date::Calc&lt;/p&gt;&lt;p&gt;2) Apache2.2.3&lt;/p&gt;&lt;p&gt;3) PHP v5.1.5&lt;/p&gt;&lt;p&gt;   Note: PHP with compiled with GD support (C) in  /usr/ports/lang/php5-extensions/&lt;/p&gt;&lt;p&gt;4) MySQL v4.1&lt;br /&gt;   Note: #chown -R mysql:mysql /var/db/mysql&lt;/p&gt;&lt;p&gt;5) Nessus v3.0.3&lt;/p&gt;&lt;p&gt;6) Nmap v4.11&lt;/p&gt;&lt;p&gt;&lt;br /&gt;**********************************************************************&lt;br /&gt;Please note, we assume you have already installed the above packages &lt;br /&gt;and where services, they are already started. If you have not done so, &lt;br /&gt;please complete before continuing.&lt;br /&gt;**********************************************************************&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Part I - Setup Inprotect &amp;quot;scanner&amp;quot;&lt;br /&gt;----------------------------------&lt;/p&gt;&lt;p&gt;** N.B. There is no longer any need to setup the Inprotect software **&lt;br /&gt;** on the &amp;quot;scanner&amp;quot; hosts any longer - useful for having multiple   **&lt;br /&gt;** drone &amp;quot;scanners&amp;quot; just running Nessus / Nmap.                     **&lt;/p&gt;&lt;p&gt;P.S. This can be installed on a separate host or the same one you will&lt;br /&gt;be using to host the &amp;quot;web console&amp;quot; and &amp;quot;database&amp;quot;.&lt;/p&gt;&lt;p&gt; 1. Setup a Nessus user so the Inprotect &amp;quot;console&amp;quot; can login to the &lt;br /&gt;    Scanner (you&#039;ll need to remember the username / password to add &lt;br /&gt;    the &amp;quot;scanner&amp;quot; into the Inprotect &amp;quot;console&amp;quot;:&lt;/p&gt;&lt;p&gt;    $ nessus-adduser&lt;/p&gt;&lt;p&gt;    Add a new nessusd user&lt;br /&gt;    ----------------------&lt;br /&gt;    Login : &amp;lt;login for Inprotect to use&amp;gt;&lt;br /&gt;    Authentication (pass/cert) [pass] : pass&lt;br /&gt;    Login password : &amp;lt;password for Inprotect login to use&amp;gt;&lt;br /&gt;    Login password (again) : &amp;lt;password for Inprotect login to use&amp;gt;&lt;/p&gt;&lt;p&gt;    User rules&lt;br /&gt;    ----------&lt;br /&gt;    nessusd has a rules system which allows you to restrict the hosts&lt;br /&gt;    that admin has the right to test. For instance, you may want&lt;br /&gt;    him to be able to scan his own host only.&lt;/p&gt;&lt;p&gt;    Please see the nessus-adduser(8) man page for the rules syntax&lt;/p&gt;&lt;p&gt;    Enter the rules for this user, and hit ctrl-D once you are done :&lt;br /&gt;    (the user can have an empty rules set)&lt;/p&gt;&lt;p&gt;    &amp;lt;simply press ctrl-D as no rules are required - policy &lt;br /&gt;     configuration will be completed through the Inprotect GUI&amp;gt;&lt;/p&gt;&lt;p&gt;    Login : &amp;lt;login for Inprotect to use&amp;gt;&lt;br /&gt;    Password : *******************&lt;br /&gt;    DN :&lt;br /&gt;    Rules :&lt;/p&gt;&lt;p&gt;    Is that ok ? (y/n) [y] y&lt;br /&gt;    user added.&lt;/p&gt;&lt;p&gt; 2. Setup a cron job to run the Nessus update plugins script &lt;br /&gt;    (&amp;quot;nessus-update-plugins&amp;quot;) found in the &amp;lt;NESSUS_INSTALL&amp;gt;/sbin &lt;br /&gt;    directory.&lt;/p&gt;&lt;p&gt;    N.B. This should be set to run by root on a daily basis. Where &lt;br /&gt;    you have multiple &amp;quot;scanners&amp;quot;, ensure they run at the some time to &lt;br /&gt;    keep your &amp;quot;scanners&amp;quot; plugin archives consistent. An example line &lt;br /&gt;    for root&#039;s crontab is (this will run at 2am every morning):&lt;/p&gt;&lt;p&gt;    00 2 * * * root /usr/local/sbin/nessus-update-plugins&lt;/p&gt;&lt;p&gt; 3. Repeat if you have multiple &amp;quot;scanners&amp;quot;.&lt;/p&gt;&lt;p&gt;modified install.sh so that runing on FreeBSD.&lt;br /&gt;=================================================================================&lt;br /&gt;cp -rf console/scripts/sched.pl /usr/local/bin&lt;br /&gt;cp -rf console/scripts/inprotect.cfg /usr/local/etc&lt;/p&gt;&lt;p&gt;echo &amp;quot;/usr/local/bin/inprotect_reset.pl&amp;quot; &amp;gt;&amp;gt; /etc/rc.d/rc.local&lt;br /&gt;echo &amp;quot;/usr/local/bin/sched.pl&amp;quot; &amp;gt;&amp;gt; /etc/rc.d/rc.local&lt;/p&gt;&lt;p&gt;crontab -l | grep -F -v -f console/crontab_web | grep -v ^# &amp;gt; /tmp/cron.tmp&lt;br /&gt;cat console/crontab_web &amp;gt;&amp;gt; /tmp/cron.tmp&lt;br /&gt;crontab /tmp/cron.tmp&lt;br /&gt;rm /tmp/cron.tmp&lt;/p&gt;&lt;p&gt;crontab -l | grep -F -v -f scanner/crontab | grep -v ^# &amp;gt; /tmp/cron.tmp&lt;br /&gt;cat scanner/crontab &amp;gt;&amp;gt; /tmp/cron.tmp&lt;br /&gt;crontab /tmp/cron.tmp&lt;br /&gt;rm /tmp/cron.tmp&lt;/p&gt;&lt;p&gt;echo &amp;quot;Web console setup finished.&amp;quot;&lt;br /&gt;echo &amp;quot;Please review settings in the files:&amp;quot;&lt;br /&gt;echo &amp;quot;  - /usr/local/etc/inprotect.cfg&amp;quot;&lt;br /&gt;echo &amp;quot;  - $web/config.php&amp;quot;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;install_db(){&lt;br /&gt;echo &amp;quot;Setting up Inprotect database&amp;quot;&lt;br /&gt;echo &amp;quot;=============================&amp;quot;&lt;/p&gt;&lt;p&gt;FAIL=1&lt;br /&gt;while [ &amp;quot;$FAIL&amp;quot; -eq &amp;quot;1&amp;quot; ];&lt;br /&gt;do&lt;br /&gt;        mysql -u root -p -e &amp;quot;show databases;&amp;quot; &amp;gt;&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;        if [ &amp;quot;$?&amp;quot; -eq &amp;quot;0&amp;quot; ]; then&lt;br /&gt;                mysql -h localhost -u root -p &amp;lt; console/sql/inprotect.sql&lt;br /&gt;                FAIL=0&lt;br /&gt;        else&lt;br /&gt;                echo &amp;quot;Please enter mysql root password:&amp;quot;&lt;br /&gt;                stty -echo&lt;br /&gt;                read mysql_pass &amp;lt; /dev/tty&lt;br /&gt;                stty echo&lt;br /&gt;                mysql -u root -p$mysql_pass -e &amp;quot;show databases;&amp;quot; &amp;gt;&amp;gt; /dev/null&lt;br /&gt;                if [ &amp;quot;$?&amp;quot; -eq &amp;quot;0&amp;quot; ]; then&lt;br /&gt;                        mysql -u root -p$mysql_pass &amp;lt; console/sql/inprotect.sql&lt;br /&gt;                        FAIL=0&lt;br /&gt;                else&lt;br /&gt;                        FAIL=1&lt;br /&gt;                fi&lt;br /&gt;        fi&lt;br /&gt;done&lt;/p&gt;&lt;p&gt;echo &amp;quot;Database setup finished.&amp;quot;&lt;/p&gt;&lt;p&gt;}&lt;br /&gt;=================================================================================&lt;br /&gt;Part II - Setup Inprotect &amp;quot;database&amp;quot;&lt;br /&gt;------------------------------------&lt;/p&gt;&lt;p&gt;N.B. This can be installed on a separate host or the same one you will &lt;br /&gt;be using to host the &amp;quot;web console&amp;quot; and &amp;quot;scanner&amp;quot;.&lt;/p&gt;&lt;p&gt; 1. If you haven&#039;t already, it is recommended you set a password for &lt;br /&gt;    the &amp;quot;root&amp;quot; user in your MySQL installation:&lt;/p&gt;&lt;p&gt;Mysqladmin -uroot -p password  &amp;quot;Newpassword&amp;quot;&lt;/p&gt;&lt;p&gt; 2. Enter the directory where you un-tarred the Inprotect download &lt;br /&gt;    (N.B. If you are using CentOS Linux, you will not be able to &lt;br /&gt;    install from /tmp).&lt;/p&gt;&lt;p&gt; 3. Run the &amp;quot;install.sh&amp;quot; script and select option 2:&lt;/p&gt;&lt;p&gt;    $ ./install.sh&lt;/p&gt;&lt;p&gt;    Inprotect installation&lt;br /&gt;    ======================&lt;br /&gt;    Please run this installation as root user&lt;br /&gt;    1 - Install Web Console interface only&lt;br /&gt;    2 - Install Database only&lt;br /&gt;    3 - install Web Console &amp;amp; Database components&lt;br /&gt;    Q - Quit without installation&lt;/p&gt;&lt;p&gt;    N.B. To install a Scanner, all you need is Nessus and required&lt;br /&gt;    components installed on a scanner host - see INSTALL file (part I) &lt;br /&gt;    for more details.&lt;/p&gt;&lt;p&gt;    Make your selection [1-5] (Choose menu item 5.)&lt;br /&gt;    2&lt;/p&gt;&lt;p&gt;    Database setup finished.&lt;/p&gt;&lt;p&gt; 4. Create a MySQL user for the Inprotect Web Console to use:&lt;/p&gt;&lt;p&gt;    mysql&amp;gt; GRANT ALL ON inprotect.* TO &amp;lt;inprotect_username&amp;gt;@localhost &lt;br /&gt;           IDENTIFIED BY &amp;lt;inprotect_password&amp;gt;;&lt;br /&gt;    mysql&amp;gt; exit&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Part III - Setup Inprotect &amp;quot;web console&amp;quot;&lt;br /&gt;----------------------------------------&lt;/p&gt;&lt;p&gt;N.B. This can be installed on a separate host or the same one you will&lt;br /&gt;be using to host the &amp;quot;web console&amp;quot; and &amp;quot;scanner&amp;quot;.&lt;/p&gt;&lt;p&gt; 1. Enter the directory where you un-tarred the Inprotect download &lt;br /&gt;    (N.B. If you are using CentOS Linux, you will not be able to &lt;br /&gt;    install from /tmp).&lt;/p&gt;&lt;p&gt; 2. Run the &amp;quot;install.sh&amp;quot; script and select option 1:&lt;br /&gt;    $ ./install.sh&lt;/p&gt;&lt;p&gt;    Inprotect installation&lt;br /&gt;    ======================&lt;br /&gt;    Please run this installation as root user&lt;br /&gt;    1 - Install Web Console interface only&lt;br /&gt;    2 - Install Database only&lt;br /&gt;    3 - install Web Console &amp;amp; Database components&lt;br /&gt;    Q - Quit without installation&lt;/p&gt;&lt;p&gt;    N.B. To install a Scanner, all you need is Nessus and required&lt;br /&gt;    components installed on a scanner host - see INSTALL file (part I) &lt;br /&gt;    for more details.&lt;/p&gt;&lt;p&gt;    Make your selection [1-5] (Choose menu item 5.)&lt;br /&gt;    1&lt;/p&gt;&lt;p&gt;    Setting up Web Console interface&lt;br /&gt;    ================================&lt;br /&gt;    Inprotect webroot path [/var/www/html]&lt;br /&gt;    &amp;lt;enter for the default above or type your own webroot&amp;gt;&lt;br /&gt;    /somewebroot does not exist - do you want to create it ? [y]&lt;br /&gt;    &amp;lt;enter for yes&amp;gt;&lt;/p&gt;&lt;p&gt;    Web console setup finished.&lt;br /&gt;    Please review settings in the files:&lt;br /&gt;      - /usr/local/etc/inprotect.cfg&lt;br /&gt;      - /somewebroot/config.php&amp;quot;&lt;/p&gt;&lt;p&gt; 3. Now edit the inprotect.cfg using your favourite editor (it can be &lt;br /&gt;    found in /usr/local/etc) and change the following lines to be:&lt;/p&gt;&lt;p&gt;    NESSUSPATH=&amp;lt;path where &amp;quot;nessus&amp;quot; is&amp;gt;/nessus&lt;br /&gt;    DATABASEHOST=&amp;lt;localhost or hostname of MySQL server from Part II&amp;gt;&lt;br /&gt;    DATABASEUSER=&amp;lt;MySQL username setup in Part II, pt 4&amp;gt;&lt;br /&gt;    DATABASEPASSWORD=&amp;lt;Password for MySQL user setup in Part II, pt 4&amp;gt;&lt;br /&gt;    EMAILSUBJECT=&amp;lt;Subject of results e-mails sent by Inprotect&amp;gt;&lt;/p&gt;&lt;p&gt; 4. You now need to edit the config.php installed in the webroot &lt;br /&gt;    location in point 2 using your favourite editor (using our &lt;br /&gt;    example, it would be /somewebroot/config.php). Change the &lt;br /&gt;    following lines to be:&lt;/p&gt;&lt;p&gt;    $dbhost=&amp;quot;&amp;lt;localhost or hostname of MySQL server from Part II&amp;gt;&amp;quot;;&lt;br /&gt;    $dbuname=&amp;quot;&amp;lt;MySQL username setup in Part II, pt 4&amp;gt;&amp;quot;;&lt;br /&gt;    $dbpass=&amp;quot;&amp;lt;Password for MySQL user setup in Part II, pt 4&amp;gt;&amp;quot;;&lt;/p&gt;&lt;p&gt; 5. If you wish your Inprotect Web console to only use encrypted HTTP &lt;br /&gt;    (i.e. HTTPS), change the following line in &lt;br /&gt;    /somewebroot/config.php:&lt;/p&gt;&lt;p&gt;    $enablessl=1;&lt;/p&gt;&lt;p&gt;    For this to work, you must make sure your webserver is configured &lt;br /&gt;    to run a HTTPS server at the virtual host you configure for &lt;br /&gt;    Inprotect.&lt;/p&gt;&lt;p&gt; 6. Finally configure your web browser to server webpages giving it &lt;br /&gt;    permissions to execute PHP scripts within the webroot you &lt;br /&gt;    specified in point 2.&lt;/p&gt;&lt;p&gt; 7. Login to the Inprotect Web Console using the username &amp;quot;Admin&amp;quot; &lt;br /&gt;    (case sensitive) and the password &amp;quot;password&amp;quot;.&lt;/p&gt;&lt;p&gt; 8. Add the &amp;quot;scanner&amp;quot; server you configured in Part I to the Inprotect &lt;br /&gt;    system by selecting:&lt;/p&gt;&lt;p&gt;    Settings -&amp;gt; Nessus Servers -&amp;gt; Add new Nessus server&lt;/p&gt;&lt;p&gt;    Enter the following information:&lt;/p&gt;&lt;p&gt;    Server Name: &amp;lt;Insert a meaningful name for the scanner&amp;gt;&lt;br /&gt;    Server Description: &amp;lt;Insert your own description&amp;gt;&lt;br /&gt;    Server Hostname/IP address: &amp;lt;Insert the host/IP of the scanner &lt;br /&gt;                                 setup in Part I&amp;gt;&lt;br /&gt;    Server Port: &amp;lt;Enter the port of the Nessus daemon&amp;gt;&lt;br /&gt;    Server type: &amp;lt;Select Global&amp;gt;&lt;br /&gt;    Nessus Username: &amp;lt;Nessus user created in Part I point 1&amp;gt;&lt;br /&gt;    Nessus Password: &amp;lt;Nessus user&#039;s password setup in Part I point 1&amp;gt;&lt;br /&gt;    Max number of hosts to scan: &amp;lt;4 for a decent powered PC or higher &lt;br /&gt;                                  for better speced servers&amp;gt;&lt;/p&gt;&lt;p&gt;    Click on Save.&lt;/p&gt;&lt;p&gt; 9. Make sure you have internet access and have already configured &lt;br /&gt;    the nessus-fetch.rc file as part of the Nessus installation. Run:&lt;/p&gt;&lt;p&gt;    $ updateplugins.pl&lt;/p&gt;&lt;p&gt;    This will populate the Inprotect Database with Nessus plugin &lt;br /&gt;    information.&lt;br /&gt; &lt;br /&gt;10. Download the JpGraph software from the link below and install it &lt;br /&gt;    into the &amp;lt;webroot directory&amp;gt;/jpgraph. Unfortunately we cannot &lt;br /&gt;    include it within this installation bundle:&lt;br /&gt; &lt;br /&gt;    &lt;a href=&quot;http://www.aditus.nu/jpgraph/jpdownload.php&quot;&gt;http://www.aditus.nu/jpgraph/jpdownload.php&lt;/a&gt;&lt;/p&gt;&lt;p&gt;    N.B. If you are running PHP 5.0x, you will need to modify &lt;br /&gt;    jpgraph.php for it to work - see the JpGraph website for details.&lt;/p&gt;&lt;p&gt;    P.S. JpGraph will only work if you have compiled in GD support into &lt;br /&gt;    your PHP installation or have installed the &amp;quot;php-gd&amp;quot; package.&lt;/p&gt;&lt;p&gt;11. Reboot to get the Inprotect &amp;quot;sched.pl&amp;quot; daemon to initialise and &lt;br /&gt;    execute properly from the &amp;quot;rc.local&amp;quot; script.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Let&#039;s get scanning!&lt;br /&gt;===================&lt;/p&gt;&lt;p&gt;Now login to the website with username: Admin, password: password&lt;br /&gt;If the login does not work then start by looking at the &lt;br /&gt;/var/www/logs/error_log or your web server error_log file to help double &lt;br /&gt;check your settings.&lt;/p&gt;&lt;p&gt;To Perform a Nessus Scan:&lt;br /&gt;-------------------------&lt;br /&gt;A) You need to create a profile first&lt;br /&gt;   Select &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Nessus Scan Profiles&amp;quot; -&amp;gt; &amp;quot;Create New Profile&amp;quot; -&amp;gt; &lt;br /&gt;   Fill out details -&amp;gt; Click &amp;quot;Save&amp;quot;.&lt;/p&gt;&lt;p&gt;B) Then assign it to a user&lt;br /&gt;   Select &amp;quot;Settings&amp;quot; -&amp;gt; &amp;quot;Nessus Scan Profiles&amp;quot; -&amp;gt;&lt;br /&gt;   Select a Profile to assign to a user -&amp;gt; &amp;quot;Edit&amp;quot; -&amp;gt; &amp;quot;Edit Users&amp;quot; -&amp;gt; &lt;br /&gt;   Select User(s) and &amp;quot;Add Users&amp;quot;&lt;/p&gt;&lt;p&gt;C) Pick a victim&lt;br /&gt;   &amp;quot;Security Scan&amp;quot; -&amp;gt; &amp;quot;Nessus Scan&amp;quot; -&amp;gt; &amp;quot;New Schedule&amp;quot; -&amp;gt; Give it a name -&amp;gt; &lt;br /&gt;   &amp;quot;Manage Hosts&amp;quot; -&amp;gt; Input IP(s) -&amp;gt; &amp;quot;Manage Schedule&amp;quot; -&amp;gt;&lt;br /&gt;   Enter Appropriate Data -&amp;gt; &amp;quot;Submit&amp;quot;&lt;/p&gt;&lt;p&gt;D) Then view your results&lt;br /&gt;   Check the &amp;quot;Reports&amp;quot; link&lt;br /&gt;   or&lt;br /&gt;   &amp;quot;Security Scan&amp;quot; -&amp;gt; &amp;quot;Nessus Scan&amp;quot; -&amp;gt; &amp;quot;View runnings scans details&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;To Perform a nmap scan:&lt;br /&gt;-----------------------&lt;br /&gt;A) &amp;quot;Security Scan&amp;quot; -&amp;gt; &amp;quot;Nmap Port Scan&amp;quot;&lt;/p&gt;</dc:description>
      
    <dc:subject>技术类</dc:subject>
     
    
  <dc:date>2006-08-25T14:53:04Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/555">
  <title>Apache 2.x 启动报错问题．</title>
  <link>http://adrianyang.blog.isyi.com/post/80/555</link>
  <dc:description>&lt;p&gt;#/usr/local/sbin/apachectl start&lt;/p&gt;&lt;p&gt;[&amp;quot;date&amp;quot;] [warn] (2)No such file or directory: Failed to enable the &#039;httpready&#039; Accept Filter&lt;/p&gt;&lt;p&gt;The solution to approach:&lt;/p&gt;&lt;p&gt;1)  &lt;span class=&quot;postbody&quot;&gt;kldload /boot/kernel/accf*.ko   or add it to rc.local.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;2)&lt;span class=&quot;postbody&quot;&gt; echo &#039;accf_http_load=&amp;quot;yes&amp;quot; &#039;  &amp;gt;&amp;gt; /boot/loader.conf.&lt;/span&gt;&lt;/p&gt;</dc:description>
      
    <dc:subject>技术类</dc:subject>
     
    
  <dc:date>2006-08-25T13:31:43Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
  <item rdf:about="http://adrianyang.blog.isyi.com/post/80/394">
  <title>祝贺您</title>
  <link>http://adrianyang.blog.isyi.com/post/80/394</link>
  <dc:description>如果您阅读到这篇文章，这就意味着您注册的博客已经申请成功。</dc:description>
      
    <dc:subject>General</dc:subject>
     
    
  <dc:date>2006-06-01T10:22:42Z</dc:date>
    <dc:creator>adrianyang</dc:creator>
 </item>
 </rdf:RDF>