文件内容如下:Name: CVE-1999-0002
Status: Entry
Reference: SGI:19981006-01-I
Reference: URL:ftp://patches.sgi.com/support/free/security/advisories/19981006-01-I
Reference: CERT:CA-98.12.mountd
Reference: CIAC:J-006
Reference: URL:http://www.ciac.org/ciac/bulletins/j-006.shtml
Reference: BID:121
Reference: URL:http://www.securityfocus.com/bid/121
Reference: XF:linux-mountd-boBuffer overflow in NFS mountd gives root access to remote attackers,
mostly in Linux systems.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
上面只是文本文件的当中的一个记录,有个别记录是没有一些字段的,如:URL,Phase
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
字段                                导入为
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Name                 → 编号
Status                 → 状态
Reference               → 每个Reference转换成一个参考资料记录
Reference之后的内容 → 除去多余的回车, 添加到描述中去
Phase:                  → 阶段
Category         → 类别
URL         →       URL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
请给出具体做法和讲解

解决方案 »

  1.   

    mysqlimport 从txt文件输入数据库
      

  2.   

    用程序处理了一个解决方案:用脚本后你熟悉的程序语言,利用regex,逐条生成记录。
    == 思想重于技巧 ==
      

  3.   

    有兴趣的话,可以加入这个新群
    19055578 - CSDN-VBA&Access

    =========================================================
    可加入QQ群 19055578  晚19:00 - 24:00在线
    =========================================================

    == 思想重于技巧 ==