-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from 403unlocker/readme
Complete README
- Loading branch information
Showing
2 changed files
with
139 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,41 @@ | ||
|
||
OUTPUT = 403unlocker | ||
MAIN = cmd/403unlockercli/main.go | ||
BIN_DIR = ~/.local/bin | ||
|
||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: help lint build test clean install uninstall | ||
|
||
|
||
help: | ||
@echo "Usage: make [target]" | ||
@echo "" | ||
@echo "Targets:" | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-15s %s\n", $$1, $$2}' | ||
|
||
|
||
lint: | ||
golangci-lint run | ||
@golangci-lint run | ||
|
||
|
||
build: | ||
go build -o 403unlocker cmd/403unlockercli/main.go | ||
test: | ||
go test ./... | ||
@go build -o $(OUTPUT) $(MAIN) | ||
|
||
|
||
test: | ||
@go test ./... | ||
|
||
|
||
clean: | ||
@rm -f $(OUTPUT) | ||
|
||
|
||
install: build | ||
@echo "Installing $(OUTPUT) to $(BIN_DIR)..." | ||
@install -m 755 $(OUTPUT) $(BIN_DIR) | ||
|
||
|
||
uninstall: | ||
@echo "Removing $(OUTPUT) from $(BIN_DIR)..." | ||
@rm -f $(BIN_DIR)/$(OUTPUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,100 @@ | ||
# 403Unlocker-cli | ||
Golang cli for 403Unlocker | ||
# 403Unlocker-CLI | ||
|
||
403Unlocker-CLI is a versatile command-line tool designed to bypass 403 restrictions effectively. It provides subcommands to handle DNS resolution, DNS server selection, and Docker image proxy discovery. | ||
|
||
## Features | ||
- **Check**: Test if a specific URL can be resolved using a custom DNS server. | ||
- **DNS**: Find the most responsive DNS server from a list of custom DNS options. | ||
- **Docker**: Identify the best Docker image proxy to bypass network restrictions. | ||
|
||
--- | ||
|
||
## Installation | ||
|
||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/403unlocker/403Unlocker-cli.git | ||
cd 403Unlocker-cli | ||
``` | ||
2. Install the project: | ||
```bash | ||
make install | ||
``` | ||
|
||
3. Run the project: | ||
```bash | ||
403unlocker --help | ||
``` | ||
--- | ||
|
||
## Usage | ||
|
||
### General Syntax | ||
``` | ||
403unlocker <command> [flags] | ||
``` | ||
|
||
### Commands | ||
|
||
#### 1. Check | ||
Test if a URL can be resolved using a custom DNS server. | ||
``` | ||
403unlocker check <URL> | ||
``` | ||
Example: | ||
``` | ||
403unlocker check "https://pkg.go.dev" | ||
``` | ||
|
||
#### 2. DNS | ||
Find the fastest DNS sni-proxy among a list of DNS options. | ||
``` | ||
403unlocker dns <URL> | ||
``` | ||
|
||
Example: | ||
``` | ||
403unlocker dns "https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-16.8.0-ce.0.el7.x86_64.rpm/download.rpm" | ||
``` | ||
|
||
#### 3. Docker | ||
Identify the best Docker image proxy for bypassing network restrictions. | ||
``` | ||
403unlocker docker <DOCKER-IMAGE> | ||
``` | ||
|
||
Example: | ||
``` | ||
403unlocker docker "gitlab/gitlab-ce:17.0.0-ce.0" | ||
``` | ||
|
||
|
||
--- | ||
|
||
## Flags | ||
- `--help`: Display help for any command. | ||
|
||
--- | ||
|
||
## Requirements | ||
- Go 1.18 or higher | ||
|
||
--- | ||
|
||
## Contributing | ||
Contributions are welcome! Feel free to open an issue or submit a pull request. | ||
|
||
1. Fork the repository. | ||
2. Create a new branch. | ||
3. Commit your changes. | ||
4. Push the branch and create a PR. | ||
|
||
--- | ||
|
||
## License | ||
This project is licensed under the GPL-3.0 License. See the [LICENSE](https://github.com/403unlocker/403Unlocker-cli/blob/main/LICENSE) file for more information. | ||
|
||
--- | ||
|
||
## Contact | ||
For any questions or feedback, reach out at [[email protected]](mailto:[email protected]). |