Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] Expanding A EXE's Size.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
nog_lorp
Grandmaster Cheater
Reputation: 0

Joined: 26 Feb 2006
Posts: 743

PostPosted: Tue Nov 18, 2008 2:51 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Tue Nov 18, 2008 5:44 pm    Post subject: Reply with quote

pkedpker wrote:
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.
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Tue Nov 18, 2008 9:12 pm    Post subject: Reply with quote

I guess not dnsi.

but nog_lorp idea seems best.. create a bytes of crap by adding a useless method into ur program.

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites