google-password-rotator
Use when a Google account password needs to be changed or rotated through a visible isolated browser, including Google sign-in, current-password reauthentication, preferred-language setup, and optiona
Files6
View on GitHubSKILL.mdskills/google-password-rotator/SKILL.md
GitHubGoogle Password Rotator
Boundaries
- Never pass passwords or TOTP secrets on the command line.
- Never print, store, commit, or summarize passwords, TOTP secrets, generated codes, cookies, or session tokens.
- Use an isolated Chrome profile and the requested HTTP proxy for the whole flow. Default proxy:
http://127.0.0.1:11111. - Treat CAPTCHA, passkeys, device prompts, recovery checks, and unusual verification as manual user steps.
- Use
--auto-2fa-funonly when the user explicitly supplies an authenticator secret. - Do not claim success unless the helper reports
password_change_completedor the user confirms success in the visible browser.
Standard Flow
Use hidden TTY prompts for all secrets:
python3 skills/google-password-rotator/scripts/rotate_google_password.py \
--google-email user@example.com \
--proxy http://127.0.0.1:11111 \
--auto-2fa-fun \
--manual-timeout-seconds 900
The helper:
- Opens Google password settings in an isolated Chrome profile through the proxy.
- Fills the Google email and current password.
- When Google requests an authenticator code and
--auto-2fa-funis enabled, opens or reuseshttps://2fa.fun/, submits the secret, reads onlyinput.faotp.value, and submits the generated code without printing it. - Waits for manual completion of any unsupported verification.
- Fills the new password and confirmation fields.
- After Google confirms the password change, makes English (United States) the preferred account language and verifies the saved state.
- Reports completion only after both the password change and preferred-language update succeed.
- Removes the isolated Chrome profile unless
--keep-browseris set.
Options
--google-email EMAIL: required Google account email.--current-password-env NAME: defaults toGOOGLE_CURRENT_PASSWORD.--new-password-env NAME: defaults toGOOGLE_NEW_PASSWORD.--totp-secret-env NAME: defaults toGOOGLE_TOTP_SECRET.--proxy URL: browser proxy; defaults tohttp://127.0.0.1:11111.--settings-url URL: override the Google password settings URL.--manual-timeout-seconds 900: manual verification timeout.--auto-2fa-fun: automatically handle Google authenticator-code prompts through 2fa.fun.--keep-browser: keep the isolated browser open after the helper exits.--attach-debug-port PORT: resume an existing isolated Chrome session without replaying completed login steps.--verification-only: complete reauthentication and stop on the requested Google settings page without changing the password.--skip-english-language: preserve the current preferred language instead of making English (United States) preferred after a password change. Verification-only mode always preserves the language.--dry-run: print a redacted execution plan without reading secrets or opening Chrome.
Failure Handling
- If Google reports a wrong password, invalid code, disabled account, or recovery requirement, stop automatic retries and leave the visible page for user inspection.
- If 2fa.fun is used, read generated codes only from
input.faotp.value; never scrape arbitrary text or the secret field. - If Google changes the DOM, rerun with
--keep-browser, inspect visible labels/selectors, and patchdrive_google_password_change.mjs. - If the new-password form remains visible after submission, do not assume success.
Verification
Run safe checks before live use:
python3 skills/google-password-rotator/scripts/rotate_google_password.py \
--google-email user@example.com \
--dry-run
python3 -m py_compile \
skills/google-password-rotator/scripts/rotate_google_password.py
node --check \
skills/google-password-rotator/scripts/drive_google_password_change.mjs