Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WyAtu/CVE-2018-20250
/ functions
Functions
230 in github.com/WyAtu/CVE-2018-20250
⨍
Functions
230
◇
Types & classes
42
↓ 52 callers
Method
append
(self, dist)
acefile.py:1393
↓ 42 callers
Function
eprint
Print to stderr.
acefile.py:127
↓ 18 callers
Method
read
Read a block of PIC compressed data from BitStream *bs*. Reading will stop when *want_size* output bytes can be provided, or
acefile.py:2059
↓ 17 callers
Method
read_bits
Read *bits* bits from bitstream and increment position accordingly. The pure-python implementation supports reading arbitrarily many
acefile.py:1081
↓ 16 callers
Method
flag
(self, flag)
acefile.py:2465
↓ 15 callers
Method
seek
(self, offset, whence=0)
acefile.py:294
↓ 14 callers
Method
extend
Append output bytes *buf* to dictionary.
acefile.py:1438
↓ 9 callers
Function
c_uchar
Convert arbitrary integer to c unsigned char type range as if casted in c. >>> c_uchar(0x12345678) 120 >>> (c_uchar(-123), c_uchar(-
acefile.py:187
↓ 8 callers
Function
c_rot32
Rotate *i* left by *n* bits within the uint32 value range. >>> c_rot32(0xF0000000, 4) 15 >>> c_rot32(0xF0, -4) 15
acefile.py:198
↓ 7 callers
Function
c_add32
Add *a* and *b* within the uint32 value range. >>> c_add32(0xFFFFFFFF, 1) 0 >>> c_add32(0xFFFFFFFF, 0xFFFFFFFF) 4294967294
acefile.py:211
↓ 7 callers
Method
getmembers
Return a list of :class:`AceMember` objects for the members of the archive. The objects are in the same order as they are in
acefile.py:3419
↓ 7 callers
Method
is_enc
True iff :class:`AceMember` instance describes an encrypted archive member.
acefile.py:2779
↓ 7 callers
Method
is_multivolume
(self)
acefile.py:3183
↓ 7 callers
Method
tell
(self)
acefile.py:291
↓ 6 callers
Method
is_solid
(self)
acefile.py:3186
↓ 6 callers
Method
read_symbol
Read a single Huffman symbol from BitStream *bs* by peeking the maximum code length in bits from the bit stream, looking up t
acefile.py:1181
↓ 5 callers
Method
is_dir
True iff :class:`AceMember` instance describes a directory.
acefile.py:2773
↓ 5 callers
Method
test
Test an archive member. Returns False if any corruption was found, True if the header and decompression was okay. *Member* c
acefile.py:3639
↓ 4 callers
Method
_bf_func
The blowfish round function operating on an integer.
acefile.py:798
↓ 4 callers
Function
_dt_fromdos
Convert DOS format 32bit timestamp to datetime object. Timestamps with illegal values out of the allowed range are ignored and a datetime
acefile.py:134
↓ 4 callers
Function
asciibox
Returns message string *msg* wrapped in a plain ASCII box. If *title* is given, add *title* in the top horizontal bar. Lines will be padd
acefile.py:233
↓ 4 callers
Function
c_sum32
Add all elements of *args* within the uint32 value range. >>> c_sum32(0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF) 4294967293
acefile.py:222
↓ 4 callers
Method
read_from
(cls, bs)
acefile.py:1140
↓ 4 callers
Method
read_tree
Read a Huffman tree consisting of codes and their widths from BitStream *bs*. The caller specifies the maximum width of a single
acefile.py:1287
↓ 4 callers
Method
reinit
Reinitialize the PIC decompression engine. Read width and planes from BitStream *bs* and reset all data dependent state to in
acefile.py:2010
↓ 3 callers
Method
_parse_header
Parse a single header from self.__file at the current file position. Raises CorruptedArchiveError if the header cannot be parsed.
acefile.py:3044
↓ 3 callers
Method
_refill
Refill the internal buffer with data read from file.
acefile.py:1022
↓ 3 callers
Method
_tell
Returns the current absolute position in the file and asserts that it lies within the defined file segment.
acefile.py:282
↓ 3 callers
Function
ace_crc16
Return the ACE CRC-16 checksum of the bytes in *buf*. >>> ace_crc16(b"123456789") 50905
acefile.py:957
↓ 3 callers
Function
c_schar
Convert arbitrary integer to c signed char type range as if casted in c. >>> c_schar(0x12345678) 120 >>> (c_schar(-128), c_schar(-12
acefile.py:176
↓ 3 callers
Method
close
Close the underlying file object for this volume. Can safely be called multiple times.
acefile.py:2939
↓ 3 callers
Method
dic_register
Register bytes in *buf* produced by other decompression modes into the LZ77 dictionary.
acefile.py:1521
↓ 3 callers
Method
dic_setsize
Set the required dictionary size for the next LZ77 decompression run.
acefile.py:1515
↓ 3 callers
Method
dumpheaders
Dump ACE headers in this archive volume to *file*.
acefile.py:2948
↓ 3 callers
Function
get_file_content
(filename)
exp.py:72
↓ 3 callers
Method
getmember
Return an :class:`AceMember` object corresponding to archive member *member*. Raise :class:`KeyError` or :class:`IndexError`
acefile.py:3399
↓ 3 callers
Function
hex2raw4
(hex_value)
exp.py:62
↓ 3 callers
Method
is_solid
Return True iff archive is a solid archive, i.e. iff the archive members are linked to each other by sharing the same LZ77 dictionary
acefile.py:3713
↓ 3 callers
Method
read_golomb_rice
Read a Golomb-Rice code with *r_bits* remainder bits and an arbitrary number of quotient bits from bitstream and return the represent
acefile.py:1091
↓ 3 callers
Method
readblocks
Read the archive member by yielding blocks of decompressed bytes. *Member* can refer to an :class:`AceMember` object, a member name o
acefile.py:3554
↓ 3 callers
Method
seekable
(self)
acefile.py:279
↓ 2 callers
Method
__init__
(self)
acefile.py:2007
↓ 2 callers
Method
__str__
(self)
acefile.py:2454
↓ 2 callers
Method
_bf_encrypt_block
Encrypt a single block consisting of integers *l* and *r*.
acefile.py:805
↓ 2 callers
Method
_format_bitfield
(strings, field)
acefile.py:2437
↓ 2 callers
Method
_get_predicted_sample
(self)
acefile.py:1754
↓ 2 callers
Method
_getbits
Return *length* bits from byte *value*, starting at position *start*. Behaviour is undefined for start < 0, length < 0 or start + len
acefile.py:1003
↓ 2 callers
Method
_make_tree
Calculate the list of Huffman codes corresponding to the symbols implicitly described by the list of *widths* and maximal width
acefile.py:1252
↓ 2 callers
Method
_predict
With X being the current position, the predictors use the pixels above (A), to the left (B) and in the corner (C):
acefile.py:1924
↓ 2 callers
Method
_read_trees
Read the Huffman trees as well as the blocksize from BitStream *bs*; essentially this starts reading into a next block of sym
acefile.py:1346
↓ 2 callers
Method
_truncate
(self)
acefile.py:1480
↓ 2 callers
Function
build_file
(shellcode, filename)
exp.py:92
↓ 2 callers
Function
build_file_once
(filename, target_filename="")
exp.py:100
↓ 2 callers
Method
close
Close the archive and all open files. No other methods may be called after having called :meth:`AceArchive.close`, but callin
acefile.py:3361
↓ 2 callers
Method
crc32
ACE CRC-32 checksum of decompressed data as recorded in the archive, as :class:`int`. ACE CRC-32 is the bitwise inverse of st
acefile.py:2832
↓ 2 callers
Method
datetime
Timestamp as recorded in the archive, as :class:`datetime.datetime` instance.
acefile.py:2841
↓ 2 callers
Method
decompress_comment
Decompress an ACE MAIN or FILE comment from bytes *buf* and return the decompressed bytes.
acefile.py:2111
↓ 2 callers
Method
extract
Extract an archive member to *path* or the current working directory. *Member* can refer to an :class:`AceMember` object, a member na
acefile.py:3441
↓ 2 callers
Method
getnames
Return a list of the (file)names of all the members in the archive in the order they are in the archive.
acefile.py:3431
↓ 2 callers
Function
hex2raw8
(hex_value)
exp.py:67
↓ 2 callers
Method
is_locked
(self)
acefile.py:3180
↓ 2 callers
Method
peek_bits
Peek at next *bits* bits in the stream without incrementing position. A maximum of 31 bits beyond the end of the input file data are
acefile.py:1051
↓ 2 callers
Method
read_len_symbol
Read a length symbol from BitStream *bs*.
acefile.py:1366
↓ 2 callers
Method
skip_bits
Skip *bits* bits in the stream. Raise EOFError when skipping beyond the end of the input file data. The pure-python implement
acefile.py:1040
↓ 2 callers
Method
update_pixel_d
(self, thisplane_d, refplane_d)
acefile.py:1977
↓ 1 callers
Method
_bf_decrypt_block
Decrypt a single block consisting of integers *l* and *r*.
acefile.py:818
↓ 1 callers
Method
_bf_init
Initialize blowfish state using 160-bit key *key* as list or tuple of integers.
acefile.py:776
↓ 1 callers
Method
_derive_key
Derive the decryption key from password bytes *pwd* using a single application of SHA-1 using non-standard padding. The password is
acefile.py:731
↓ 1 callers
Method
_get_symbol
Get next symbol from BitStream *bs*.
acefile.py:1658
↓ 1 callers
Method
_getmember_byidx
Return an :class:`AceMember` object corresponding to archive member index *idx*. Raise :class:`IndexError` if *idx* is not pr
acefile.py:3391
↓ 1 callers
Method
_getmember_byname
Return an :class:`AceMember` object corresponding to archive member name *name*. Raise :class:`KeyError` if *name* is not pre
acefile.py:3375
↓ 1 callers
Method
_next_filename
Derive the filename of the next volume after this one. If the filename ends in ``.[cC]XX``, XX is incremented by 1. Otherwise
acefile.py:2972
↓ 1 callers
Method
_parse_headers
Parse ACE headers from self.__file. If *search* is > 0, search for the magic bytes in the first *search* bytes of the file.
acefile.py:3005
↓ 1 callers
Method
_quicksort
In-place quicksort of lists *keys* and *values* in descending order of *keys*. Python uses a stable sorting algorithm, while the
acefile.py:1197
↓ 1 callers
Method
_row
Decompress a row of pixels.
acefile.py:2024
↓ 1 callers
Method
_sanitize_filename
Decode and sanitize filename for security and platform independence. Returns either a sanitized relative path, or an empty string.
acefile.py:2693
↓ 1 callers
Function
ace_crc32
(buf)
exp.py:41
↓ 1 callers
Function
build_file_add
(shellcode, filename)
exp.py:96
↓ 1 callers
Function
c_div
Arbitrary signed integer division with c behaviour. >>> (c_div(10, 3), c_div(-10, -3), c_div(-10, 3), c_div(10, -3)) (3, 3, -3, -3)
acefile.py:162
↓ 1 callers
Method
copy
Copy *n* previously produced output bytes to end of dictionary, starting from position *dist* away from the end.
acefile.py:1444
↓ 1 callers
Method
copyin
Copy output bytes produced by other decompression methods from *buf* into dictionary. This operation may cause the
acefile.py:1456
↓ 1 callers
Method
copyout
Return copy of last *n* appended output bytes for handing them to the caller. This operation may cause the dictionary to shr
acefile.py:1466
↓ 1 callers
Method
decrypt
Decrypt a buffer of complete blocks, i.e. of length that is a multiple of the block size returned by the blocksize property.
acefile.py:831
↓ 1 callers
Method
file_segment_for
Returns a :class:`FileSegmentIO` object for the file header *fhdr* belonging to this volume.
acefile.py:2964
↓ 1 callers
Method
get
Get next sample, reading from BitStream *bs* if necessary.
acefile.py:1668
↓ 1 callers
Function
get_ace_crc32
(filename)
exp.py:44
↓ 1 callers
Method
get_context
Calculate the error context to use based on the differences between the neighbouring pixels D-A, A-C and C-B:
acefile.py:1911
↓ 1 callers
Method
get_file_headers
(self)
acefile.py:3177
↓ 1 callers
Function
get_right_hdr_crc
(filename)
exp.py:48
↓ 1 callers
Method
is_multivolume
Return True iff archive is a multi-volume archive as determined by the archive headers. When opening the last volume of a mu
acefile.py:3704
↓ 1 callers
Function
make_shellcode
(filename, target_filename)
exp.py:76
↓ 1 callers
Method
mode_str
(mode)
acefile.py:2104
↓ 1 callers
Function
modify_hdr_crc
(shellcode, filename)
exp.py:57
↓ 1 callers
Method
produce
(self, refplane_x)
acefile.py:1980
↓ 1 callers
Method
rar_adjust
(self, sample)
acefile.py:1710
↓ 1 callers
Method
rar_predict
(self)
acefile.py:1704
↓ 1 callers
Method
read_knownwidth_uint
Read an unsigned integer with previously known bit width *bits* from stream. The most significant bit is not encoded in the bit stre
acefile.py:1112
↓ 1 callers
Method
read_main_symbol
Read a main symbol from BitStream *bs*.
acefile.py:1357
↓ 1 callers
Method
retrieve
(self, offset)
acefile.py:1397
↓ 1 callers
Method
set_size
Set expected dictionary size for next decompression run.
acefile.py:1426
next →
1–100 of 230, ranked by callers