Some C code for writing PE Viruses.
Go to file
eisbaer 5b54291b73 Fixed the README.md 2023-02-06 12:32:06 +01:00
pic-peter initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
LICENSE forgot the license 2022-04-28 16:02:11 +02:00
README.md Fixed the README.md 2023-02-06 12:32:06 +01:00
aaa.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
aaa.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
export.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
export.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
infect.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
infect.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
main.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
make_write.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
pe.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
peb.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
peb.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
stdfuncs.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
stdfuncs.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
stub.asm initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
test.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
virus.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
virus.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
winfuncs.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
zzz.c initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00
zzz.h initial commit. I dind't work on this project for a while now but as far as I remember everything works pretty good ;) 2022-04-27 13:26:38 +02:00

README.md

This is my virus writing framework. Everything is position independent. (that's why strings are so stangely formated ;) ) You can load it everywhere in memory and still call stdlib or winapi functions and all the other functions like infect_devices() and so on.

To compile it use the following order of source files: gcc aaa.c main.c rest zzz.c

The compiling process is a bit hacky because we need to make gcc put the start() function at the beginning of the .code segment and the end() function at the end of the code segment. That way we can calculate the virus size while executing and don't have to use a hard coded size. A second advantage is the above mentioned position independence of the virus resulting from that.

peb.c calculates the address of the kernelDll in memory export.c and stdfuncs.c are used to get the addresses of winapi and stdc functions. infect.c and virus.c do what the names make you expect. the pic-peter folder is the PEter library in pic.

This code is not a ready to compile virus but rather some c code for virus exchangers/writers to look at and take ideas from.