https://github.com/youben11/silvio-text-infect
Implementation of Silvio Cesare text infection technic
https://github.com/youben11/silvio-text-infect
c elf virus
Last synced: 11 months ago
JSON representation
Implementation of Silvio Cesare text infection technic
- Host: GitHub
- URL: https://github.com/youben11/silvio-text-infect
- Owner: youben11
- License: gpl-3.0
- Created: 2018-01-05T10:44:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-05T20:16:55.000Z (over 8 years ago)
- Last Synced: 2025-03-29T04:12:12.565Z (over 1 year ago)
- Topics: c, elf, virus
- Language: C
- Size: 17.6 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Silvio Text Infectction Technic
Implementation of Silvio Cesare text infection technic.
Current implementation is for infecting ELF64 files.
# Important
You should not use it for creating small viruses but only to know how this technic works.
# Algorithm
1- Increase the section header offset by PAGE_SIZE in the ELF file header.
2- Locate the text segment program header:
- Modify the entry point to the parasite location.
- Increase file size and memory size in the text segment program header by the size of the parasite.
3- For each program header whose segment is after the parasite, increase it's offset by PAGE_SIZE.
4- Find the last section header in the text segment and increase it's size by the length of the parasite.
5- For every section header that exists after the parasite insertion, increase it's offset by PAGE_SIZE.
6- Insert the parasite code into the text segment.