This file contains hidden or 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 code will hook the IAT by overwriting the function pointer of Sleep() imported from Kernel32.dll | |
It can be modified to hook any other function in the IAT | |
*/ | |
#include <stdio.h> | |
#include <windows.h> | |
void spoofedfunction(DWORD); |
This file contains hidden or 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
; decryption routine for Stage 1 of the custom packer used in Win32/Injector virus | |
; c0d3inj3cT | |
include \masm32\include\masm32rt.inc | |
.data | |
Message db "decryption stage1 completed!",0 | |
.code |
This file contains hidden or 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 code can be used to test the code injection in a remote process | |
The CPU usage will be at its peak after running this code | |
as a result of injecting the bytes, 0xeb, 0xfe into the remote process | |
If you get a high CPU usage for the remote process, you have successfully | |
injected the code. You can also confirm it by attaching a debugger to the | |
remote process and setting a breakpoint at the return address of VirtualAllocEx() | |
c0d3inj3cT | |
*/ |
This file contains hidden or 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
#include <stdio.h> | |
#include <windows.h> | |
#include <psapi.h> | |
// Compile this code using: cl /TC rop.c /link psapi.lib | |
int main(int argc, char **argv) | |
{ | |
FILE *fp; | |
FILE *rop; |
NewerOlder