Advertisement
This is comment for paste
NImp Overwriting Virus - Source Code
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NImp is a overwriting virus written in C++. The name NImp stands for "No import table", because it's executable has no import table. The virus resolves all need functions by hashes.
- The virus will search for files in user profile. If the file is executable file, the virus will infect by overwriting the file with the virus. Otherwise, the virus will overwrite the file with a string.
- How the virus works
- 1) The virus get the address of PEB.
- 2) The virus read the loader data from PEB to get the base address of kernel32 and ntdll.
- 3) The virus resolves all needed functions by hashes.
- 4) The virus search for files in user profile.
- 5) If the file is executable file, the virus will infect it by overwriting the file with the virus. Otherwise, the virus will overwrite the file with a string.
- 6) After searching all files, the virus calls RtlAdjustPrivilege to enable SeShutdownPrivilege, and then calls NtRaiseHardError to crash the operating system.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement