Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/decrypt_kernel
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ lzss_offset=$(python3 ./get_lzss_section_offset.py "$kernelcache_decrypted")

debug "Unpacking kernelcache file $kernelcache_decrypted (offet $lzss_offset) to $kernelcache ..."
debug "$LZSSDEC -o $lzss_offset < $kernelcache_decrypted > $kernelcache"
$LZSSDEC -o "$lzss_offset" < "$kernelcache_decrypted" > "$kernelcache" 2> /dev/null

# $LZSSDEC -o "$lzss_offset" < "$kernelcache_decrypted" > "tmp" 2> /dev/null
docker run -i ghcr.io/malus-security/lzssdec:latest -o "$lzss_offset" < "$kernelcache_decrypted" > "$kernelcache" 2> /dev/null

warn_if_error
13 changes: 13 additions & 0 deletions tools/lzssdec/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM debian:latest

RUN apt update && apt upgrade -y

RUN apt install -y git build-essential
Comment on lines +3 to +5

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RUN apt update && apt upgrade -y
RUN apt install -y git build-essential
RUN apt update && apt upgrade -y && apt install -y git build-essential


RUN git clone https://github.com/malus-security/iextractor.git

WORKDIR /iextractor/tools/lzssdec

RUN make

ENTRYPOINT [ "/iextractor/tools/lzssdec/lzssdec" ]