{"id":25825704,"url":"https://github.com/adeadfed/mitmproxy-session-rotate-examples","last_synced_at":"2025-07-26T12:04:50.414Z","repository":{"id":278260847,"uuid":"935039309","full_name":"adeadfed/mitmproxy-session-rotate-examples","owner":"adeadfed","description":"Some mitmproxy session rotate examples from my blog post","archived":false,"fork":false,"pushed_at":"2025-02-18T20:18:21.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T21:24:50.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adeadfed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-18T20:03:30.000Z","updated_at":"2025-02-18T20:18:25.000Z","dependencies_parsed_at":"2025-02-18T21:25:17.890Z","dependency_job_id":null,"html_url":"https://github.com/adeadfed/mitmproxy-session-rotate-examples","commit_stats":null,"previous_names":["adeadfed/mitmproxy-session-rotate-examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeadfed%2Fmitmproxy-session-rotate-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeadfed%2Fmitmproxy-session-rotate-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeadfed%2Fmitmproxy-session-rotate-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adeadfed%2Fmitmproxy-session-rotate-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adeadfed","download_url":"https://codeload.github.com/adeadfed/mitmproxy-session-rotate-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241169120,"owners_count":19921563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-28T14:45:32.516Z","updated_at":"2025-02-28T14:45:33.195Z","avatar_url":"https://github.com/adeadfed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mitmproxy session rotation examples\nSome example mitmproxy scripts from my recent blogpost on adeadfed.com that you can use to automate session rotation.\n\n1. `auto_rotate_cookies.py` - automated rotation of cookie-based sessions\n2. `auto_rotate_jwt_simple.py` - automated rotation of JWT sessions that only use access tokens\n3. `auto_rotate_jwt_refresh_token.py` - automated rotation of JWT sessions with refresh tokens\n\n# Usage\n1. Clone this repo and install prerequisites\n```\ngit clone https://github.com/adeadfed/mitmproxy-session-rotate-examples\ncd mitmproxy-session-rotate-examples\npip install -r requirements.txt\n```\n2. Choose the script that you need, edit the login sequence code\n3. Run it with mitmproxy\n```\nmitmproxy -s auto_rotate_jwt_simple.py --listen-host localhost --listen-port 8081 -k\n```\n4. Setup your software to run through the mitmproxy at http://localhost:8081\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadeadfed%2Fmitmproxy-session-rotate-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadeadfed%2Fmitmproxy-session-rotate-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadeadfed%2Fmitmproxy-session-rotate-examples/lists"}