{"id":18267673,"url":"https://github.com/oxeu/hustpass","last_synced_at":"2025-04-09T02:27:24.309Z","repository":{"id":193479794,"uuid":"664975425","full_name":"OXeu/hustpass","owner":"OXeu","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-08T09:56:40.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T20:57:23.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OXeu.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}},"created_at":"2023-07-11T07:01:06.000Z","updated_at":"2024-01-06T05:17:17.000Z","dependencies_parsed_at":"2023-09-08T11:09:16.268Z","dependency_job_id":null,"html_url":"https://github.com/OXeu/hustpass","commit_stats":null,"previous_names":["thankrain/hustpass","oxeu/hustpass"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fhustpass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fhustpass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fhustpass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OXeu%2Fhustpass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OXeu","download_url":"https://codeload.github.com/OXeu/hustpass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247964486,"owners_count":21025200,"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":"2024-11-05T11:28:16.894Z","updated_at":"2025-04-09T02:27:24.284Z","avatar_url":"https://github.com/OXeu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HUST PASS\n[![Build Status](https://drone.kafi.work/api/badges/xeu/hust_pass/status.svg)](https://drone.kafi.work/xeu/hust_pass)\n\n自动过校园网认证\n## 使用说明\n### 1.配置修改\nclone 该仓库，修改 `main.go` 中的 `username` 和 `password` 常量\n为自己的校园网账号密码\n### 2.Windows 运行\n安装 `Golang` 编译环境, 执行以下命令\n\n```go build -ldflags \"-H=windowsgui\"```\n\n`-ldflags \"-H=windowsgui\"` \n指定进程运行在后台,无控制台窗口,可在任务管理器中结束进程\n\n### 3.Linux Shell运行\n```nohup go run main.go \u0026```\n\n```nohup *** \u0026``` 表示在后台运行,输出保存在当前目录下的\n`nohup.out`文件中\n\n### 4.Linux Docker运行\n安装`Docker`以及`Docker-Compose`\n\n在当前文件夹下执行\n```docker-compose up -d```\n\n将自动下载 构建镜像 进行构建并打包镜像自动运行\n\n无需安装`Golang`编译环境\n\n\n# 常见问题\n## 1. 启用 Docker 后认证网页无法访问\n大概率是Docker自动生成的网络把`172.18.18.0`这个子网段给占了导致认证请求回到了容器内  \n输入 `ifconfig` 查看网络配置  \n如果存在如下配置的网络\n```\nbr-0aaf5b13ef7d ....\ninet addr:172.18.0.1  Bcast:172.18.255.255(这个不重要)  Mask:255.255.0.0\n```\n则输入`docker  network ls` 查看 `0aaf5b13ef7d`(`br-`后的跟随的内容) 对应的虚拟网卡，使用`docker network rm 0aaf5b13ef7d` 移除该虚拟网卡，如果移除失败，需先移除使用该网卡的容器`docker ps`查看活跃容器,`docker stop (容器id)`停止容器，之后再移除网卡\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxeu%2Fhustpass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foxeu%2Fhustpass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foxeu%2Fhustpass/lists"}