Skip to content

Latest commit

 

History

History
69 lines (56 loc) · 1.18 KB

README.md

File metadata and controls

69 lines (56 loc) · 1.18 KB

GHCA

What's this

China Telecom 189 fei young encrypted account caculator

Source Code From:007xiaoxingxing/GhcaDialer(deleted)

Make

go build .
chmod +x ./ghca

or

./build.sh

it will build a docker image locally named:fatalc/ghca

Usage

Params

name type default
username string ""
password string ""
server bool false
port int 8080

Example

Binary Run Locally:

$ ./ghca --username <username> --password <password>
~ghcaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Binary Run As A Service:

$ ./ghca --server

on a special port:

$ ./ghca --port 8000 --server

Then:

$ curl 127.0.0.1:8000
XXXXXYoung 3.09 XXXX
XXXX: GET /?username=<username>&password=<password>
$ curl 127.0.0.1:8000/?username=<username>\&password=<password>
ghcaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Docker

Run with docker are the same

$ docker run -it --rm fatalc/ghca --usernmae <username> --password <password>
~ghca...

or as a service

docker run -it --name ghca -d -p 8080:8080 fatalc/ghca