Skip to content

Commit

Permalink
Fix san report
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Apr 10, 2024
1 parent 92137c7 commit d0c52b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aisploit/scanner/templates/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ No issues!
| Prompt | Converter | Response | RTT (seconds) |
|--------|-----------|----------|---------------|
{% for issue in issues -%}
|{{ issue.send_report_entry.prompt }}|{{ issue.send_report_entry.converter }}|{{ issue.send_report_entry.response }}| {{ issue.send_report_entry.round_trip_time }} |
|{{ issue.send_report_entry.prompt }}|{{ issue.send_report_entry.converter }}|{{ issue.send_report_entry.response|replace('\n', '<br>') }}| {{ issue.send_report_entry.round_trip_time }} |
{% endfor %}
{% endfor %}
{% endif %}
2 changes: 1 addition & 1 deletion aisploit/sender/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _send_prompt(
self, prompt: BasePromptValue, converter: Optional[BaseConverter] = None
) -> SendReportEntry:
start_time = datetime.now()
response = self._target.send_prompt(prompt)
response = self._target.send_prompt(prompt).strip()
end_time = datetime.now()

return SendReportEntry(
Expand Down
Loading

0 comments on commit d0c52b3

Please sign in to comment.