0% found this document useful (0 votes)
28 views5 pages

Lab 11

DFTT Lab No. 11

Uploaded by

Muhammad Tariq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
28 views5 pages

Lab 11

DFTT Lab No. 11

Uploaded by

Muhammad Tariq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 5
EXPERIMENT-09 ‘Aim of the Experiment: To study the steps for hiding and extract any text file behind an image file/ Audio file using Command Prompt Any file like .rar jpg .txt or any file can be merged inside another file. In a simple way, we shall learn how to hide a text file inside an image file using the Command Prompt How to Hide the FILE? Suppose you have to hide a text file “A.txt” with the image file “B jp: them in a new file as “C.jpg”. Where “C.jpg” is our output file which contains the text hidden in the image file. Follow the steps: 1. copy the file,u need (o hide, to desktop(for our tutorial Jet us assume the file to be "A.txt") 2. copy the image, within which you need to hide the file, to desktop (let it be “B.ips") 3. now open the cmd: >etrltr type: cmd and hit enter Page | 27 DDownloaded by Muhammad Tariq (saaim01@gmailcom 4. in emd first type the code as follows >ed desktop NOTE: this code is for assigning the location on cmd to desktop 5. Now type the following code: > copy /b B.jpg + A.txt C.jpg Syntax: copy /b Name-of file-containing-text-you-want-to-hide.txt + Name-o image.jpg Resulting-image-name,jpg “C.jpg" is the output image inside this out image our file is hidden Page | 28 ‘This documents asl cicrnecs Fy studocu Downloaded by Muhammad Targ (saaimt @gmaicom How to retrieve the file? 1. locate C.jpg file from where you want to retrieve text data 2. Right-click and open with notepad Teymnnn Deak) THE BCS YSN hak Talla hCogaefonsc epee * west ee 1 Continnhent bocca sane nnsoosowe con ml et ese Done! Successfully opened! In the last of the notepad, you'll find the content of the text file. -H°t5XG7PUKG|1i0h2 }osjUy+?S-9FIOb¢ “ziBoOH-1tatUST4? s”H7m-F™bHVEdIONSE 24 Z| c[ol@te\¢-alupaleies zgUIbHN —_ tNSUA3O{oc#nl75-YesRadés1e{A1VEUG ‘OFSaAROQ| lbeT2vphIact; —_—_2}*$no,,T-alEInzZ+?"neSAs FU: 7q/-IA05Z*? 2N}| im E2w- 87 5s SEKASIENXIO®UIA)90\..REG* |-2nE°- LEU” dbl*St?ICCV>IC “SUA: 21 3"F8d juvi" ba§7n/ i tNS>EW9, 2E2-03 nde (Eefuea,, siigl* i604 inde VomLESHIASDHMBery“Vx56.ayxi%;6:2000-S0! “2?¥q, £160" VPiu~OHlTSap]3¢° f teniéa®t ‘20p"E aide obSAt” nlc wAU> loz... €I¥IU8 ,MF,,?AKL°E /tha?E"E"U0Q"1\| "ExOE 182 jX5VEDr#C *hSt -XDExIax2It¢8VAdeVH0O"t{_c& #15} BSAEE OIA" UKAEEKTI°OIUOUIPU @v/188CK 281 18 @ LO9AY/2)«-Pell{StOd(¥9U~ fo niited,oi*- iv)I"p. *¢Fr*6iO]D" nek ‘a FAM=alIn” ULE (18 (5-SaE'SX.., EEN #1/81#AMi 4080 *Y2A$S10-0. «A"EESLABEG” wid*¥6"SSpyIC, —IT}GH' xs82ut-" 0A, 111, dup-2t-200Uz3EA\ afd, ~Sg3*ET WHC FOAIO’-Ti0cal) ¢7A"*\?[ “ZL: | casene=rje=it ‘FOUsKurU2-#* sarngaKegrc[OovkaUevWDGdO_*Bileniéasos kevila#ig >UTHIDYIAFY?DFPH | ESXA€AK+Ia6_2IE WlJI";\“cWOEO*_;¥qdS_-@2Q0o0YAG9MI' §] JERE} :GmVIVEZZY JNUUUTD' 6lr3,,d.l1a0uN7 F4F] 1g64Meio" cdiWEaIs-E IN¥,8,,¢°SUtBVal BVBEy Ig SQ"™"RANSSC” nFESICAIM @xs60)00 Aseé, AlyUWelcome to Odisha State Open University. Hide A Message Into Image: Open Run command window by pressing win + r. Open command prompt by typing cmd and press OK Enter the directory where you have your files. Then type the command : Page | 29 DDownloaded by Muhammad Tariq (saaim01@gmailcom echo "Your Message">>"'image.jpg" ‘Now the message is successfully hidden in the image file. To view the message: Open with Notepad, at last, you'll find the Your Message Another Method 1. Open Run command window by pressing win + . Open command prompt by typing emd and press OK 2 3. Enter the directory where you have your files. 4. Then type the command : Shin x BH Srey 4 OK Cancel Bowen >> copy/b B.jpg + A.rar C.jpg Here a.rar is the file to hide behind the image file (b.jpg) and the output file is e.jpg. To view the RAR file: right-click on the output image (here, c.jpg) and open with WinRAR. You'll find the file inside the image. Hide and text behind Audio File Firstly get hold of a sound file you want to hide the data in (example sound.mp3), then gather all your files you want (o hide and put them in a ZIP (cxample secret.zip), Our chosen Sound and zip file: secretzip sound.mp3 Windows 7/10: Shift+right click in the folder containing the files will open the command prompt in that directory Windows: Open command prompt (start->run cmd), then use cd to get to the folder where the files are stored. Linux: You know what to do, open terminal and move to the directory containing files. Page | 30 Tiedooimenisnsitiotectchesson Ey studocu Downloaded by Muhammad Tariq (saaimd@gmailcom ‘We now need to merge these files together, but we want to use a binary merge to keep the two files intact. With Windows copy command this uses the /B switch, (Binary Data) Windows Code: LinuxCode: copy /b secret.zip + sound.mp3 newfile.mp3 cat sound.mp3 secret.zip > newfile.mp3 You should now have gained a new file called newfile.mp3. This should look identical to the sound you started with when opened with a media player, but with a secret payload hidden within. Here is the example sound containing a ZIP: D:\Creepy-stuff\exp>copy /b sound.np3+secret-2ip neuf ile.mp3 eres ar toe newfilemp3 ‘The two simplest ways to get your data back out of these files is to either change the extension from .mp3 to .zip or to open your chosen ZIP program and open newfile.mp3 within that. You should now be presented with your original files. CB reetite vip - Sex 70 avers packed sire 2,007,758 bytes pe name Sue vacxea type = a Hydengensieg cy see S0520 592528 IPG Fle DDownloaded by Muhammad Tariq (saaim01@gmailcom Page | 31

You might also like