Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

improvement #1

Closed
simonk9 opened this issue Nov 11, 2015 · 0 comments
Closed

improvement #1

simonk9 opened this issue Nov 11, 2015 · 0 comments

Comments

@simonk9
Copy link

simonk9 commented Nov 11, 2015

Hi, i found this repo by mistake while trying to see how i can add something to my cuckoo, i must admit i don’t know how i lived without DSON before :)

Anyway i went on to add that reporting module, and it worked, except i couldn’t see it in the cuckoo web UI under download reports section.

I'm not a hardcore developer, that is why i looked for already existing custom reporting module, to see how it is done, and since this didn’t work as i expected i had to scratch my head a bit to see how cuckoo code works so it could have been added, as i didn’t see it documented anywhere else.

So, to the point, need to edit 2 files in order it to show in the web ui for download:

  1. web/templates/analysis/reports/index.html
    add the following:
  {% if config.dogeon %}
   <tr>
     <th>DSON Report (Much Report, So Wow)</th>
       <td style="text-align: right;"><a class="btn btn-primary btn-small" href="{% url "analysis.views.filereport" analysis.info.id "doge" %}">Download</a></td>
   </tr>
 {% endif %}
  1. web/analysis/views.py
    add the following like to this function
    def filereport(request, task_id, category):
   "doge": "report.doge",

Doge On !

@simonk9 simonk9 closed this as completed Nov 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant