{"id":4756,"date":"2019-08-24T00:55:36","date_gmt":"2019-08-23T16:55:36","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4756"},"modified":"2019-08-24T23:43:47","modified_gmt":"2019-08-24T15:43:47","slug":"strings","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/strings","title":{"rendered":"strings\u547d\u4ee4 – \u5728\u5bf9\u8c61\u6587\u4ef6\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u67e5\u627e\u53ef\u6253\u5370\u7684\u5b57\u7b26\u4e32"},"content":{"rendered":"\n

strings\u547d\u4ee4\u5728\u5bf9\u8c61\u6587\u4ef6\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u67e5\u627e\u53ef\u6253\u5370\u7684\u5b57\u7b26\u4e32\u3002\u5b57\u7b26\u4e32\u662f4\u4e2a\u6216\u66f4\u591a\u53ef\u6253\u5370\u5b57\u7b26\u7684\u4efb\u610f\u5e8f\u5217\uff0c\u4ee5\u6362\u884c\u7b26\u6216\u7a7a\u5b57\u7b26\u7ed3\u675f\u3002 strings\u547d\u4ee4\u5bf9\u8bc6\u522b\u968f\u673a\u5bf9\u8c61\u6587\u4ef6\u5f88\u6709\u7528\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> strings [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-a <\/td>\u626b\u63cf\u6574\u4e2a\u6587\u4ef6\u800c\u4e0d\u662f\u53ea\u626b\u63cf\u76ee\u6807\u6587\u4ef6\u521d\u59cb\u5316\u548c\u88c5\u8f7d\u6bb5 <\/td><\/tr>
-f <\/td>\u5728\u663e\u793a\u5b57\u7b26\u4e32\u524d\u5148\u663e\u793a\u6587\u4ef6\u540d <\/td><\/tr>
-t<\/td>\u8f93\u51fa\u5b57\u7b26\u7684\u4f4d\u7f6e\uff0c\u57fa\u4e8e\u516b\u8fdb\u5236\uff0c\u5341\u8fdb\u5236\u6216\u8005\u5341\u516d\u8fdb\u5236 <\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5217\u51fals\u4e2d\u6240\u6709\u7684ASCII\u6587\u672c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# strings \/bin\/ls <\/pre>\n\n\n\n

\u5217\u51fals\u4e2d\u6240\u6709\u7684ASCII\u6587\u672c\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# cat \/bin\/ls strings <\/pre>\n\n\n\n

\u67e5\u627els\u4e2d\u5305\u542blibc\u7684\u5b57\u7b26\u4e32\uff0c\u4e0d\u533a\u5206\u5927\u5c0f\u5199\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# strings \/bin\/ls | grep -i libc<\/pre>\n\n\n\n

\u5728\u663e\u793a\u5b57\u7b26\u4e32\u524d\u5148\u663e\u793a\u6587\u4ef6\u540d\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# strings -f \/bin\/ls | grep libc <\/pre>\n\n\n\n

\u8f93\u51fa\u5b57\u7b26\u7684\u4f4d\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# strings -t \/bin\/ls | grep libc <\/pre>\n","protected":false},"excerpt":{"rendered":"

strings\u547d\u4ee4\u5728\u5bf9\u8c61\u6587\u4ef6\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\u67e5\u627e\u53ef\u6253\u5370\u7684\u5b57\u7b26\u4e32\u3002\u5b57\u7b26\u4e32\u662f4\u4e2a\u6216\u66f4\u591a\u53ef\u6253\u5370\u5b57\u7b26\u7684\u4efb\u610f\u5e8f\u5217\uff0c\u4ee5\u6362\u884c\u7b26 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4756"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4756"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4756\/revisions"}],"predecessor-version":[{"id":4803,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4756\/revisions\/4803"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}