Update 2023-05-02 20:23 OpenBSD/amd64-x13
This commit is contained in:
parent
0f14587cf0
commit
e774c1aea2
4
.bin/bbs-tunnel
Executable file
4
.bin/bbs-tunnel
Executable 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
|
@ -1,17 +1,18 @@
|
|||||||
#/bin/sh
|
#/bin/sh
|
||||||
|
|
||||||
if [ -z "$2" ]; then
|
echo -n "Internet/...: "
|
||||||
echo "Usage: pass-add Folder/page.de username"
|
read
|
||||||
exit 2
|
_file="Internet/$REPLY"
|
||||||
fi
|
|
||||||
|
echo -n "Username: "
|
||||||
|
read
|
||||||
|
_login="$REPLY"
|
||||||
|
|
||||||
_file="${1}"
|
|
||||||
_login="${2}"
|
|
||||||
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
|
_password="$(pwgen -syn -r "{}'\\§()°\`|[]\";" 16 1)"
|
||||||
|
|
||||||
{
|
{
|
||||||
echo "$_password";
|
echo "$_password";
|
||||||
echo "login: $_login";
|
echo "Username: $_login";
|
||||||
} | pass insert -m "${_file}"
|
} | pass insert -m "${_file}"
|
||||||
|
|
||||||
echo "======="
|
echo "======="
|
||||||
|
@ -31,13 +31,14 @@ do
|
|||||||
echo "$PASS" | grep -i "^email:"
|
echo "$PASS" | grep -i "^email:"
|
||||||
echo "$PASS" | grep -i "^url:"
|
echo "$PASS" | grep -i "^url:"
|
||||||
echo "---------"
|
echo "---------"
|
||||||
echo -n "[E]dit [R]ename [N]ew [D]elete: "
|
echo -n "[E]dit [R]ename [G]enerate [N]ew [D]elete: "
|
||||||
read
|
read
|
||||||
|
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
[eE]) echo "Editing $password."; pass edit "$password"; ;;
|
[eE]) echo "Editing $password."; pass edit "$password"; ;;
|
||||||
[rR]) echo -n "Rename to: "; read -i "$FOLDER" -e REPLY; [ ! -z "$REPLY" ] && pass mv "$password" "$REPLY"; ;;
|
[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; ;;
|
[dD]) pass rm "$password"; unset EXTRA; ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user