I am trying to set the configuration of the Fuzzing Suite called 'Nightmare'. But I have problems. First, I cloned the repository using the command:
$ git clone http://ift.tt/1oHMZeY
Later I installed all dependencies described in the file install.txt. But at step 6) I ve got problems. The config.py file looks like the following:
##############################################################################
# Nightmare Fuzzing Project web application configuration file
##############################################################################
# Administrator username
NFP_USER="admin"
# Administrator password (SHA1 hash, default is 'nightmare')
NFP_PASS="0ffa932690225172d291718510fd8a31b44d5698"
# Beanstalk queue host
QUEUE_HOST="localhost"
# Beanstalk queue listening port
QUEUE_PORT=11300
# Is debug enabled?
DEBUG=True
# Database hostname or IP address
DB_HOST= "localhost"
# Database name
DB_NAME= "nightmare"
# Database username
DB_USER= "fuzzing"
# Database password
DB_PASS= "fuzzing"
and the config.cfg file has the following content:
#[database]
#dbn=mysql
# Database hostname or IP address
#host=localhost
# Database name
#db=nightmare
# Database username
#user=fuzzing
# Database password
#pw=fuzzing
#~ ########################################################################
#~ # Example configuration for SQLite3
#~ ########################################################################
[database]
dbn=sqlite
#Database name
db=/home/abdullah/nightmare/db.sqlite
now, when I type the commands:
$ cd nightmare/runtime
$ python nightmare_frontend.py
Can somebody tell me what is wrong here ? It says that there is no config table but in a file nightmare_sqlite.sql I have such a table and I also the paths correctly (see the following lines):
CREATE TABLE `config` (
`config_id` INTEGER PRIMARY KEY AUTOINCREMENT,
`name` varchar(30) DEFAULT NULL,
`value` varchar(300) DEFAULT NULL,
`description` varchar(300) DEFAULT NULL,
`date` date DEFAULT NULL
);
INSERT INTO "config" VALUES(7,'SAMPLES_PATH','/home/abdullah/nightmare/results',NULL,NULL);
INSERT INTO "config" VALUES(8,'TEMPLATES_PATH','/home/abdullah/nightmare/samples',NULL,NULL);
INSERT INTO "config" VALUES(9,'NIGHTMARE_PATH','/home/abdullah/nightmare',NULL,NULL);
INSERT INTO "config" VALUES(10,'QUEUE_HOST','localhost',NULL,NULL);
INSERT INTO "config" VALUES(11,'QUEUE_PORT','11300',NULL,NULL);
INSERT INTO "config" VALUES(12,'TEMPORARY_PATH','/tmp',NULL,NULL);
DELETE FROM sqlite_sequence;
INSERT INTO "sqlite_sequence" VALUES('mutation_engines',11);
INSERT INTO "sqlite_sequence" VALUES('config',11);
CREATE UNIQUE INDEX `project_id` on project_engines (`project_id`,`mutation_engine_id`);
CREATE UNIQUE INDEX idx_uq_config_name on config (`name`);
COMMIT;
I hope somebody can help.
Best regards,
Aucun commentaire:
Enregistrer un commentaire