Perhaps something like
[code]void CodeCave() {
return;
__asm__ { db 64000 dup(0) };
} _________________
Mutilated lips give a kiss on the wrist of the worm-like tips of tentacles expanding in my mind
I'm fine accepting only fresh brine you can get another drop of this yeah you wish
adding a bunch of nops at the end of the program should make the size bigger without messing up the program..
so just get a file to load up in ur C++ program as binary then get filesize of it and filesize +1 +2 +3 etc.. how big you want to make it +1024 would add around 1KB and keep adding 0x90 using strcat() and fputs() or something
but u dont have to get filesize etc.. if you open the file in append mode so it will end bytes to end anyways..
something like
Code:
int count = 0;
FILE* file;
char buffer[5000];
file = fopen ("smallvirus.exe","ab"); //b for binary i dont think it matters
buffer[0] = 0x90
for(int i=0;i<1024;i++) {
strcat(buffer, 90);
count++;
}
buffer[count] = '\0';
fputs (buffer,file);
fclose (file);
but i dont know if it will work might be different things in the header that gotta be changed as well..
Just putting code at the end doesn't help. You have to modify the header so that it actucally loads the code into memory. So this fails I guess.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum