Skip to content

Commit

Permalink
fix unescaped address text
Browse files Browse the repository at this point in the history
  • Loading branch information
ashariyar committed Oct 11, 2022
1 parent cbee55d commit b56bf23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# NEXT RELEASE

# 1.10.3
# 1.10.4
* Fix bug with unescaped string in section header

### 1.10.3
* Fix bug with discovery of packaged `.yara` files
* More PDF YARA rules from `lprat`

Expand Down
3 changes: 2 additions & 1 deletion pdfalyzer/pdfalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from PyPDF2 import PdfReader
from PyPDF2.errors import PdfReadError
from PyPDF2.generic import IndirectObject, NameObject, NumberObject, StreamObject
from rich.markup import escape
from rich.panel import Panel
from rich.table import Column, Table
from rich.text import Text
Expand Down Expand Up @@ -187,7 +188,7 @@ def print_streams_analysis(self, idnum: Optional[int] = None) -> None:
log.warning(msg)
node_stream_bytes = node_stream_bytes.encode()

print_section_subheader(f"{node} Summary and Analysis", style=f"{BYTES_HIGHLIGHT} reverse")
print_section_subheader(f"{escape(str(node))} Summary and Analysis", style=f"{BYTES_HIGHLIGHT} reverse")
binary_scanner = BinaryScanner(node_stream_bytes, node)
console.print(bytes_hashes_table(binary_scanner.bytes))
binary_scanner.print_stream_preview()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pdfalyzer"
version = "1.10.3"
version = "1.10.4"
description = "A PDF analysis toolkit. Scan a PDF with relevant YARA rules, visualize its inner tree-like data structure in living color (lots of colors), force decodes of suspicious font binaries, and more."
authors = ["Michel de Cryptadamus <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down

0 comments on commit b56bf23

Please sign in to comment.