-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from TheWover/dev
v1.0 - Cruller
- Loading branch information
Showing
45 changed files
with
6,729 additions
and
7,475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get update | ||
RUN apt-get install --no-install-recommends --no-install-suggests -y \ | ||
mingw-w64 zip build-essential perl python xml2 pkg-config automake \ | ||
libtool autotools-dev make g++ git ruby wget libssl-dev | ||
|
||
WORKDIR /opt | ||
RUN git clone https://github.com/TheWover/donut.git | ||
WORKDIR /opt/donut | ||
RUN make -f Makefile | ||
|
||
WORKDIR /workdir | ||
RUN chmod ugo+wrx /workdir | ||
RUN ls /opt/donut | ||
ENTRYPOINT ["/opt/donut/donut"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
donut: clean | ||
@echo ###### Building exe2h ###### | ||
cl /nologo loader\exe2h\exe2h.c loader\exe2h\mmap-windows.c | ||
|
||
@echo ###### Building loader ###### | ||
cl -DBYPASS_AMSI_B -DBYPASS_WLDP_A -DBYPASS_ETW_B -Zp8 -c -nologo -Gy -Os -O1 -GR- -EHa -Oi -GS- -I include loader\loader.c hash.c encrypt.c loader\depack.c loader\clib.c | ||
link -nologo -order:@loader\order.txt -entry:DonutLoader -fixed -subsystem:console -nodefaultlib loader.obj hash.obj encrypt.obj depack.obj clib.obj | ||
exe2h loader.exe | ||
|
||
@echo ###### Building generator ###### | ||
rc include\donut.rc | ||
cl -Zp8 -DDONUT_EXE -I include donut.c hash.c encrypt.c format.c loader\clib.c lib\aplib32.lib include\donut.res | ||
cl -Zp8 -nologo -DDLL -LD -I include donut.c hash.c encrypt.c format.c loader\clib.c lib\aplib32.lib | ||
move donut.lib lib\donut.lib | ||
move donut.exp lib\donut.exp | ||
move donut.dll lib\donut.dll | ||
|
||
@echo ###### Building injection testing tools ###### | ||
cl -Zp8 -nologo -DTEST -I include loader\inject.c | ||
cl -Zp8 -nologo -DTEST -I include loader\inject_local.c | ||
debug: clean | ||
cl /nologo -DDEBUG -DBYPASS_AMSI_B -DBYPASS_WLDP_A -DBYPASS_ETW_B -Zp8 -c -nologo -Gy -Os -EHa -GS- -I include loader\loader.c hash.c encrypt.c loader\depack.c loader\clib.c | ||
link -nologo -order:@loader\order.txt -subsystem:console loader.obj hash.obj encrypt.obj depack.obj clib.obj | ||
|
||
cl -Zp8 -nologo -DDEBUG -DDONUT_EXE -I include donut.c hash.c encrypt.c format.c loader\clib.c lib\aplib32.lib | ||
cl -Zp8 -nologo -DDEBUG -DDLL -LD -I include donut.c hash.c encrypt.c format.c loader\clib.c lib\aplib32.lib | ||
move donut.lib lib\donut.lib | ||
move donut.exp lib\donut.exp | ||
move donut.dll lib\donut.dll | ||
|
||
cl -Zp8 -nologo -DTEST -I include loader\inject.c | ||
cl -Zp8 -nologo -DTEST -I include loader\inject_local.c | ||
hash: | ||
cl -Zp8 -nologo -DTEST -I include hash.c loader\clib.c | ||
encrypt: | ||
cl -Zp8 -nologo -DTEST -I include encrypt.c | ||
inject: | ||
cl -Zp8 -nologo -DTEST -I include loader\inject.c | ||
inject_local: | ||
cl -Zp8 -nologo -DTEST -I include loader\inject_local.c | ||
clean: | ||
@del /Q mmap-windows.obj donut.obj hash.obj encrypt.obj inject.obj inject_local.obj depack.obj format.obj clib.obj exe2h.exe loader.exe hash.exe encrypt.exe inject.exe inject_local.exe donut.exe lib\donut.lib lib\donut.exp lib\donut.dll include\donut.res |
Oops, something went wrong.