104 lines
4.1 KiB
Markdown
104 lines
4.1 KiB
Markdown
# github-edu-apply
|
|
|
|
Automation + reverse-engineering notes for the **GitHub Education (Student Developer Pack)** application.
|
|
|
|
GitHub Education is **not** SheerID. Verification is GitHub's own system, the form lives in
|
|
`github.com/settings/education/benefits`, and there is no API token route: everything is a React modal
|
|
that POSTs to `/settings/education/developer_pack_applications`.
|
|
|
|
This repo contains the working part of that flow (login → modal → school → hidden-gate dump → submit),
|
|
the per-school gate matrix, a dated schedule-screenshot generator and a fake-camera rig for the
|
|
camera-only document step.
|
|
|
|
## What the flow actually is
|
|
|
|
```
|
|
login (password + TOTP)
|
|
└─ GET /settings/education/benefits
|
|
└─ "Start an application" <- <button> on clean accounts, <a href="/pricing"> on flagged
|
|
└─ GET /settings/education/developer_pack_applications/new
|
|
└─ modal "Education Benefits Application"
|
|
├─ role: teacher | student
|
|
├─ school autocomplete -> GET .../developer_pack_applications/schools?q=...
|
|
│ sets hidden: selected_school_id, email_domains, camera_required,
|
|
│ two_factor_required, user_too_far_from_school
|
|
├─ school email (dropdown of the account's emails)
|
|
└─ POST /settings/education/developer_pack_applications (button name=continue)
|
|
```
|
|
|
|
## Install
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
python -m playwright install chromium
|
|
```
|
|
|
|
Real Chrome is used for login (`executable_path`), Playwright's chromium only for rendering.
|
|
|
|
## Usage
|
|
|
|
Accounts file (`.jsonl`, one per line, never commit it):
|
|
|
|
```json
|
|
{"login": "name", "password": "...", "totp": "BASE32SECRET"}
|
|
```
|
|
|
|
Dry run - walks the form, prints every gate, submits nothing:
|
|
|
|
```bash
|
|
python scripts/apply.py --accounts accounts.jsonl --login NAME \
|
|
--school "Southern New Hampshire" --geo 42.9956,-71.4548
|
|
```
|
|
|
|
Submit:
|
|
|
|
```bash
|
|
python scripts/apply.py --accounts accounts.jsonl --login NAME \
|
|
--school "Southern New Hampshire" --geo 42.9956,-71.4548 \
|
|
--email student@snhu.edu --submit
|
|
```
|
|
|
|
Gate matrix for a list of schools (no submission, safe to re-run):
|
|
|
|
```bash
|
|
python scripts/school_probe.py --accounts accounts.jsonl --login NAME \
|
|
--schools "Pennsylvania State,Arizona State University,Southern New Hampshire" \
|
|
--geo 42.9956,-71.4548 --out findings/school_matrix.json
|
|
```
|
|
|
|
Dated schedule screenshot:
|
|
|
|
```bash
|
|
python scripts/docgen.py --first Ivan --last Petrov --out schedule.png
|
|
```
|
|
|
|
Fake camera for the `camera_required=true` step:
|
|
|
|
```bash
|
|
python scripts/fakecam.py build --image schedule.png --out cam.y4m --seconds 8
|
|
python scripts/fakecam.py launch --y4m cam.y4m --profile ~/.gh_edu_profiles/NAME \
|
|
--url https://github.com/settings/education/benefits --geo 42.9956,-71.4548
|
|
```
|
|
|
|
## Status per gate (measured 2026-11)
|
|
|
|
| Gate | State | Bypass |
|
|
|---|---|---|
|
|
| account flag | flagged accounts get `<a href="/pricing">`, no modal at all | use a clean/aged account; enabling 2FA does not lift it |
|
|
| `camera_required` | `true` on every school probed | fake camera (`scripts/fakecam.py`) |
|
|
| `email_domains` | per-school allow/deny table shipped to the client | a real mailbox on an `ALLOWLISTED` domain |
|
|
| `user_too_far_from_school` | distance check against the account/geo | `Share Location` + Playwright `geolocation` |
|
|
| `two_factor_required` | `true` on ASU / WGU / Phoenix / Liberty | TOTP already on the account |
|
|
|
|
Details and the exact server responses: [GATES.md](GATES.md).
|
|
|
|
## Blocker that is not solved here
|
|
|
|
`POST /settings/education/developer_pack_applications` returns, in the modal,
|
|
`There was an error creating the discount request. Errors: There was a problem`
|
|
when the selected school demands an `ALLOWLISTED` email domain and the account has no such address.
|
|
The request is not created, so the attempt is not consumed - safe to retry with the right mailbox.
|
|
|
|
## Disclaimer
|
|
|
|
Research/automation code for account flows we control. Do not run it against accounts that are not yours. |