mirror of
https://github.com/anotherhadi/default-creds-tui.git
synced 2026-10-05 10:58:25 +02:00
f9d3e09ca35d3bbde24fd675ce00939ecb203268
____ __ _ _ ____ _ _____ _ _ ___
| _ \ ___ / _| __ _ _ _| | |_ / ___|_ __ ___ __| |___ |_ _| | | |_ _|
| | | |/ _ \ |_ / _` | | | | | __| | | | '__/ _ \/ _` / __| | | | | | || |
| |_| | __/ _| (_| | |_| | | |_ | |___| | | __/ (_| \__ \ | | | |_| || |
|____/ \___|_| \__,_|\__,_|_|\__| \____|_| \___|\__,_|___/ |_| \___/|___|
Default Creds TUI
Find default credentials for many devices and software, without leaving the terminal
Built with bubbletea & Golang!
Colors and styles can be customized using ilovetui, which applies theme changes across all compatible TUI applications at once.
Installation
Go install
go install github.com/anotherhadi/default-creds-tui@latest
Build from source
git clone https://github.com/anotherhadi/default-creds-tui
cd default-creds-tui
go build -o default-creds-tui ./cmd/default-creds-tui
NUR (Nix/NixOS)
Available via NUR, under the anotherhadi repo:
# configuration.nix / home.nix
environment.systemPackages = [ nur.repos.anotherhadi.default-creds-tui ];
Usage
default-creds-tui [flags]
Flags:
--add-default-config copy the default config file to the config path and exit
-c, --config string path to config file (default "~/.config/default-creds-tui/config.yaml")
-m, --mode string credential source: auto, online or local (overrides the config file)
--no-colors disable colored output (used with --search)
--print pressing enter prints the selected result to stdout and exits, instead of copying the password
-s, --search string search from the CLI and print results directly, without launching the TUI
-v, --version version for default-creds-tui
Credentials come from two sources, controlled by --mode:
local: reads YAML files from~/.cache/default-creds/data(e.g. agit cloneof default-creds into~/.cache/default-creds).online: queries the default-creds.hadi.icu API.auto(default): uses the local data directory if present, otherwise falls back to the API.
Run default-creds-tui --add-default-config to write out an editable config file with all
options and keybindings.
CLI mode
Pass --search to print results straight to the terminal instead of launching the TUI, handy
for scripting or piping:
default-creds-tui --search "d-link"
default-creds-tui --search "cisco" --no-colors
Languages
Go
100%