Chrome\u7248Google Authenticator\u62e1\u5f35\u6a5f\u80fd<\/a><\/p>\n\u3053\u306eChrome\u306e\u62e1\u5f35\u6a5f\u80fd\u3067\u3042\u308bGoogle Authenticator\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305fJSON\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f\u306f\u4e0b\u8a18\u306e\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n
\u4e0b\u8a18\u306e\u5f62\u5f0f\u3067\u8a8d\u8a3c\u60c5\u5831\u3092\u4f5c\u6210\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001Chrome\u306e\u62e1\u5f35\u6a5f\u80fd\u3067\u3042\u308bGoogle Authenticator\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u306a\u304f\u3066\u3082\u4eca\u56de\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u52d5\u4f5c\u3057\u307e\u3059\u3002<\/p>\n
\r\n{\r\n "\u30cf\u30c3\u30b7\u30e5\u50241":\r\n {\r\n "account":"\u30a2\u30ab\u30a6\u30f3\u30c8\u540d1",\r\n "hash":"\u30cf\u30c3\u30b7\u30e5\u50241",\r\n "index":\u8868\u793a\u9806\u756a\u53f71,\r\n "issuer":"",\r\n "secret":"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u6587\u5b57\u52171",\r\n "type":"totp"\r\n }\r\n ,\r\n "\u30cf\u30c3\u30b7\u30e5\u50242":\r\n {\r\n "account":"\u30a2\u30ab\u30a6\u30f3\u30c8\u540d2",\r\n "hash":"\u30cf\u30c3\u30b7\u30e5\u50242",\r\n "index":\u8868\u793a\u9806\u756a\u53f72,\r\n "issuer":"",\r\n "secret":"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u6587\u5b57\u52172",\r\n "type":"totp"\r\n }\r\n ,\r\n "\u30cf\u30c3\u30b7\u30e5\u50243":\r\n {\r\n "account":"\u30a2\u30ab\u30a6\u30f3\u30c8\u540d3",\r\n "hash":"\u30cf\u30c3\u30b7\u30e5\u50243",\r\n "index":\u8868\u793a\u9806\u756a\u53f73,\r\n "issuer":"",\r\n "secret":"\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u6587\u5b57\u52173",\r\n "type":"totp"\r\n }\r\n}\r\n<\/pre>\noathtool(oath-toolkit)\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n
\u4eca\u56de\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u4e8c\u6bb5\u968e\u8a8d\u8a3c(\u591a\u8981\u7d20\u8a8d\u8a3c)\u306e\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304b\u3089oathtool\u3092\u7528\u3044\u3066TOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u53d6\u5f97\u3059\u308b\u306e\u3067\u3001\u4f7f\u7528\u3059\u308bLinux\u306boathtool\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
RHEL\u3001CentOS\u3001Fedora\u306a\u3069\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306bepel\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089oathtool\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\r\n[magtranetwork@localhost ~]# yum install -y epel-release\r\n[magtranetwork@localhost ~]# yum install -y --enablerepo epel oathtool\r\n<\/pre>\nDebian\u3001Ubuntu\u306a\u3069\u3067\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306boathtool\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\r\n[magtranetwork@localhost ~]# apt-get install oathtool\r\n<\/pre>\n\u307e\u305f\u3001macOS\u3067\u3082\u4e0b\u8a18\u306e\u3088\u3046\u306boath-toolkit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\r\n[magtranetwork@localhost ~]# brew install oath-toolkit\r\n<\/pre>\nChrome\u7248Google Authenticator\u306eJSON\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u4e8c\u6bb5\u968e\u8a8d\u8a3c(\u591a\u8981\u7d20\u8a8d\u8a3c)\u7528\u306eTOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u53d6\u5f97\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)<\/h3>\n
\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u5185\u5bb9\u306f\u307e\u305a\u3001\u4e0a\u8a18\u306eChrome\u7248Google Authenticator\u306eJSON\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f\u306b\u5bfe\u3057\u3066\u3001index\u306e\u5024\u3067\u30bd\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u305f\u30a2\u30ab\u30a6\u30f3\u30c8\u5225\u306e\u8cc7\u683c\u60c5\u5831\u3092\u914d\u5217\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n
\u305d\u306e\u914d\u5217\u306e\u8cc7\u683c\u60c5\u5831\u305d\u308c\u305e\u308c\u306b\u5bfe\u3057\u3066\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304b\u3089TOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u53d6\u5f97\u3057\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3068\u3068\u3082\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n
\r\n[magtranetwork@localhost ~]# vim google_authenticator.sh\r\n<\/pre>\n\r\n#!\/bin\/bash\r\n\r\n#Chrome\u7248Google Authenticator\u304b\u3089\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u305fJSON\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\r\nGAUTH_FILE=".\/GoogleAuthenticator.json"\r\n\r\n#\u6539\u884c\u30b3\u30fc\u30c9\u6307\u5b9a\r\nLF=$'\\\\\\x0A'\r\n\r\n#\u30bd\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u305f\u5404\u8cc7\u683c\u60c5\u5831\u3092\u914d\u5217\u306b\u683c\u7d0d\r\nCREDENTIALS=(`cat ${GAUTH_FILE} | sed 's\/ \/\/g' | sed 's\/\\r\/\/g' | tr -d '\\n' | sed 's\/[{|}]\/'"$LF"'\/g' | egrep '"account"' | sed 's\/ \/\/g' | sed 's\/"index":\/"index": \/g' | sort -k2n | sed 's\/ \/\/g'`)\r\n\r\n#\u8cc7\u683c\u60c5\u5831\u306e\u500b\u6570\u3092\u8868\u793a\r\necho "**********Google Authenticator Credentials: ${#CREDENTIALS[@]}**********"\r\n\r\n#\u8cc7\u683c\u60c5\u5831\u30921\u4ef6\u305a\u3064\u53d6\u308a\u51fa\u3057\u3066\u51e6\u7406\r\nfor ((i = 0; i < ${#CREDENTIALS[@]}; i++)) {\r\n #\u8cc7\u683c\u60c5\u5831\u304b\u3089\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u53d6\u5f97\r\n ACCOUNT=`echo ${CREDENTIALS[$i]} | sed 's\/,\/'"$LF"'\/g' | sed 's\/:\/ \/g' | sed 's\/"\/\/g' | grep '^account' | awk '{print $2}'`\r\n #\u8cc7\u683c\u60c5\u5831\u304b\u3089TOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u306e\u5143\u3068\u306a\u308b\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u53d6\u5f97\r\n SECRET=`echo ${CREDENTIALS[$i]} | sed 's\/,\/'"$LF"'\/g' | sed 's\/:\/ \/g' | sed 's\/"\/\/g' | grep '^secret' | awk '{print $2}'`\r\n\r\n #oathtool\u3092\u7528\u3044\u3066\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304b\u3089TOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u53d6\u5f97\r\n TOTP=`oathtool --totp -b ${SECRET}`\r\n\r\n #TOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u8868\u793a\r\n echo "${TOTP} ${ACCOUNT}"\r\n}\r\n<\/pre>\nChrome\u7248Google Authenticator\u306eJSON\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u4e8c\u6bb5\u968e\u8a8d\u8a3c(\u591a\u8981\u7d20\u8a8d\u8a3c)\u7528\u306eTOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3092\u53d6\u5f97\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)\u306e\u5b9f\u884c\u4f8b<\/h3>\n
\u4eca\u56de\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u8aad\u307f\u8fbc\u3093\u3060JSON\u30d5\u30a1\u30a4\u30eb\u306e\u5168\u3066\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4ef6\u6570\u3068\u305d\u308c\u305e\u308c\u306eTOTP(\u6642\u9593\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9)\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n
\r\n[magtranetwork@localhost ~]# chmod 755.\/google_authenticator.sh\r\n[magtranetwork@localhost ~]# .\/google_authenticator.sh\r\n**********Google Authenticator Credentials: 30**********\r\n640025 account1\r\n870717 account2\r\n900102 account3\r\n250182 account4\r\n850233 account5\r\n410292 account6\r\n700372 account7\r\n440894 account8\r\n930638 account9\r\n890231 account10\r\n340770 account11\r\n940152 account12\r\n970703 account13\r\n720084 account14\r\n480770 account15\r\n660618 account16\r\n280948 account17\r\n200296 account18\r\n460920 account19\r\n190495 account20\r\n210524 account21\r\n170609 account22\r\n490389 account23\r\n940820 account24\r\n050514 account25\r\n570940 account26\r\n330171 account27\r\n700520 account28\r\n130196 account29\r\n390883 account30\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u3092\u7d4c\u7531\u3057\u3066\u30d6\u30e9\u30a6\u30b6\u3084API\u3092\u7528\u3044\u3066\u5bb9\u6613\u306bIT\u57fa\u76e4\u3092\u64cd\u4f5c\u3067\u304d\u308bAWS\u3001GCP\u3001Azure\u306a\u3069\u306e\u30d1\u30d6\u30ea\u30c3\u30af\u30af\u30e9\u30a6\u30c9\u3067\u306f\u4fbf\u5229\u3067\u3042\u308b\u53cd\u9762\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u5bfe\u3057\u3066\u5341\u5206\u306a\u6ce8\u610f\u3092\u6255\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u7279\u306bAWS\u30de\u30cd\u30b8\u30e1\u30f3\u30c8 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3,22,79,82],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5372"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=5372"}],"version-history":[{"count":4,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5372\/revisions"}],"predecessor-version":[{"id":8050,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/5372\/revisions\/8050"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=5372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=5372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=5372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}