Skip to content

Commit 121ddfd

Browse files
authored
Merge pull request #3406 from trailofbits/pickle
Adds support for detecting Python pickle serializations
2 parents d008b8e + 2c15413 commit 121ddfd

File tree

141 files changed

+4643
-830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+4643
-830
lines changed

file

Submodule file updated 99 files

kaitai_struct_formats

polyfile/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
http,
88
kaitaimatcher,
99
languagematcher,
10+
pickles,
1011
polyfile
1112
)
1213

polyfile/kaitai/parsers/aix_utmp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AixUtmp(KaitaiStruct):
1414
"""This spec can be used to parse utmp, wtmp and other similar as created by IBM AIX.
1515
1616
.. seealso::
17-
Source - https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.files/utmp.h.htm
17+
Source - https://www.ibm.com/docs/en/aix/7.1?topic=files-utmph-file
1818
"""
1919

2020
class EntryType(Enum):

polyfile/kaitai/parsers/android_dto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AndroidDto(KaitaiStruct):
1919
partition images and decompile them with dtc (device tree compiler).
2020
2121
.. seealso::
22-
Source - https://source.android.com/devices/architecture/dto/partitions
22+
Source - https://source.android.com/docs/core/architecture/dto/partitions
2323
2424
2525
.. seealso::

polyfile/kaitai/parsers/android_img.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class AndroidImg(KaitaiStruct):
1313
"""
1414
.. seealso::
15-
Source - https://source.android.com/devices/bootloader/boot-image-header
15+
Source - https://source.android.com/docs/core/architecture/bootloader/boot-image-header
1616
"""
1717
SEQ_FIELDS = ["magic", "kernel", "ramdisk", "second", "tags_load", "page_size", "header_version", "os_version", "name", "cmdline", "sha", "extra_cmdline", "recovery_dtbo", "boot_header_size", "dtb"]
1818
def __init__(self, _io, _parent=None, _root=None):

polyfile/kaitai/parsers/android_sparse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AndroidSparse(KaitaiStruct):
2626
2727
2828
.. seealso::
29-
Source - https://source.android.com/devices/bootloader/images#sparse-image-format
29+
Source - https://web.archive.org/web/20220322054458/https://source.android.com/devices/bootloader/images#sparse-image-format
3030
"""
3131

3232
class ChunkTypes(Enum):

polyfile/kaitai/parsers/android_super.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AndroidSuper(KaitaiStruct):
1818
device. This metadata holds that mapping.
1919
2020
.. seealso::
21-
Source - https://source.android.com/devices/tech/ota/dynamic_partitions
21+
Source - https://source.android.com/docs/core/ota/dynamic_partitions
2222
2323
2424
.. seealso::

polyfile/kaitai/parsers/asn1_der.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ class Asn1Der(KaitaiStruct):
3131
so typically it's simpler to use a pre-compiled list of them, such
3232
as:
3333
34-
* https://www.cs.auckland.ac.nz/~pgut001/dumpasn1.cfg
35-
* http://oid-info.com/
36-
* https://www.alvestrand.no/objectid/top.html
34+
* <https://www.cs.auckland.ac.nz/~pgut001/dumpasn1.cfg>
35+
* <http://oid-info.com/>
36+
* <https://www.alvestrand.no/objectid/top.html>
3737
3838
.. seealso::
3939
Source - https://www.itu.int/itu-t/recommendations/rec.aspx?rec=12483&lang=en
@@ -152,7 +152,7 @@ def _read(self):
152152
class BodyObjectId(KaitaiStruct):
153153
"""
154154
.. seealso::
155-
Source - https://docs.microsoft.com/en-us/windows/desktop/SecCertEnroll/about-object-identifier
155+
Source - https://learn.microsoft.com/en-us/windows/win32/seccertenroll/about-object-identifier
156156
"""
157157
SEQ_FIELDS = ["first_and_second", "rest"]
158158
def __init__(self, _io, _parent=None, _root=None):

polyfile/kaitai/parsers/au.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ class Au(KaitaiStruct):
1717
1818
* <https://github.com/python/cpython/tree/b8a7daf077da/Lib/test/sndhdrdata>
1919
* <ftp://ftp-ccrma.stanford.edu/pub/Lisp/sf.tar.gz>
20-
* <http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/AU/Samples.html>
20+
* <https://www.mmsp.ece.mcgill.ca/Documents/AudioFormats/AU/Samples.html>
2121
2222
.. seealso::
23-
Source - http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/AU/AU.html
23+
Source - https://www.mmsp.ece.mcgill.ca/Documents/AudioFormats/AU/AU.html
2424
2525
2626
.. seealso::

0 commit comments

Comments
 (0)