Automating Risu report dumping

Here is a small bash script to automate Risu reporting. It’s not the most elegant thing out there, but it gets the job done. You will have to make Risu config file beforehand and put it in the same folder with this script and all the Nessus scans you’ve got. The script will pipe all the scans into Risu, create pdf reports for you and dump them into the same folder.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# perhaps you will have to set custom Risu path
#risu="/var/lib/gems/1.9.1/bin/risu"
nessus_logs=()

$risu --create-tables

for file in $(ls *.nessus);
do
   nessus_logs=("${nessus_logs[@]}" $file)
done

$risu ${nessus_logs[@]}
echo -e "\n"

echo "Dumping findings_summary.pdf"
$risu -t findings_summary -o "findings_summary.pdf"

echo "Dumping findings_summary_with_pluginid.pdf"
$risu -t findings_summary_with_pluginid -o "findings_summary_with_pluginid.pdf"

echo "Dumping exec_summary.pdf"
$risu -t exec_summary -o "exec_summary.pdf"

echo "Dumping cover_sheet.pdf"
$risu -t cover_sheet -o "cover_sheet.pdf"

echo "Dumping pci_compliance.pdf"
$risu -t pci_compliance -o "pci_compliance.pdf"

echo "Dumping ms_update_summary.pdf"
$risu -t ms_update_summary -o "ms_update_summary.pdf"

echo "Dumping graphs.pdf"
$risu -t graphs -o "graphs.pdf"

echo "Dumping technical_findings.pdf"
$risu -t technical_findings -o "technical_findings.pdf"

echo "Dumping finding_statistics.pdf"
$risu -t finding_statistics -o "finding_statistics.pdf"

echo "Dumping assets.pdf"
$risu -t assets -o "assets.pdf"

echo "Dumping exec_summary_detailed.pdf"
$risu -t exec_summary_detailed -o "exec_summary_detailed.pdf"

echo "Dumping host_summary.pdf"
$risu -t host_summary -o "host_summary.pdf"

echo "Dumping findings_host.pdf"
$risu -t findings_host -o "findings_host.pdf"

echo "Dumping ms_patch_summary.pdf"
$risu -t ms_patch_summary -o "ms_patch_summary.pdf"

echo "Dumping template.pdf"
$risu -t template -o "template.pdf"

echo -e "\n"
$risu --drop-tables