﻿{"id":6922,"date":"2021-03-23T12:40:52","date_gmt":"2021-03-23T04:40:52","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=6922"},"modified":"2021-03-23T12:43:21","modified_gmt":"2021-03-23T04:43:21","slug":"linux-steghide","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/linux-steghide.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u4e2d\u4f7f\u7528\u9690\u5199\u672f\u9690\u85cf\u6570\u636e"},"content":{"rendered":"<p>\u9690\u79d8\u672f\u662f\u5c06\u4e00\u4e2a\u6587\u4ef6\u9690\u85cf\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u4ee5\u5728\u4e0d\u5f15\u8d77\u4efb\u4f55\u6000\u7591\u7684\u60c5\u51b5\u4e0b\u79d8\u5bc6\u5730\u4f20\u9012\u4fe1\u606f\u7684\u827a\u672f\u3002 \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u5728Linux\u4e0a\u7684\u5a92\u4f53\u6587\u4ef6\u4e2d\u9690\u85cf\u6570\u636e\u3002<\/p>\n<p><strong>\u9690\u5199\u672f\u7b80\u4ecb<\/strong><\/p>\n<p>\u6b63\u5982\u6211\u4eec\u6240\u8bf4\uff0c\u9690\u5199\u672f\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c06\u6570\u636e\u9690\u85cf\u5728\u4e0d\u540c\u7c7b\u578b\u7684\u5a92\u4f53\u6587\u4ef6\u4e2d\u3002 \u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u5bc6\u7801\u5bf9\u6570\u636e\u8fdb\u884c\u52a0\u5bc6\uff0c\u4ee5\u9632\u6b62\u4e0d\u5fc5\u8981\u5730\u8bbf\u95ee\u5176\u4e2d\u5305\u542b\u7684\u654f\u611f\u4fe1\u606f\u3002 \u4e3a\u4e86\u6f14\u793a\uff0c\u6211\u4eec\u5c06\u5728linuxmi.jpg\u7684\u56fe\u50cf\u4e2d\u9690\u85cf\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u6587\u4ef6\uff1a<\/p>\n<p><strong>\u5728\u56fe\u50cf\u4e2d\u9690\u85cf\u6570\u636e\u7684\u524d\u63d0\u6761\u4ef6<\/strong><\/p>\n<p>\u4e3a\u4e86\u6211\u4eec\u7684\u610f\u56fe\u548c\u76ee\u7684\uff0c\u6211\u4eec\u5c06\u4f7f\u7528\u4e00\u4e2a\u540d\u4e3asteghide\u7684\u7a0b\u5e8f\uff0c\u4f46\u662f\u9996\u5148\u6211\u4eec\u9700\u8981\u4f7f\u7528apt\u547d\u4ee4\u5b89\u88c5\u4ee5\u4e0b\u4f9d\u8d56\u9879\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ <span style=\"color: #ff0000;\">sudo apt install -y libjpeg-dev libmcrypt-dev libmhash-dev<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6923\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-2.png\" alt=\"\" width=\"866\" height=\"475\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u8f6f\u4ef6\u5305\u672c\u8eab\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ <span style=\"color: #ff0000;\">sudo apt install steghide<\/span><\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6924\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-1.png\" alt=\"\" width=\"866\" height=\"343\" \/><\/p>\n<p>\u8fd9\u6837\uff0c\u6211\u4eec\u5df2\u7ecf\u51c6\u5907\u597d\u5de5\u5177\uff0c\u73b0\u5728\u53ef\u4ee5\u8fdb\u884c\u4e0b\u4e00\u6b65\u4e86<\/p>\n<p><strong>\u5c06\u6211\u4eec\u7684\u79d8\u5bc6\u6587\u4ef6\u9690\u85cf\u5728\u5a92\u4f53\u6587\u4ef6\u4e2d<\/strong><\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u5c06\u79d8\u5bc6\u6587\u672c\u6587\u4ef6\u9690\u85cf\u5728JPEG\u56fe\u50cf\u4e2d\u3002\u9996\u5148\uff0c\u6211\u4eec\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u56fe\u50cf\u7684md5sum\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ md5sum linuxmi.jpg<br \/>\n54a8673650c9e816768c6c1de6c7e712 linuxmi.jpg<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6928\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-6.png\" alt=\"\" width=\"866\" height=\"189\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u751f\u6210\u4e00\u4e2a\u6587\u4ef6\u4ee5\u9690\u85cf\u5230\u6211\u4eec\u7684\u56fe\u7247\u4e2d\uff0c\u5e76\u751f\u6210\u5b83\u7684md5sum\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ echo &#8220;\u8fd9\u662f\u8d85\u7ea7\u673a\u5bc6\u6587\u6863&#8221; &gt; linuxmi.txt<br \/>\nlinuxmi@linuxmi:~\/www.linuxmi.com$ md5sum linuxmi.txt<br \/>\n158343916be5d07dd435c7179ca92734 linuxmi.txt<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6925\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-3.png\" alt=\"\" width=\"866\" height=\"233\" \/><\/p>\n<p>\u73b0\u5728\u4f7f\u7528steghide\u5c06\u6587\u672c\u6587\u4ef6\u9690\u85cf\u5728\u56fe\u50cf\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<\/p>\n<p>steghide embed -cf &lt;Media File&gt; -ef &lt;Secret File &gt;<\/p>\n<p>\u56e0\u6b64\uff0c\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ steghide embed -cf linuxmi.jpg -ef linuxmi.txt<br \/>\nEnter passphrase:<br \/>\nRe-Enter passphrase:<br \/>\nembedding &#8220;linuxmi.txt&#8221; in &#8220;linuxmi.jpg&#8221;&#8230; done<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6927 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-5.png\" alt=\"\" width=\"866\" height=\"277\" \/><\/p>\n<p>\u5206\u89e3\u547d\u4ee4\uff1a<\/p>\n<p>steghide\uff1a\u8fd9\u662f\u6211\u4eec\u7528\u6765\u9690\u85cf\u6587\u4ef6\u7684\u7a0b\u5e8f\u7684\u540d\u79f0<\/p>\n<p>embed\uff1a\u5b83\u544a\u8bc9\u7a0b\u5e8f\u6211\u4eec\u5c06\u8981\u5d4c\u5165\u4fe1\u606f<\/p>\n<p>-cf\uff1a\u6307\u5b9a\u5c01\u9762\u6587\u4ef6\uff0c\u4e5f\u5c31\u662f\u5a92\u4f53\u6587\u4ef6\uff08linuxmi.jpg\uff09<\/p>\n<p>-ef\uff1a\u5d4c\u5165\u6587\u4ef6\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u8981\u9690\u85cf\u7684\u6587\u4ef6\uff08linuxmi.txt\uff09<\/p>\n<p>\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5bc6\u7801\u5bf9\u673a\u5bc6\u6587\u4ef6\u8fdb\u884c\u52a0\u5bc6\uff0c\u4ee5\u589e\u52a0\u5b89\u5168\u6027\u3002<\/p>\n<p>\u5982\u679c\u73b0\u5728\u68c0\u67e5\u6587\u4ef6\u7684md5sum\uff0c\u6211\u4eec\u5c06\u770b\u5230\u4e0e\u4e4b\u524d\u4e0d\u540c\u7684\u503c\uff0c\u8fd9\u8868\u660e\u6587\u4ef6\u7684\u5185\u5bb9\u5df2\u66f4\u6539\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ md5sum linuxmi.jpg<br \/>\naa7b8462111c3000a6c154a4accf7518 linuxmi.jpg<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6926 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-4.png\" alt=\"\" width=\"866\" height=\"211\" \/><\/p>\n<p>\u8fd9\u6837\uff0c\u6211\u4eec\u7684\u6587\u672c\u6587\u4ef6\u5df2\u6210\u529f\u9690\u85cf\u5728\u56fe\u50cf\u4e2d\uff01<\/p>\n<p><strong>\u4ece\u56fe\u50cf\u4e2d\u63d0\u53d6\u6570\u636e<\/strong><\/p>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u5c06\u4ece\u4f7f\u7528\u9690\u5199\u672f\u4fee\u6539\u7684\u5a92\u4f53\u6587\u4ef6\u4e2d\u63d0\u53d6\u79d8\u5bc6\u4fe1\u606f\u3002\u786e\u4fdd\u5df2\u5220\u9664\u539f\u59cb\u6587\u4ef6\uff0c\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u89e3\u538b\u7f29\u60a8\u7684\u79d8\u5bc6\u6587\u4ef6\uff1a<\/p>\n<p>$ steghide extract -sf &lt;\u6587\u4ef6\u540d&gt;<\/p>\n<p>\u4f8b\u5982\uff0c\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u5b83\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n<p>steghide extract -sf linuxmi.jpg<\/p>\n<p>\u8fd9\u91cc\uff0c<\/p>\n<p>\u201c steghide\u201d\u662f\u6211\u4eec\u7528\u6765\u63d0\u53d6\u673a\u5bc6\u6570\u636e\u7684\u7a0b\u5e8f\u7684\u540d\u79f0<\/p>\n<p>\u201cextract\u201d\u6307\u793a\u6211\u4eec\u7684\u7a0b\u5e8f\u4ece\u7ed9\u5b9a\u6587\u4ef6\u4e2d\u63d0\u53d6\u6570\u636e<\/p>\n<p>\u201c -sf\u201d\u6807\u5fd7\u8868\u793a\u9690\u79d8\u6587\u4ef6\uff0c\u4e5f\u5c31\u662f\u6211\u4eec\u8981\u4ece\u4e2d\u63d0\u53d6\u6570\u636e\u7684\u6587\u4ef6<\/p>\n<p>\u8fd9\u5c06\u63d0\u793a\u60a8\u8f93\u5165\u5bc6\u7801\uff0c\u6210\u529f\u540e\uff0c\u5e94\u63d0\u53d6\u60a8\u7684\u79d8\u5bc6\u6587\u4ef6\uff01<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ steghide extract -sf linuxmi.jpg<br \/>\nEnter passphrase:<br \/>\nwrote extracted data to &#8220;linuxmi.txt&#8221;.<\/p>\n<p>\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5md5sum\u6765\u9a8c\u8bc1\u6587\u4ef6\u7684\u5b8c\u6574\u6027\uff1a<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ cat linuxmi.txt<br \/>\n\u8fd9\u662f\u8d85\u7ea7\u673a\u5bc6\u6587\u6863<br \/>\nlinuxmi@linuxmi:~\/www.linuxmi.com$ md5sum linuxmi.txt<br \/>\n158343916be5d07dd435c7179ca92734 linuxmi.txt<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6929\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2021\/03\/steghide-7.png\" alt=\"\" width=\"866\" height=\"299\" \/><\/p>\n<p>\u8fd9\u6837\u6211\u4eec\u7684\u79d8\u5bc6\u5c31\u88ab\u4fdd\u7559\u4e86\uff01<\/p>\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n<p>\u73b0\u5728\uff0c\u4f60\u5e94\u8be5\u4e86\u89e3\u9690\u5199\u672f\u7684\u6982\u5ff5\uff0c\u5e76\u5b66\u4f1a\u4e86\u6210\u529f\u5728\u56fe\u50cf\u4e2d\u9690\u85cf\u6587\u672c\u6587\u4ef6\u3002\u9664\u56fe\u50cf\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5728\u97f3\u9891\u6587\u4ef6\u4e2d\u9690\u85cf\u6570\u636e\u3002 Steghide\u652f\u6301\u9690\u85cfJPEG\uff0cBMP\uff0cWAV\u548cAU\u6587\u4ef6\u683c\u5f0f\u4f5c\u4e3a\u5c01\u9762\u6587\u4ef6\u3002\u60a8\u53ef\u4ee5\u968f\u65f6\u53c2\u8003\u624b\u518c\u9875\u4ee5\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9690\u79d8\u672f\u662f\u5c06\u4e00\u4e2a\u6587\u4ef6\u9690\u85cf\u5230\u53e6\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u4ee5\u5728\u4e0d\u5f15\u8d77\u4efb\u4f55\u6000\u7591\u7684\u60c5\u51b5\u4e0b\u79d8\u5bc6\u5730\u4f20\u9012\u4fe1\u606f\u7684\u827a\u672f\u3002 \u5728\u672c\u6587\u4e2d\uff0c\u6211 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,2],"tags":[637],"class_list":["post-6922","post","type-post","status-publish","format-standard","hentry","category-linux","category-zixun","tag-637"],"aioseo_notices":[],"views":1151,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/6922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=6922"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/6922\/revisions"}],"predecessor-version":[{"id":6932,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/6922\/revisions\/6932"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=6922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=6922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=6922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}