A polymorphic Virus for Elf64 binaries
This might trigger your anti-virus, which is normal. Use at your own risk!
# clone it
git clone https://github.com/spolowy/War.git && cd War
# build it and run it
make && ./war
# remove installation files
cd .. && rm -rf War
Play around with the colourful debug mode!
# to build it in debug mode
make debug
Test or benchmark the virus polymorphism with:
# wander into tests directory
cd tests
# run tests or benchmark (with optional debug arg)
./test.bash
./vimdiff.bash
- Featuring a generated polymorphic loader
- And a virus body encrypted with a polymorphic seed
Infected program memory overview
================================
. .
| ... |
p_offset -> |========| PT_LOAD - relative_pt_load_address
| ... | ^
| ... | |
sh_offset -> |--------| |
| | ... | |
V | ... | |
offset_in_section - |>>>>>>>>| entry |- relative_entry_address
| ... | |^
|--------| ||
| ... | ||
| ... | ||
end_of_last_section -> |--------| - - - -- - - - - - -
@loader_entry -> |@@@@@@@@| | |
|@ @| | |
|@ @| | |
|@@@@@@@@| V |
encrypted @virus -> |~~~~~~~~| - relative_virus_addresss |
|########| | |
|########| | |
|########| | |
|########| V V
@_start (placeholder) -> |~~~~~~~~| - virus_size - payload_size
| ... |
| ... |
|========|
| ... |
. .