Wednesday, January 17, 2024

Steghide - A Beginners Tutorial




All of us want our sensitive information to be hidden from people and for that we perform different kinds of things like hide those files or lock them using different softwares. But even though we do that, those files  attractive people to itself as an object of security. Today I'm going to give you a slight introduction to what is called as Steganography. Its a practice of hiding an informational file within another file like you might have seen in movies an image has a secret message encoded in it. You can read more about Steganography from Wikipedia.


In this tutorial I'm going to use a tool called steghide, which is a simple to use Steganography tool and I'm running it on my Arch Linux. What I'm going to do is simply encode an image with a text file which contains some kind of information which I don't want other people to see. And at the end I'll show you how to decode that information back. So lets get started:


Requirements:

1. steghide
2. a text file
3. an image file

After you have installed steghide, fire up the terminal and type steghide




It will give you list of options that are available.


Now say I have a file with the name of myblogpassword.txt which contains the login password of my blog and I want to encode that file into an Image file with the name of arch.jpg so that I can hide my sensitive information from the preying eyes of my friends. In order to do that I'll type the following command in my terminal:


steghide embed -ef myblogpassword.txt -cf arch.jpg




here steghide is the name of the program

embed flag is used to specify to steghide that we want to embed one file into another file
-ef option is used to specify to steghide the name (and location, in case if its in some other directory) of the file that we want to embed inside of the another file, in our case its myblogpassword.txt
-cf option is used to specify the name (and location, in case if its in some other directory) of the file in which we want to embed our file, in our case its an image file named arch.jpg

After typing the above command and hitting enter it will prompt for a password. We can specify a password here in order to password protect our file so that when anyone tries to extract our embedded file, they'll have to supply a password in order to extract it. If you don't want to password protect it you can just simply hit enter.


Now myblogpassword.txt file is embedded inside of the image file arch.jpg. You'll see no changes in the image file except for its size. Now we can delete the plain password text file myblogpassword.txt.


In order to extract the embedded file from the cover file, I'll type following command in the terminal:


steghide extract -sf arch.jpg -xf myblogpass.txt




here steghide is again name of the program
extract flag specifies that we want to extract an embedded file from a stego file
-sf option specifies the name of the stego file or in other words the file in which we embedded another file, in our case here its the arch.jpg file
-xf option specifies the name of the file to which we want to write our embedded file, here it is myblogpass.txt
(remember you must specify the name of file with its location if its somewhere else than the current directory)

After typing the above command and hitting enter, it will prompt for a password. Supply the password if any or otherwise just simply hit enter. It will extract the embedded file to the file named myblogpass.txt. Voila! you got your file back but yes the image file still contains the embedded file.


That's it, very easy isn't it?


It was a pretty basic introduction you can look for other things like encrypting the file to be embedded before you embed it into another file and so on... enjoy
:)

More articles


  1. Pentest Recon Tools
  2. Termux Hacking Tools 2019
  3. Hacking Tools For Games
  4. Pentest Tools Bluekeep
  5. Hacker Tools Online
  6. Hacker Tools Windows
  7. Hacker Tools List
  8. Hacker Tools
  9. Underground Hacker Sites
  10. Hacking Tools For Windows
  11. Hackrf Tools
  12. Hackrf Tools
  13. Hacker Tools Github
  14. Kik Hack Tools
  15. Termux Hacking Tools 2019
  16. Hack Apps
  17. Hack Tools Github
  18. Hacking Tools
  19. Best Hacking Tools 2020
  20. Top Pentest Tools
  21. Pentest Tools Subdomain
  22. Pentest Tools Free
  23. Hack App
  24. Hacker Tools Github
  25. Nsa Hacker Tools
  26. Hacker Security Tools
  27. Beginner Hacker Tools
  28. Pentest Tools Subdomain
  29. Hack Tool Apk
  30. Hacking Tools Free Download
  31. Hack Tools Pc
  32. Hacker Tools Hardware
  33. Nsa Hack Tools Download
  34. Hacking Tools Online
  35. Hacking Tools
  36. Hack Tool Apk No Root
  37. Hacking Tools Download
  38. Hacking Tools For Windows Free Download
  39. Pentest Tools Find Subdomains
  40. Hack Website Online Tool
  41. Pentest Tools Download
  42. Hack Website Online Tool
  43. Hacker Tools Apk
  44. How To Hack
  45. Hacker Tools Apk Download
  46. Pentest Tools Port Scanner
  47. Pentest Tools Open Source
  48. Hacker Tools Apk Download
  49. Physical Pentest Tools
  50. Hacking Apps
  51. Pentest Tools Bluekeep
  52. Hack Tools Download
  53. Pentest Automation Tools
  54. Hacking Tools For Mac
  55. Black Hat Hacker Tools
  56. Best Hacking Tools 2019
  57. Game Hacking
  58. Pentest Box Tools Download
  59. Hacker Tools List
  60. Hacker Tools Github
  61. Hacking Tools Pc
  62. Pentest Tools Url Fuzzer
  63. Pentest Automation Tools
  64. Hacking Tools Windows 10
  65. Hacking Tools And Software
  66. Black Hat Hacker Tools
  67. Bluetooth Hacking Tools Kali
  68. Pentest Tools Nmap
  69. Hacker Tools Mac
  70. Termux Hacking Tools 2019
  71. What Is Hacking Tools
  72. Pentest Tools Website
  73. Hacker Tools Online
  74. Nsa Hacker Tools
  75. Hacker Tools Linux
  76. Hacking Tools Mac
  77. Hacking Tools Download
  78. Pentest Tools Kali Linux
  79. Hacker Tools List
  80. Pentest Tools Windows
  81. Hack Tools For Pc
  82. Hacker Tools 2020
  83. Pentest Tools Github
  84. Hacking Tools For Pc
  85. Hacker Search Tools
  86. Hack Tools
  87. Hacker Tools 2019
  88. Hacking Tools Software
  89. Hack Tools For Windows
  90. Nsa Hack Tools Download
  91. Easy Hack Tools
  92. Hack Website Online Tool
  93. Pentest Tools Subdomain
  94. Hack Tools For Games
  95. Pentest Tools For Ubuntu
  96. Pentest Tools Alternative
  97. What Is Hacking Tools
  98. Pentest Tools Linux
  99. Hacking Tools For Kali Linux
  100. Hacker Tools Free Download
  101. Termux Hacking Tools 2019
  102. Pentest Tools Nmap
  103. Hack Tools Download
  104. Hacker Tools For Windows
  105. Hacks And Tools
  106. Hack Tool Apk
  107. Hacker Tools Apk
  108. Hacking Tools Download
  109. Pentest Tools Nmap
  110. Nsa Hack Tools Download
  111. Hacking Tools
  112. What Is Hacking Tools
  113. Hack Tools For Games

No comments:

Post a Comment