{"id":2096,"date":"2018-09-09T06:01:52","date_gmt":"2018-09-08T21:01:52","guid":{"rendered":"http:\/\/matoken.org\/blog\/?p=2096"},"modified":"2018-09-10T17:57:27","modified_gmt":"2018-09-10T08:57:27","slug":"try-keepassxc-steam-totp","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2018\/09\/09\/try-keepassxc-steam-totp\/","title":{"rendered":"KeePassXC \u306e Steam TOTP \u3092\u8a66\u3059"},"content":{"rendered":"<div id=\"__asciidoctor-preview-1__\" class=\"paragraph\">\n<p>Steam \u30ac\u30fc\u30c9\u3068\u3044\u3046\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u305fValve\u72ec\u81eaTOTP\u306a\u591a\u8981\u7d20\u8a8d\u8a3c\u304c\u3042\u308a\u307e\u3059\uff0e\u3053\u308c\u306f\u901a\u5e38\u306eTOTP(rfc6238)\u3068\u9055\u3044\u72ec\u81ea\u5b9f\u88c5\u3067\u6570\u5b57\u3060\u3051\u3067\u306f\u306a\u304f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3082\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067OATH Toolkit\u3084Google Authenticator\u3067\u306f\u8a8d\u8a3c\u3067\u304d\u307e\u305b\u3093\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-2__\" class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/www.nongnu.org\/oath-toolkit\/\">OATH Toolkit<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/support.google.com\/accounts\/answer\/1066447?co=GENIE.Platform%3DAndroid&amp;hl=en\">Install Google Authenticator &#8211; Android &#8211; Google Account Help<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/tools.ietf.org\/html\/rfc6238\">RFC 6238 &#8211; TOTP: Time-Based One-Time Password Algorithm<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-3__\" class=\"paragraph\">\n<p>Steam \u30ac\u30fc\u30c9\u306eTOTP\u306fValve\u72ec\u81ea\u3067\u3059\u304c\u4e00\u5fdc\u3044\u304f\u3064\u304b\u306e\u5b9f\u88c5\u306f\u3042\u308a\u307e\u3059\uff0e(\u672a\u691c\u8a3c)<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-4__\" class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/dyc3\/steamguard-cli\">GitHub &#8211; dyc3\/steamguard-cli: A linux utility for generating 2FA codes for Steam and managing Steam trade confirmations.<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/seishun\/node-steam\">GitHub &#8211; seishun\/node-steam: Interface directly with Steam servers from Node.js<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-5__\" class=\"paragraph\">\n<p>KeepassXC \u306b\u3082 TOTP(KeePassXC 2.2.0\u4ee5\u964d)\u3068 Steam \u30ac\u30fc\u30c9\u306e TOTP(KeePassXC 2.3.0\u4ee5\u964d)\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\uff0e\u4eca\u56de\u3053\u308c\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-6__\" class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/keepassxc.org\/blog\/2017-06-26-2.2.0-released\/\">KeePassXC 2.2.0 released &#8211; KeePassXC<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-7__\" class=\"listingblock\">\n<div class=\"content\">\n<pre>a generator for time-based one-time passwords (TOTP)<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-8__\" class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/keepassxc.org\/blog\/2018-02-28-2.3-released\/\">KeePassXC 2.3.0 released &#8211; KeePassXC<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-9__\" class=\"listingblock\">\n<div class=\"content\">\n<pre>Add support for Steam one-time passwords [#1206]<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-10__\" class=\"paragraph\">\n<p>\u3057\u304b\u3057\uff0c\u3053\u308c\u3089\u3092\u8a66\u3059\u306b\u306fSteam Guard Mobile Authenticator\u3092\u8a2d\u5b9a\u3057\u305f\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u4e2d\u304b\u3089TOTP\u306e\u79d8\u5bc6\u9375\u3092\u5165\u624b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff0e\u4ee5\u524d\u306eAndroid\u3067\u306fadb backup \u3059\u308b\u3060\u3051\u3067\u9375\u306e\u66f8\u304b\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u624b\u3067\u304d\u3066\u3044\u305f\u3089\u3057\u3044\u306e\u3067\u3059\u304c\u73fe\u5728\u306f\u6697\u53f7\u5316\u3055\u308c\u3066\u3044\u3066\u3053\u306e\u624b\u9806\u3067\u306f\u5165\u624b\u3067\u304d\u306a\u3044\u3088\u3046\u3067\u3059\uff0e<br \/>\nGitHub\u306bAPK\u306bpatch\u3059\u308bscript\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u307e\u305a\u306f\u3053\u308c\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-11__\" class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/support.steampowered.com\/kb_article.php?ref=4440-RTUI-9218\">Steam Guard: How to set up a Steam Guard Mobile Authenticator &#8211; How To\u2019s &#8211; \u30ca\u30ec\u30c3\u30b8\u30d9\u30fc\u30b9 &#8211; Steam Support<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/steamguard-totp\/steamguard-shared-secret\">GitHub &#8211; steamguard-totp\/steamguard-shared-secret: Obtain Steam Guard Mobile Authenticator shared secret from Android phone without root<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-12__\" class=\"paragraph\">\n<p>\u3053\u308c\u304c\u3046\u307e\u304f\u884c\u3051\u3070\u4ee5\u524d\u306e\u3088\u3046\u306badb backup\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308b\u306f\u305a\u3067\u3059\uff0e\u3057\u304b\u3057\uff0c\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u554f\u984c\u304b\u5931\u6557\u3057\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-13__\" class=\"paragraph\">\n<p>\u5225\u306e\u65b9\u6cd5\u3068\u3057\u3066Android\u306eroot\u53d6\u5f97\u6e08\u307f\u7aef\u672b\u306bSteam Guard Mobile Authenticator\u3092\u5c0e\u5165\u3057\u3066\u3053\u3061\u3089\u306e\u7aef\u672b\u3092\u6709\u52b9\u306b\u3057\u3066\u79d8\u5bc6\u9375\u3092\u53d6\u5f97\u3057\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-14__\" class=\"listingblock bash\">\n<div class=\"title\">rooted\u7aef\u672b\u304b\u3089\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u629c\u304d\u51fa\u3057\u3066\u30c8\u30fc\u30af\u30f3\u53d6\u5f97<\/div>\n<div class=\"content\">\n<pre>$ adb shell #Android shell\u3092\u8d77\u52d5\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u78ba\u8a8d\r\n1|shell@MK16i:\/ $ su\r\nroot@MK16i:\/ # ls -l \/data\/data\/com.valvesoftware.android.steam.community\/files\/\r\n-rw-rw---- u0_a59   u0_a59        448 2018-08-31 22:25 Steamguard-76561198085918260\r\nroot@MK16i:\/ # exit\r\nroot@MK16i:\/ $ exit #Android\u304b\u3089exit\u3057\u3066PC\u306b\u623b\u308b\r\n$ adb root  #root\u306b\u306a\u308b\r\n$ adb pull \/data\/data\/com.valvesoftware.android.steam.community\/files\/Steamguard-76561198085918260  #\u30d5\u30a1\u30a4\u30eb\u53d6\u5f97\r\n$ adb kill-server  #adb server\u7d42\u4e86\r\n$ file Steamguard-76561198085918260\r\nSteamguard-76561198085918260: ASCII text, with very long lines, with no line terminators\r\n$ lv Steamguard-76561198085918260\r\n$ jq .uri Steamguard-76561198085918260 | sed -e 's\/^.*=\\(.*\\)&amp;.*$\/\\1\/'  #\u9375\u8868\u793a\r\nOXYBZQLEOB7KKFAPERMN8EGNOLJWEDYZ\r\n$ shred -uz Steamguard-76561198085918260  #\u30d5\u30a1\u30a4\u30eb\u6d88\u53bb<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-15__\" class=\"paragraph\">\n<p>\u53d6\u5f97\u3057\u305f\u9375\u3092KeePassXC\u306b\u767b\u9332\u3057\u3066\u307f\u307e\u3059\uff0e<br \/>\nSteam\u306e\u8a2d\u5b9a\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\uff0c\u300c\u30bf\u30a4\u30e0\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u2192\u300cTOTP \u306e\u8a2d\u5b9a\u2026\u300d\u304b\u3089\u300c\u30ad\u30fc\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\uff0e<br \/>\n\u767b\u9332\u3057\u305f\u5f8cSteam\u306e\u8a2d\u5b9a\u4e0a\u3067\u53f3\u30af\u30ea\u30c3\u30af\uff0c\u300c\u30bf\u30a4\u30e0\u30d9\u30fc\u30b9\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u2192\u300cTOTP \u3092\u8868\u793a\u300d\u3067\u30c8\u30fc\u30af\u30f3\u304c\u8868\u793a\u3067\u304d\u307e\u3059\uff0e<br \/>\n<a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/29467671377\/in\/datetaken\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1857\/29467671377_1a01b3ce35.jpg?atomcache=1536434693786\" alt=\"29467671377 1a01b3ce35\"\/><\/span><\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-16__\" class=\"paragraph\">\n<p>Android\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u3068\u898b\u6bd4\u3079\u3066\u307f\u308b\u3068\u540c\u3058\u30c8\u30fc\u30af\u30f3\u304c\u8868\u793a\u3055\u308c\uff0cSteam\u306b\u3082login\u3067\u304d\u307e\u3059 :)<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-17__\" class=\"paragraph\">\n<p><a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/43687930524\/in\/datetaken\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1850\/43687930524_4260e0f2a6.jpg?atomcache=1536434693786\" alt=\"43687930524 4260e0f2a6\"\/><\/span><\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-18__\" class=\"paragraph\">\n<p><a href=\"https:\/\/www.flickr.com\/photos\/119142834@N05\/42596325220\/in\/datetaken\/\"><span class=\"image\"><img decoding=\"async\" src=\"https:\/\/farm2.staticflickr.com\/1880\/42596325220_6f781729f8.jpg?atomcache=1536434693787\" alt=\"[\"\/><\/span><\/a><\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-19__\" class=\"paragraph\">\n<p>Steam Guard Mobile Authenticator\u306f\u540c\u6642\u306b1\u7aef\u672b\u3057\u304b\u767b\u9332\u3067\u304d\u305a\uff0c2\u53f0\u76ee\u3092\u8a2d\u5b9a\u3059\u308b\u30681\u53f0\u76ee\u306e\u7aef\u672b\u306e\u9375\u304c\u7121\u52b9\u306b\u3055\u308c\u307e\u3059\uff0e\u306a\u306e\u3067KeePassXC\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306froot\u7aef\u672b\u3068\u4f75\u7528\u3059\u308b\u304b\uff0croot\u7aef\u672b\u304b\u3089\u6d88\u3057\u3066KeePassXC\u306e\u307f\u3067\u904b\u7528\u3059\u308b\u3057\u304b\u306a\u3055\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-20__\" class=\"listingblock\">\n<div class=\"title\">\u8907\u6570\u306e\u643a\u5e2f\u96fb\u8a71\u3067 Steam \u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u8a8d\u8a3c\u3067\u304d\u307e\u3059\u304b?<\/div>\n<div class=\"content\">\n<pre>\u3044\u3044\u3048\u3001\u3072\u3068\u3064\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u4e00\u5ea6\u306b\u6709\u52b9\u5316\u3067\u304d\u308b\u8a8d\u8a3c\u6a5f\u5668\u306f\u3072\u3068\u3064\u3060\u3051\u3067\u3059\u3002<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-21__\" class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/support.steampowered.com\/kb_article.php?ref=8625-WRAH-9030&amp;l#morethanone\">Steam Guard Mobile Authenticator &#8211; Managing Your Account Features &#8211; \u30ca\u30ec\u30c3\u30b8\u30d9\u30fc\u30b9 &#8211; Steam Support<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div id=\"__asciidoctor-preview-22__\" class=\"paragraph\">\n<p>\u3082\u3046\u4e00\u3064\u554f\u984c\u304c\uff0eKeePassXC\u306b\u306fcli\u7248\u304c\u540c\u68b1\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3059\u304c\uff0c\u30d0\u30fc\u30b8\u30e7\u30f32.3.4\u6642\u70b9\u3067\u306fTOTP\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u898b\u5f53\u305f\u308a\u307e\u305b\u3093\uff0eGUI\u306e\u307f\u306e\u5229\u7528\u3068\u306a\u308a\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div id=\"__asciidoctor-preview-23__\" class=\"listingblock\">\n<div class=\"content\">\n<pre>$ keepassxc-cli -h\r\nUsage: keepassxc-cli [options] command\r\nKeePassXC command line interface.\r\n\r\nAvailable commands:\r\nadd            Add a new entry to a database.\r\nclip           Copy an entry's password to the clipboard.\r\ndiceware       Generate a new random diceware passphrase.\r\nedit           Edit an entry.\r\nestimate       Estimate the entropy of a password.\r\nextract        Extract and print the content of a database.\r\ngenerate       Generate a new random password.\r\nlocate         Find entries quickly.\r\nls             List database entries.\r\nmerge          Merge two databases.\r\nrm             Remove an entry from the database.\r\nshow           Show an entry's information.\r\n\r\n\r\nOptions:\r\n  -h, --help     Displays this help.\r\n  -v, --version  Displays version information.\r\n\r\nArguments:\r\n  command        Name of the command to execute.\r\n$ keepassxc-cli -v\r\n2.3.4<\/pre>\n<\/div>\n<\/div>\n<div id=\"__asciidoctor-preview-24__\" class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W keepassxc\r\nkeepassxc       2.3.4+dfsg.1-1\r\n$ lsb_release -d\r\nDescription:    Debian GNU\/Linux unstable (sid)\r\n$ uname -m\r\nx86_64<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Steam \u30ac\u30fc\u30c9\u3068\u3044\u3046\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u305fValve\u72ec\u81eaTOTP\u306a\u591a\u8981\u7d20\u8a8d\u8a3c\u304c\u3042\u308a\u307e\u3059\uff0e\u3053\u308c\u306f\u901a\u5e38\u306eTOTP(rfc6238)\u3068\u9055\u3044\u72ec\u81ea\u5b9f\u88c5\u3067\u6570\u5b57\u3060\u3051\u3067\u306f\u306a\u304f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u3082\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067OATH Toolk [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[7,329,6,199],"tags":[392,101,298],"class_list":["post-2096","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-game","category-linux","category-sid","tag-keepassxc","tag-steam","tag-totp"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=2096"}],"version-history":[{"count":0,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/2096\/revisions"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=2096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=2096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=2096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}