Problem with files

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Problem with files

Post by koleviko » Mon Jun 07, 2010 3:18 pm

I'm trying to merge two files (exe) into one, but it's not working!? :(
The first file is:
Info.exe

Code: Select all


// Info.exe
MessageModal>The launch of these binaries are not allowed in the computer lab.%crlf%%crlf%For more information,contact administrator !
The second file is:
uTorrent.exe

And some other files + Info.exe

I tried with the command AppendFile> but not receive
:(
How to do this??? :roll:

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon Jun 07, 2010 4:06 pm

Not sure what you are trying to accomplish here.

It's not possible to simply combine 2 executable files and have them still execute - all you will do is corrupt them.

If you want to replace the executable file "uTorrent.exe" with your new compiled Info.exe which simply displays a message, then you can just use the Operating System command copy like so:

copy info.exe uTorrent.exe
copy info.exe anyOtherBanned EXE.exe
copy info.exe YetAnotherBannedEXE.exe

now when someone tries to execute "uTorrent.exe" they are actually executing your program which displays the message.

koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Post by koleviko » Mon Jun 07, 2010 4:59 pm

So the file is damaged. :oops:

I want to working two files , but before start utorent.exe to show message.

To do something like joining 2 exe :shock:

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon Jun 07, 2010 5:16 pm

Okay you rename your target file to something obscure like this:

Ren uTorrent.exe ThisIsMySecretuTorrent.exe


Then you compile a Macro Scheduler Script into an exe and name it uTorrent.exe.

------------------------
//uTorrent.exe
MessageModal>The launch of these binaries are not allowed in the computer lab.%crlf%%crlf%For more information,contact administrator !

Run>ThisIsMySecretuTorrent.exe
---------------------------------------------


So what happens when the user executes uTorrent.exe is that they see the message, and then the real executable is allowed to run anyway.

koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Post by koleviko » Mon Jun 07, 2010 5:52 pm

This is not a solution which suits me.

I'm interested in how to join two files into one , and then the message file to launch the program.

I have many files to do

adroege
Automation Wizard
Posts: 438
Joined: Tue Dec 07, 2004 7:39 pm

Post by adroege » Mon Jun 07, 2010 6:29 pm

I believe you will need some very specialized software to accomplish what you are after. Here is a link you might find useful. It is software which will alter any exe to provide password protection

http://www.eltima.com/products/exe-password/


This technique is not easily duplicated using general purpose programming languages. Extensive knowledge of the EXE file structure and assembly language programming would probably be helpful.

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Post by gdyvig » Mon Jun 07, 2010 8:13 pm

Hi kkoleviko,

Is the ExportData command what you are looking for?

It will let you combine several dll, exe, bmp, and other files into a single compiled script you can ship. However it will export these back into separate files at the target site.


Gale

koleviko
Junior Coder
Posts: 45
Joined: Thu Nov 20, 2008 2:59 pm

Post by koleviko » Mon Jun 07, 2010 11:03 pm

Is the ExportData command what you are looking for?

HI gdyvig
I knew nothing of this example. :cry:

Example
ExportData>CALC.DLL_DATA,%SCRIPT_DIR%\calc.dll
CALC.DLL_DATA:
4D5A50000200000004000F00FFFF0000B80000000000000...

Can an example of how to connect my Macro script with uTorent.exe :?

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Post by gdyvig » Tue Jun 08, 2010 2:52 am

Here is some more information:

http://www.mjtnet.com/blog/2008/10/06/p ... your-exes/

Find the link by Dick Lockey for the Macro Scheduler method.

The basic steps are:

1. Use the menu item Tools;Import Data to convert each binary file to a text block within your scp script. The text block consists of the location of the file followed by it's content using text. Do this for info.exe and uTorrent.exe.

2. Add the ExportData commands at the top of the script.

3. Compile the script.

4. Run the script at the target site to convert the text blocks into binary files in the specified locations.





Question: Is uTorrent.exe a compiled Macro Scheduler script?


(I edited the original post, increased number of steps from 3 to 4.)

Gale.

[/code]

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts