Download the following file: create_project.rb
Use the SCP command to copy it to your instance in the /opt/dradispro/dradispro/current/
directory.
$ cd /opt/dradispro/dradispro/current/
$ RAILS_ENV=production bundle exec \ rails runner \ project.rb "Name of project"
Sub in the name you want for your project. After churning for a minute, the console will output the project ID. Hang on to that ID, you'll need it for the next two steps.
Still in the console as "dradispro", run:
$ PROJECT_ID=# RAILS_ENV=production bundle exec thor \
dradis:plugins:nessus:upload FILE
Don't forget to substitute in the project ID and the actual file path to the nessus upload.
For simplicity I'm going to ask you to check out this guide for more information on the output and template parameters: Generating the Report from the Command Line
This script is part of our scripting repository on GitHub. Check out the link for more scripting examples!
Next help article: Update your IssueLibrary entries →
Your email is kept private. We don't do the spam thing.