Update 2024-02-14 07:51 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-02-14 07:54:31 +01:00
parent b55e6a3616
commit 9624895938
373 changed files with 19074 additions and 3045 deletions

32
.bin/OLD/pwadd Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
_ask() {
# $1 question
# $2 default value
if [ -z $1 ]; then
printf "$1: "
else
printf "$1 [$2]: "
fi
}
_ask "Url" "$1"
read url
[ -z $url ] && url="$1"
_ask "User" "$2"
read user
[ -z $user ] && user="$2"
if [ -z $user ] || [ -z $url ]; then
print "User and URL must be set."
exit 1
fi
PW="$(pwgen -y --remove-chars=\~\`\"\'{}\(\)\[\]\*:/.\;\|,\<\> 24)
User: $user"
printf '%s\n' "$PW" | pass insert -fm Internet/$url 1> /dev/null
pass Internet/$url | head -1 | xclip
print "Password copied."