Skip to content

Commit d0c52b3

Browse files
committed
Fix san report
1 parent 92137c7 commit d0c52b3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

aisploit/scanner/templates/report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ No issues!
1313
| Prompt | Converter | Response | RTT (seconds) |
1414
|--------|-----------|----------|---------------|
1515
{% for issue in issues -%}
16-
|{{ issue.send_report_entry.prompt }}|{{ issue.send_report_entry.converter }}|{{ issue.send_report_entry.response }}| {{ issue.send_report_entry.round_trip_time }} |
16+
|{{ 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 }} |
1717
{% endfor %}
1818
{% endfor %}
1919
{% endif %}

aisploit/sender/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _send_prompt(
5353
self, prompt: BasePromptValue, converter: Optional[BaseConverter] = None
5454
) -> SendReportEntry:
5555
start_time = datetime.now()
56-
response = self._target.send_prompt(prompt)
56+
response = self._target.send_prompt(prompt).strip()
5757
end_time = datetime.now()
5858

5959
return SendReportEntry(

0 commit comments

Comments
 (0)