Update 2023-05-02 20:23 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-05-02 20:23:25 +02:00
parent 0f14587cf0
commit e774c1aea2
3 changed files with 15 additions and 9 deletions

4
.bin/bbs-tunnel Executable file
View File

@ -0,0 +1,4 @@
#!/bin/ksh
pkill -f "2323:localhost:2323 surfen@65.21.154.173"
sleep 1
ssh -fN -o ServerAliveInterval=15 -L 2323:localhost:2323 surfen@65.21.154.173

View File

@ -1,17 +1,18 @@
#/bin/sh
if [ -z "$2" ]; then
echo "Usage: pass-add Folder/page.de username"
exit 2
fi
echo -n "Internet/...: "
read
_file="Internet/$REPLY"
echo -n "Username: "
read
_login="$REPLY"
_file="${1}"
_login="${2}"
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
{
echo "$_password";
echo "login: $_login";
echo "Username: $_login";
} | pass insert -m "${_file}"
echo "======="

View File

@ -31,13 +31,14 @@ do
echo "$PASS" | grep -i "^email:"
echo "$PASS" | grep -i "^url:"
echo "---------"
echo -n "[E]dit [R]ename [N]ew [D]elete: "
echo -n "[E]dit [R]ename [G]enerate [N]ew [D]elete: "
read
case $REPLY in
[eE]) echo "Editing $password."; pass edit "$password"; ;;
[rR]) echo -n "Rename to: "; read -i "$FOLDER" -e REPLY; [ ! -z "$REPLY" ] && pass mv "$password" "$REPLY"; ;;
[nN]) pass generate -i "$password" 22; ;;
[gG]) pass generate -i "$password" 22; ;;
[nN]) pass-add ;;
[dD]) pass rm "$password"; unset EXTRA; ;;
esac