Pages

Subscribe:
Showing posts with label security. Show all posts
Showing posts with label security. Show all posts

December 23, 2011

Join 2 executable files on one (II of IV)


Following the tutorials about attach some files with others, and we started with this, we continue with a much more easy to use, and above all, much more powerful.
This time use IExpress, a utility that comes by default in Windows, though hidden, and that very few people know. The main use of this wizard is to create self-extracting archives and self-installable. And that is what we create. Before opening the program, we will choose to join the 2 executables. For this example we will use calc.exe (calculator) and virus.exe (not a real virus, is a file with that name that contains nothing. Every one can use the files you want under your responsibility).
To start, go to Start, open the run menu and type IExpress. A wizard will launch. On the first screen, choose Create new Self Extraction Directive file, since we want to do is create a new one, and click Next.

Here we ask what we want to make the executable created: run 2 or more files in the installation, just extract the files or just create compressed files. For this practice we choose the first option.

On the third screen will give a name to the installation package. We write Calculator.

December 9, 2011

ALTERNATE DATA STREAMS, or how to hide a file inside another file

We start talking about what is and how it works. Essentially, the "Alternate Data Streams" (ADS) are files within another file. You can think of a file as an ordered sequence of bytes accessed by a name. In NTFS System (New Technology File System) this is the data stream that comes from opening the file normally. However, NTFS has the ability to save alternative flows next to the main data by specifying a name for themselves.
Now let's do a simple test. To begin, go to command prompt and run the following commands:

Echo text1> file.txt
Echo text2> final.txt
(Create 2 files with the given text)

Type final.txt> file.txt: final.txt
(The file file.txt contains the file final.txt)

More <file.txt: final.txt
(We see the contents of final.txt)