This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Inline XMP data | |
| inline_xmp='<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.1.0-jc003"> | |
| <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
| <rdf:Description rdf:about="" | |
| xmlns:GCamera="http://ns.google.com/photos/1.0/camera/" | |
| xmlns:Container="http://ns.google.com/photos/1.0/container/" | |
| xmlns:Item="http://ns.google.com/photos/1.0/container/item/" | |
| xmlns:xmpNote="http://ns.adobe.com/xmp/note/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Initialize variables | |
| TARGET_ARRAY="" | |
| COMMAND="" | |
| OUTPUT_NAME="" | |
| TOKEN_FILE="" | |
| PAGE_TOKEN_ARG="" | |
| # Parse long-form command-line arguments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # keyring tool is provided by Python keyring package | |
| username="[email protected]" | |
| read -sp "$username app password: " password | |
| echo | |
| input="$username\n$password\n" | |
| json=`echo -e $input | docker run -i gpsoauth_login` | |
| echo $json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import getpass | |
| import json | |
| import keyring | |
| import subprocess | |
| GOOGLE_ACCOUNT = '[email protected]' | |
| TOKEN_NAME = 'gpsoauth-token' | |
| password = getpass.getpass('{} app password: '.format(GOOGLE_ACCOUNT)) | |
| input_string = '{}\n{}\n\n\n'.format(GOOGLE_ACCOUNT, password) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: | |
| # | |
| # $ docker build -t gpsoauth_login -f gpsoauth_login.Dockerfile . | |
| # $ docker run -it --rm gpsoauth_login | |
| # <stdin: username> | |
| # <stdin: password> | |
| # <stdin: android_id> | |
| # {'SID': 'BAD_COOKIE', 'LSID': 'BAD_COOKIE', 'Token': ... } | |
| FROM alpine:3.16 |