By Daniel Martin / @etdsoft
["!d62728_high", "!ff7f0e_medium", "!6baed6_low"]
report_item.port
report_item.svc_name
report_item.protocol
report_item.severity
report_item.plugin_id
report_item.plugin_name
report_item.plugin_family
...
#[Title]#
%report_item.plugin_name%
#[Description]#
%report_item.description%
#[Solution]#
%report_item.solution%
/api/issues
/api/nodes
./attachments
./evidence
./notes
$ curl -i -u etd http://dradisframework-ce.dev/api/issues/4
{
"id": 4,
"title": "Out-of-date Apache server",
"fields": {
"Title": "Out-of-date Apache server",
"OWASP": "A9",
"Risk": "High",
"Description": "The version of ...",
"Solution": "The Apache HTTP ...",
"References": "Apache HTTP Server Project\nhttp://httpd.apache.org"
},
"text": "#[Title]#\nOut-of-date Apache server\n\n#[OWASP]#\nA9\n\n...",
"created_at": "2016-06-08T05:53:52.703Z",
"updated_at": "2016-06-08T05:53:52.703Z"
}
Issue.all.each do |issue|
puts "- #{issue.title}"
end
node = Node.find(123)
puts "#{node.label} has #{attachments.count} attachments."
Issue.last.evidence.create! node: node, content: "..."
Web interface:
Console interface:
irb> Issue.count
32
irb> Issue.first.title
"Out-of-date Apache"
git
git
$ mkdir dradis && cd dradis/
$ git clone https://github.com/dradis/dradis-ce
$ cd dradis-ce/
$ ./bin/setup
$ ./bin/rails server