- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
对于程序的安装,我需要使用给定的脚本在 mysql 中创建一个模式。程序需要mysql来存储一些信息。所以,我使用以下命令在我的 ubuntu 上安装了 mysql:
sudo apt-get install mysql-server
在给定的脚本中,有以下几行:
-- MySQL dump 10.13 Distrib 5.5.32, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: nightmare
-- ------------------------------------------------------
-- Server version 5.5.32-0ubuntu0.12.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `config`
--
DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (
`config_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) DEFAULT NULL,
`value` varchar(300) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL,
`date` date DEFAULT NULL,
PRIMARY KEY (`config_id`),
UNIQUE KEY `idx_uq_config_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `crash_data`
--
DROP TABLE IF EXISTS `crash_data`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `crash_data` (
`crash_data_id` int(11) NOT NULL AUTO_INCREMENT,
`crash_id` int(11) NOT NULL,
`type` varchar(30) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`value` varchar(255) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`crash_data_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `crashes`
--
DROP TABLE IF EXISTS `crashes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `crashes` (
`crash_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`sample_id` int(11) NOT NULL,
`program_counter` varchar(18) DEFAULT NULL,
`crash_signal` varchar(30) DEFAULT NULL,
`exploitability` varchar(100) DEFAULT NULL,
`disassembly` varchar(255) DEFAULT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`total_samples` int(11) NOT NULL,
`additional` mediumtext,
PRIMARY KEY (`crash_id`)
) ENGINE=InnoDB AUTO_INCREMENT=826 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `diffs`
--
DROP TABLE IF EXISTS `diffs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `diffs` (
`diff_id` int(11) NOT NULL AUTO_INCREMENT,
`sample_id` int(11) NOT NULL,
`bytes` varbinary(255) DEFAULT NULL,
`action` int(11) DEFAULT NULL,
PRIMARY KEY (`diff_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `mutation_engines`
--
DROP TABLE IF EXISTS `mutation_engines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `mutation_engines` (
`mutation_engine_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL,
`command` varchar(255) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT '1',
`date` date DEFAULT NULL,
PRIMARY KEY (`mutation_engine_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
LOCK TABLES `mutation_engines` WRITE;
/*!40000 ALTER TABLE `mutation_engines` DISABLE KEYS */;
INSERT INTO `mutation_engines` VALUES (1,'Radamsa','Radamsa is a test case generator for robustness testing, aka a fuzzer.\r\n\r\nMay or may not preserve input size.\r\n\r\nhttps://code.google.com/p/ouspg/wiki/Radamsa\r\n','radamsa %INPUT% -o %OUTPUT%',1,'2013-05-20'),(2,'Charlie Miller Algo.','Python implementation of the random based fuzzing algorithm presented by Charlie Miller in CSW2010. Preserves input size.','%NIGHTMARE_PATH%/mutators/cmiller_mutator.py %INPUT% %OUTPUT%',1,'2013-05-20'),(3,'Charlie Miller REP Algo.','Similar to Charlie Miller\'s algorithm but generating repetitions of the same random byte. Preserves input size.','%NIGHTMARE_PATH%/mutators/cmiller_mutator_rep.py %INPUT% %OUTPUT%',1,'2013-05-20'),(4,'Radamsa multiple','This is a wrapper using Radamsa to create a zip file with multiple fuzzed samples inside. This is useful, for example, to fuzz Antivirus engines.\r\n','%NIGHTMARE_PATH%/mutators/radamsa_multiple.py %TEMPLATES_PATH%/%FOLDER% 10 %OUTPUT%',1,'2013-08-12'),(5,'Radamsa multiple big','This is a wrapper using Radamsa to create a zip file with multiple fuzzed samples inside. This is useful, for example, to fuzz Antivirus engines.\r\n\r\nIt creates zip files with 30 samples inside.','%NIGHTMARE_PATH%/mutators/radamsa_multiple.py %TEMPLATES_PATH%/%FOLDER% 30 %OUTPUT%',1,'2013-08-13'),(6,'Simple replacer','This is a very näive algorithm: it simply choose a random position in the input file, choose a random character and a random size and replaces a chunk of data with the selected character repeated for the size selected. That\'s all. It preserves input size and creates a diff file for the mutated file.','%NIGHTMARE_PATH%/mutators/simple_replacer.py %INPUT% %OUTPUT%',1,'2013-08-14'),(7,'Simple replacer mutiple','Same as \"Simple replacer\" but fuzzing many files (30) and zipping all of them. It also saves .diff files for the mutated files.','%NIGHTMARE_PATH%/mutators/simple_replacer_multiple.py %TEMPLATES_PATH%/%FOLDER% 30 %OUTPUT%',1,'2013-08-14'),(8,'Charlie Miller multiple','Same as \"Charlie Miller Algo.\" but fuzzing many files (30) and zipping all of them. It also saves .diff files for the mutated files.','%NIGHTMARE_PATH%/mutators/cmiller_mutator_multiple.py %TEMPLATES_PATH%/%FOLDER% 30 %OUTPUT%',1,'2014-05-05'),(9,'Zzuf','Zzuf mutator. Preserves input size.\r\nhttp://caca.zoy.org/wiki/zzuf','%NIGHTMARE_PATH%/mutators/zzuf_mutator.py %INPUT% %OUTPUT%',1,'2014-05-10'),(10,'Zzuf multiple','This is a wrapper using Zzuf mutator to create a zip file with multiple fuzzed samples inside. Useful to fuzz Antivirus engines.','%NIGHTMARE_PATH%/mutators/zzuf_mutator_multiple.py %TEMPLATES_PATH%/%FOLDER% 20 %OUTPUT%',1,'2014-05-10'),(11,'MachO mutator','Half intelligent MachO fuzzer. It only supports a few fields for some headers but, anyway, it should be enough to discover some bugs.','%NIGHTMARE_PATH%/mutators/macho_mutator.py %INPUT% %OUTPUT%',1,'2014-06-29'),(12, 'OLE2 Mutator', 'OLE2 streams mutator. It uses the Python library OleFileIO_PL from https://bitbucket.org/decalage/olefileio_pl.', '%NIGHTMARE_PATH%/mutators/ole_file_mutator.py %INPUT% %OUTPUT%', 1, '2014-08-07'),(13, 'OLE2 mutator multiple', 'Same as OLE2 mutator but creating a bundle with many (10) files inside.', '%NIGHTMARE_PATH%/mutators/ole_file_mutator_multiple.py %TEMPLATES_PATH%/%FOLDER% 10 %OUTPUT%', 1, '2014-08-07'),(14, 'Melkor mutator', 'Melkor is a very intuitive and easy-to-use ELF file format fuzzer to find functional and security bugs in ELF parsers.' , '%NIGHTMARE_PATH%/mutators/melkor_mutator.py %TEMPLATES_PATH%/%FOLDER% 10 %OUTPUT%', 1, '2014-11-10'),(15, 'Melkor mutator multiple', 'This is a wrapper using Melkor mutator to create a zip file with multiple fuzzed samples inside. Useful to fuzz Antivirus engines.', '%NIGHTMARE_PATH%/mutators/melkor_mutator_multiple.py %TEMPLATES_PATH%/%FOLDER% 20 %OUTPUT%', 1, '2014-11-10');
INSERT INTO `mutation_engines` VALUES (16, 'Radamsa whole directory', 'Use all the samples from the given directory to create mutated samples inferring the grammar.', 'radamsa -r %TEMPLATES_PATH%/%FOLDER% -o %OUTPUT%', 1, '2014-07-08');
/*!40000 ALTER TABLE `mutation_engines` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
--
-- Table structure for table `project_engines`
--
DROP TABLE IF EXISTS `project_engines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project_engines` (
`project_engine_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`mutation_engine_id` int(11) NOT NULL,
PRIMARY KEY (`project_engine_id`),
UNIQUE KEY `project_id` (`project_id`,`mutation_engine_id`)
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `projects`
--
DROP TABLE IF EXISTS `projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `projects` (
`project_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL,
`date` date DEFAULT NULL,
`subfolder` varchar(255) DEFAULT NULL,
`tube_prefix` varchar(50) DEFAULT NULL,
`maximum_samples` int(11) NOT NULL DEFAULT '100',
`maximum_iteration` int(11) NOT NULL DEFAULT '1000000',
`enabled` tinyint(1) DEFAULT '1',
`archived` tinyint(1) DEFAULT '1',
PRIMARY KEY (`project_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `samples`
--
DROP TABLE IF EXISTS `samples`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `samples` (
`sample_id` int(11) NOT NULL AUTO_INCREMENT,
`engine_id` int(11) NOT NULL,
`template_hash` varchar(40) DEFAULT NULL,
`sample_hash` varchar(40) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`sample_id`)
) ENGINE=InnoDB AUTO_INCREMENT=839 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `statistics`
--
DROP TABLE IF EXISTS `statistics`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `statistics` (
`statistic_id` int(11) NOT NULL AUTO_INCREMENT,
`project_id` int(11) NOT NULL,
`mutation_engine_id` int(11) NOT NULL,
`total` int(11) NOT NULL DEFAULT '0',
`iteration` int(11) NOT NULL DEFAULT '0',
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`statistic_id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2013-09-14 16:14:58
-- MySQL dump 10.13 Distrib 5.5.32, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: nightmare
-- ------------------------------------------------------
-- Server version 5.5.32-0ubuntu0.12.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `config`
--
DROP TABLE IF EXISTS `config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `config` (
`config_id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(30) DEFAULT NULL,
`value` varchar(300) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL,
`date` date DEFAULT NULL,
PRIMARY KEY (`config_id`),
UNIQUE KEY `idx_uq_config_name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `triggers`;
CREATE TABLE `triggers` (
`trigger_id` int(11) NOT NULL AUTO_INCREMENT,
`description` varchar(300) DEFAULT NULL,
`command` text,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`enabled` tinyint(1) DEFAULT '1',
PRIMARY KEY (`trigger_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
--
-- Dumping data for table `config`
--
LOCK TABLES `config` WRITE;
/*!40000 ALTER TABLE `config` DISABLE KEYS */;
INSERT INTO `config` VALUES (7,'SAMPLES_PATH','/home/abdullah/nightmare/results',NULL,NULL),(8,'TEMPLATES_PATH','/home/abdullah/nightmare/samples',NULL,NULL),(9,'NIGHTMARE_PATH','/home/abdullah/nightmare',NULL,NULL),(10,'QUEUE_HOST','localhost',NULL,NULL),(11,'QUEUE_PORT','11300',NULL,NULL),(12,'TEMPORARY_PATH','/tmp/',NULL,NULL);
/*!40000 ALTER TABLE `config` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2013-09-14 16:15:43
我不太了解 mysql 和这些数据库的东西。有人可以告诉我如何创建架构吗?
最诚挚的问候,
最佳答案
您可以使用mysql客户端连接到服务器,http://dev.mysql.com/doc/refman/5.7/en/mysql.html将是一个好的开始。更多 mysql 实用程序在这里描述,http://dev.mysql.com/doc/refman/5.7/en/programs-client.html
关于mysql - 使用脚本在 mysql 中创建模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35728063/
我有 powershell 脚本。通过调度程序,我运行 bat 文件,该文件运行 PS1 文件。 BAT文件 Powershell.exe -executionpolicy remotesigned
什么更快? 或者 $.getScript('../js/SOME.js', function (){ ... // with $.ajaxSetup({ cache: true });
需要bash脚本来显示文件 #!/bin/bash my_ls() { # save current directory then cd to "$1" pushd "$1" >/dev/nu
我有一个输入 csv 文件,实际上我需要在输入文件中选择第 2 列和第 3 列值,并且需要转换两个值的时区(从 PT 到 CT),转换后我需要替换转换后的时区值到文件。 注意: 所有输入日期值都在太平
我正在使用/etc/init.d/httpd 作为 init.d 脚本的模板。我了解文件中发生的所有内容,但以下行除外: LANG=$HTTPD_LANG daemon --pidfile=${pid
我有以下选择: python runscript.py -O start -a "-a "\"-o \\\"-f/dev/sda1 -b256k -Q8\\\" -l test -p maim\""
我对 shell 脚本完全陌生,但我需要编写一个 shell 脚本来检查文件是否存在,然后移动到另一个位置 这是我写的: 一旦设备崩溃,我就会在/storage/sdcard1/1 中收集日志 #!/
我正在使用 bash 脚本从文本文件中读取数据。 数据: 04:31 Alex M.O.R.P.H. & Natalie Gioia - My Heaven http://goo.gl/rMOa2q
这是单击按钮时运行的 javascript 的结尾 xmlObj.open ('GET', /ajax.php, true); xmlObj.send (''); } 所以这会执行根目录中的php脚本
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and th
我需要将文件转换为可读流以通过 api 上传,有一个使用 fs.createReadStream 的 Node js 示例。任何人都可以告诉我上述声明的 python 等价物是什么? 例子 const
我有一个 shell 脚本 cron,它从同一目录调用 python 脚本,但是当这个 cron 执行时,我没有从我的 python 脚本中获得预期的输出,当我手动执行它时,我的 python 脚本的
如何使 XMLHttpRequest (ajax) 调用的 php 脚本安全。 我的意思是,不让 PHP 文件通过直接 url 运行,只能通过脚本从我的页面调用(我不想向未登录的用户显示数据库结果,并
我正在尝试添加以下内容 我正在使用经典的 asp。但我不断收到的错误是“一个脚本 block 不能放在另一个脚本 block 内。”我尝试了此处的 document.write 技术:Javasc
如何从另一个 PHP 脚本(如批处理文件)中运行多个 PHP 脚本?如果我了解 include 在做什么,我认为 include 不会起作用;因为我正在运行的每个文件都会重新声明一些相同的函数等。我想
我想创建具有动态内容的网页。我有一个 HTML 页面,我想从中调用一个 lua 脚本 如何调用 lua 脚本? ? ? 从中检索数据?我可以做类似的事情吗: int xx = 0; xx
我删除了我的第一个问题,并重新编写了更多细节和附加 jSfiddle domos。 我有一个脚本,它运行查询并返回数据,然后填充表。表中的行自动循环滚动。所有这些工作正常,并通过使用以下代码完成。然而
我尝试使用 amp 脚本,但收到此错误: “[amp-script] 脚本哈希未找到。amp-script[script="hello-world"].js 必须在元[name="amp-script
我有一个读取输入的 Shell 脚本 #!/bin/bash echo "Type the year that you want to check (4 digits), followed by [E
我正在从 nodejs 调用 Lua 脚本。我想传递一个数组作为参数。我在 Lua 中解析该数组时遇到问题。 下面是一个例子: var script = 'local actorlist = ARGV
我是一名优秀的程序员,十分优秀!