{"blog_title":"labunix's blog","provider_name":"Hatena Blog","version":"1.0","categories":[],"image_url":null,"author_name":"labunix","url":"https://labunix.hateblo.jp/entry/20200504/1588576272","height":"190","provider_url":"https://hatena.blog","type":"rich","description":"\u25a0\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067$PATH\u304b\u3089\u81ea\u8eab\u306e\u30e6\u30fc\u30b6\u540d\u306e\u30d1\u30b9\u3092\u9664\u304d\u3001script\u30d5\u30a1\u30a4\u30eb\u3092\u7a2e\u985e\u5206\u3051\u3057\u3066\u307f\u308b\u3002 $ echo $PATH | \\ awk -F\\: -v WHOAMI=$(whoami) \\ '{for(a=1;a<=NF;a++){if($a !~ WHOAMI) \\ {print \"find \"$a\" -type f -exec file -N -F\\134; {} +\" | \"sh\"}}}' | \\ awk -F\\; '{a[$2]=a[$2]\";\"$1}END{for(n in a){if(n ~ /[Ss]cript/&& a[n] !~ /log/){gsub(\";\",\"\\n\\\u2026","author_url":"https://blog.hatena.ne.jp/labunix/","blog_url":"https://labunix.hateblo.jp/","width":"100%","published":"2020-05-04 16:11:12","title":"\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067$PATH\u304b\u3089\u81ea\u8eab\u306e\u30e6\u30fc\u30b6\u540d\u306e\u30d1\u30b9\u3092\u9664\u304d\u3001script\u30d5\u30a1\u30a4\u30eb\u3092\u7a2e\u985e\u5206\u3051\u3057\u3066\u307f\u308b\u3002","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flabunix.hateblo.jp%2Fentry%2F20200504%2F1588576272\" title=\"\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067$PATH\u304b\u3089\u81ea\u8eab\u306e\u30e6\u30fc\u30b6\u540d\u306e\u30d1\u30b9\u3092\u9664\u304d\u3001script\u30d5\u30a1\u30a4\u30eb\u3092\u7a2e\u985e\u5206\u3051\u3057\u3066\u307f\u308b\u3002 - labunix&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}