

I'm hiding this and you cannot easily see it Now check what we have in slack space: bmap -mode slack vishnu.txt echo "I'm hiding this and you cannot easily see it" | bmap -mode putslack vishnu.txt We can use this slack space to hide data. All of 7 sectors and 504 bytes of the first sector are empty (Linux write null on the slack space, so all they have 0s.) The file only uses 8 bytes (1 sector is 512 bytes, so it is in the first sector). This text file is too small to use all of these sector in the block. bmap –mode map bmap -mode map vishnu.txtĪs you can see from the output of bmap, vishnu.txt uses 8 sectors starting from 67453816. This corresponds a block in Linux.

I have created a text file named vishnu.txt. The option I am going to use –mode option with slack, putslack, wipe, map VALUEs. Slackbytes print number of slack bytes availableįrag display fragmentation information for the fileĬheckfrag test for fragmentation (returns 0 if file is fragmented) Use block-list knowledge to perform special operations on filesĬheckslack test for slack (returns 0 if file has slack) rootaspirantz-user: echo 'Im hiding this and you cannot easily see it' bmap -mode putslack vishnu.txt stuffing block 8431727 file size was: 20 slack size: 4076 block size: 4096. Let’s see what options we have with bmap: bmap -helpīmap:1.0.17 (12/25/10) bmap. All of 7 sectors and 504 bytes of the first sector are empty (Linux write null on the slack space, so all they have 0s.) We can use this slack space to hide data. In the following example we will hide some text into slack space. ln -s yourBmapFilePath /sbin/bmap Hiding Data on Slack Space Optional: I placed bmap into /sbin so don’t need to go into the bmap directory each time I want to run the program. tar xvzf bmap-1.0.17.tar.gzĪfter untaring the file, we now can go inside of the directory and compile the program. Installing BmapĬlick this link and save the tar.gz file on your Linux desktop. However, in this article we will focus on its data hiding capability. It can perform lots of functions interesting to the computer forensics community and the computer security community. Bmapīmap, a data hiding tool, can utilize slack space in blocks to hide data.
LINUX INSTALL SLACK HOW TO
Today, I am going to show how to hide data on slack spaces using a tool called bmap. This means to find data in slack space on Linux systems are rare.
LINUX INSTALL SLACK FULL
If the block is only partially full then the area between the end of the file the end of the container is referred to as slack space. If the block is completely full then the most optimal situation for the file system has occurred. When data is stored in these blocks two mutually exclusive conditions can occur The block is completely full, or the block is partially full. Files can consist of a single or multiple blocks/clusters in order to fulfill the size requirements of the file. Blocks can also be defined as the smallest pieces of data that a file system can use to store information. Blocks are specific sized containers used by file system to store data. Before going to explain slack space, one should know what blocks (on Linux) and clusters mean (on Windows).
