Execute EXE from memory Lib

Developed or developing a new product in PureBasic? Tell the world about it.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

I've written a small EXE packer :D. Thanks again Maxus.

FShrink ->FShrink.exe
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

DAMN you are too fast :D
Just polishing mine ;)

Now i better add some protection options.. Otherwise it isnt something new :)
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

:lol: 8) When it's ready, post it please! Maybe we can do something actually cool. If you're using pb's compression lib, did you have any problems with the setpackercallback() procedure? I got here an 'Invalid mem access' :? .

[Edit]
Yeah, some protection would be cool too :D.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

I suspect normal exe files to be small, and i write a "Compressing..." message, so i hope most people will wait :)

Anyway i just made a console proggie for now, also with the protection..
Lets see how it goes :) When its done, perhaps we can make a simple crackme and add the protection and then test it..
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Yes, that's not a bad idea... BTW, here are the sources for mine... (Just for reference :D)

FShrink Sources->FShrink.zip
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Thanks :)
We should work together making a protector if you'd like :)
Last edited by thefool on Wed Jun 21, 2006 11:14 pm, edited 1 time in total.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Of course! I can make a nice async encryption routine (and fast too).
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Exactly.. And i know some things too :)
It could be an interesting project.. Do you have msn? could you PM me?
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Nope, but I use Ym. Or we can talk via PM's :D.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
Maxus
User
User
Posts: 71
Joined: Thu Feb 16, 2006 9:35 am
Location: Russia
Contact:

Post by Maxus »

Unfortunately longer any changes I can not make. I have lost an initial code.
All changes made 010Editor.

And so at all it is started???
Sorry my English, I'm Russian
AMT Laboratory
Phoenix
Enthusiast
Enthusiast
Posts: 141
Joined: Sun Sep 04, 2005 2:25 am

Re: Execute EXE from memory Lib

Post by Phoenix »

I adapted it to work like this on WindowsXP but it doesn't work on Windows98....???? Still, it's a good lib you made for WindowsXP at least (and maybe Windows2000)!!!! But did you say you lost the source????

Code: Select all

ExeLength=4096; Length of ExeFile for IncludeBinary command.
*Buffer=AllocateMemory(ExeLength)
CopyMemory(?ExeFile,*Buffer,ExeLength)
ExecuteEXE(*Buffer)
;
End
;
DataSection
ExeFile: IncludeBinary "C:\TestApp.exe"
EndDataSection
User avatar
Maxus
User
User
Posts: 71
Joined: Thu Feb 16, 2006 9:35 am
Location: Russia
Contact:

Post by Maxus »

Maybe that:

Code: Select all

ExecuteEXE(?ExeFile) 
End 
DataSection 
ExeFile: IncludeBinary "C:\WINNT\Notepad.exe" 
EndDataSection 
I now install VMware and I shall check up on Window98.
Sorry my English, I'm Russian
AMT Laboratory
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

How many lines were the lib on?
Are there _any_ chance you could program it again?
User avatar
Maxus
User
User
Posts: 71
Joined: Thu Feb 16, 2006 9:35 am
Location: Russia
Contact:

Post by Maxus »

Yes I already restore an source code.
Sorry my English, I'm Russian
AMT Laboratory
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

cool :D
Post Reply