Showing posts with label CMD. Show all posts
Showing posts with label CMD. Show all posts
0 Comments »
In the NTFS file system When you create a new file , one unnamed default stream is created to store all data written to the file.Since NTFS file system in Windows 2000 or above supports Alternate Data Streams,you are allowed to create additional streams for text file. All data stored in the addition streams will be hidden and no one will be able to read the data. This may be useful when you would like to hide some sensitive info from being read by others when sharing the file to public.
What is Alternate Data Stream??
In simple words it is a facility to hide data behind data.
This can be used to hide malicious virus files behind other text or graphic files.
How to hide text file behind a text file??
Here is an example to hide text file behind a text file.
1> Create a text file using Command Prompt.
Go to Run, type cmd. Change the directory if you want.
Type
echo
etricks.txt:hidden
Here hidden is alternate data stream created along with etricks.txt
2>To enter data using that hidden data stream type
notepad etricks.txt:hidden
You will see a popup saying “Cannot find the C:\etricks.txt:Hidden.txt file”. Do you want to create a new file?”.
click yes.
3> Type anything you want and press ctrl+s.
4> Now go to C drive. There won’t be any such file. You will see etricks.txt only.
5> To view data in hidden file go to cmd and type
notepad etricks.txt:hidden
and now you can see the data in etricks.txt:hidden.txt
What is Alternate Data Stream??
In simple words it is a facility to hide data behind data.
This can be used to hide malicious virus files behind other text or graphic files.
How to hide text file behind a text file??
Here is an example to hide text file behind a text file.
1> Create a text file using Command Prompt.
Go to Run, type cmd. Change the directory if you want.
Type
echo
etricks.txt:hidden
Here hidden is alternate data stream created along with etricks.txt
2>To enter data using that hidden data stream type
notepad etricks.txt:hidden
You will see a popup saying “Cannot find the C:\etricks.txt:Hidden.txt file”. Do you want to create a new file?”.
click yes.
3> Type anything you want and press ctrl+s.
4> Now go to C drive. There won’t be any such file. You will see etricks.txt only.
5> To view data in hidden file go to cmd and type
notepad etricks.txt:hidden
and now you can see the data in etricks.txt:hidden.txt
0 Comments »
1. Gather the file you wish to bind, and the image file, and place them in a folder. For the sake of this demonstration, I will be using C:\New Folder
-The image will hereby be referred to in all examples as fluffy.jpg
-The file will hereby be referred to in all examples as New Text Document.txt
2. Add the file/files you will be injecting into the image into a WinRar .rar or .zip. From here on this will be referred to as (secret.rar)
3. Open command prompt by going to Start > Run > cmd
4. In Command Prompt, navigate to the folder where your two files are by typing
cd location [ex: cd C:\New Folder]
5. Type [copy /b fluffy.jpg + secret.rar fluffy.jpg] (remove the brackets)
Congrats, as far as anyone viewing is concerned, this file looks like a JPEG, acts like a JPEG, and is a JPEG, yet it now contains your file.
In order to view/extract your file, there are two options that you can take
a) Change the file extension from fluffy.jpg to fluffy.rar, then open and your file is there
b) Leave the file extension as is, right click, open with WinRar and your file is there
-The image will hereby be referred to in all examples as fluffy.jpg
-The file will hereby be referred to in all examples as New Text Document.txt
2. Add the file/files you will be injecting into the image into a WinRar .rar or .zip. From here on this will be referred to as (secret.rar)
3. Open command prompt by going to Start > Run > cmd
4. In Command Prompt, navigate to the folder where your two files are by typing
cd location [ex: cd C:\New Folder]
5. Type [copy /b fluffy.jpg + secret.rar fluffy.jpg] (remove the brackets)
Congrats, as far as anyone viewing is concerned, this file looks like a JPEG, acts like a JPEG, and is a JPEG, yet it now contains your file.
In order to view/extract your file, there are two options that you can take
a) Change the file extension from fluffy.jpg to fluffy.rar, then open and your file is there
b) Leave the file extension as is, right click, open with WinRar and your file is there
CMD,
Operating System
7:59 PM
