Monday, June 5, 2023

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
:)

Related articles


  1. Pentest Tools For Windows
  2. Pentest Tools For Android
  3. Pentest Tools Subdomain
  4. Pentest Automation Tools
  5. Hacker Techniques Tools And Incident Handling
  6. Hack Tools Github
  7. Best Hacking Tools 2020
  8. Hack Tool Apk
  9. Hack Tools Mac
  10. Pentest Automation Tools
  11. World No 1 Hacker Software
  12. Pentest Tools Android
  13. Hacker Tools Windows
  14. Hacking Tools 2019
  15. Pentest Tools Kali Linux
  16. What Are Hacking Tools
  17. Hack Tools For Games
  18. Hack Tools Pc
  19. Hacker Tools Software
  20. Hacking Tools For Mac
  21. Hacking Tools Windows
  22. Hacking Tools 2019
  23. Hacking Tools For Beginners
  24. Game Hacking
  25. Pentest Tools Alternative
  26. Hacker Tools Free
  27. Hacking Tools And Software
  28. Hacking Tools Usb
  29. Pentest Tools Port Scanner
  30. Hacking Tools Usb
  31. Hacker Tools Github
  32. Pentest Tools Find Subdomains
  33. Growth Hacker Tools
  34. Pentest Tools Port Scanner
  35. Pentest Tools Bluekeep
  36. Hacking Tools For Windows
  37. Tools Used For Hacking
  38. Hack Tools
  39. Pentest Tools For Android
  40. Pentest Tools Port Scanner
  41. Hacker Security Tools
  42. Hacker Tools For Pc
  43. Hacking Tools Download
  44. Hacking Tools For Windows
  45. What Are Hacking Tools
  46. Hack Tools Pc
  47. Pentest Tools Kali Linux
  48. Pentest Tools Open Source
  49. What Are Hacking Tools
  50. Pentest Box Tools Download
  51. Top Pentest Tools
  52. Hackrf Tools
  53. Hacking Tools For Kali Linux
  54. Tools 4 Hack
  55. Hacking Tools For Windows
  56. Pentest Tools Port Scanner
  57. Black Hat Hacker Tools
  58. Hacking Tools Windows 10
  59. Pentest Tools Linux
  60. Pentest Tools Website
  61. Hacking Tools
  62. Hacker Tools For Mac
  63. Hack Tools
  64. Hacking Tools For Kali Linux
  65. Hack Rom Tools
  66. Hacking Tools For Beginners
  67. Hacker Tools For Ios
  68. Pentest Tools Github
  69. Hacker Tools 2020
  70. Pentest Tools Github
  71. Underground Hacker Sites
  72. Hack Tools 2019
  73. Pentest Tools Bluekeep
  74. Hacking Tools For Games
  75. Hacker Techniques Tools And Incident Handling
  76. Hacker Tools For Windows
  77. Ethical Hacker Tools
  78. Tools For Hacker
  79. Blackhat Hacker Tools
  80. Black Hat Hacker Tools
  81. Hack Tools For Pc
  82. Easy Hack Tools
  83. Pentest Tools Bluekeep
  84. Hacker Tools List
  85. Pentest Tools Free
  86. Hacker Tools
  87. Tools For Hacker
  88. Install Pentest Tools Ubuntu
  89. Hacking Tools And Software
  90. Growth Hacker Tools
  91. Pentest Tools Download
  92. Pentest Tools Apk
  93. Hacking App
  94. Android Hack Tools Github
  95. Pentest Tools For Mac
  96. What Are Hacking Tools
  97. Hacker Hardware Tools
  98. Pentest Tools For Ubuntu
  99. Growth Hacker Tools
  100. Hacking Tools For Beginners
  101. Pentest Tools For Windows
  102. Pentest Tools Online
  103. Hack Tools Online
  104. Pentest Recon Tools
  105. Hacker Tools Apk Download
  106. New Hack Tools
  107. Computer Hacker
  108. Hacker Tools Hardware
  109. What Are Hacking Tools
  110. Hacking Tools 2019
  111. Hack Tools 2019
  112. Beginner Hacker Tools
  113. Pentest Automation Tools
  114. Top Pentest Tools
  115. Pentest Tools Apk
  116. Hacker Tools Online
  117. Hack And Tools
  118. Kik Hack Tools
  119. Hackers Toolbox
  120. How To Hack
  121. Beginner Hacker Tools
  122. Hack Tools Online
  123. Hackers Toolbox
  124. Hacking Tools
  125. Hacker Tools Linux
  126. Hacking Tools Software
  127. Hacking Tools 2020
  128. Hacking Tools Windows
  129. Hacker
  130. Pentest Box Tools Download
  131. Pentest Tools Alternative
  132. Pentest Tools Kali Linux
  133. Best Hacking Tools 2020
  134. Hacking Apps
  135. How To Hack
  136. Android Hack Tools Github
  137. Hacking Tools 2020
  138. Pentest Recon Tools
  139. Pentest Tools Website
  140. Physical Pentest Tools
  141. Pentest Recon Tools
  142. Hacker Tools Hardware
  143. Physical Pentest Tools
  144. Wifi Hacker Tools For Windows
  145. Pentest Tools List
  146. Pentest Tools Open Source
  147. Hacker Tools For Windows
  148. Hacking Tools Mac
  149. Hackrf Tools
  150. Pentest Tools List
  151. Pentest Tools For Mac
  152. Bluetooth Hacking Tools Kali
  153. Pentest Tools Review
  154. What Are Hacking Tools
  155. Pentest Tools Linux
  156. Hacker Tools For Ios
  157. Hacking Tools For Windows 7
  158. Hacking Tools For Beginners
  159. Hacker Tools Free Download
  160. Hacking Tools 2019
  161. Hacker Tools Hardware
  162. Hacks And Tools
  163. Tools For Hacker
  164. Hacking Tools For Mac
  165. Hacking Tools For Beginners
  166. Hacker Tools For Ios
  167. Hacker Tools 2020
  168. Hacking Tools Software
  169. Pentest Reporting Tools
  170. Hacking Tools 2020
  171. Underground Hacker Sites
  172. Hacking Tools Pc
  173. Pentest Tools Subdomain

No comments:

Post a Comment