passmenu with dmenu

pass audit

 pass audit 網盤
  w  Password breached: 103545 from 網盤/dropbox.com/merlyncaulfield@gmail.com has been breached 146 time(s).
  w  Password breached: 103545 from 網盤/i.360.cn/merlyncaulfield@163.com has been breached 146 time(s).
  w  Weak password detected: 103545 from 網盤/dropbox.com/merlyncaulfield@gmail.com might be weak. Score 1 (358431 guesses). This estimate is based on the sequence (date)
  w  Weak password detected: 103545 from 網盤/i.360.cn/merlyncaulfield@163.com might be weak. Score 1 (358431 guesses). This estimate is based on the sequence (date)
 [x] Error: 4 passwords tested and 2 breached, 2 weak passwords found.
  .  You should update them with 'pass update'.

pass update

git clone https://github.com/roddhjav/pass-update/
cd pass-update
make install

To begin, there is a single command to initialize the password store

# Create local password store
pass init <gpg key id>

# Enable management of local changes through Git
pass git init
# Add the the remote git repository as 'origin'
pass git remote add origin user@server:~/.password-store
# Push your local Pass history
pass git push -u --all

UPDATE

merlyn@brightmoon ~/.password-store $ git checkout -b private
fatal: A branch named 'private' already exists.
merlyn@brightmoon ~/.password-store $ git add ^C
merlyn@brightmoon ~/.password-store $ touch private/x
merlyn@brightmoon ~/.password-store $ git add private/x
merlyn@brightmoon ~/.password-store $ git commit -m 'new'
[private 1a50c22] new
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 private/x
merlyn@brightmoon ~/.password-store $ git push --set-upstream  https://github.com/loolwv7/private
To https://github.com/loolwv7/private
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/loolwv7/private'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
merlyn@brightmoon ~/.password-store $ git push --set-upstream  https://github.com/loolwv7/private private
Enumerating objects: 2133, done.
Counting objects: 100% (2133/2133), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1900/1900), done.
Writing objects: 100% (2133/2133), 295.76 KiB | 2.19 MiB/s, done.
Total 2133 (delta 819), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (819/819), done.
remote: 
remote: Create a pull request for 'private' on GitHub by visiting:
remote:      https://github.com/loolwv7/private/pull/new/private
remote: 
To https://github.com/loolwv7/private
 * [new branch]      private -> private
Branch 'private' set up to track remote branch 'private' from 'https://github.com/loolwv7/private'.
merlyn@brightmoon ~/.password-store $ git push --set-upstream  https://github.com/loolwv7/private master
To https://github.com/loolwv7/private
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://github.com/loolwv7/private'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
merlyn@brightmoon ~/.password-store $ git push --set-upstream  https://github.com/loolwv7/private private
Branch 'private' set up to track remote branch 'private' from 'https://github.com/loolwv7/private'.
Everything up-to-date
merlyn@brightmoon ~/.password-store $ touch private/xxxxx
merlyn@brightmoon ~/.password-store $ git add private/xxxxx
merlyn@brightmoon ~/.password-store $ git commit -m 'new--n'
[private 7cc63b2] new--n
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 private/xxxxx
merlyn@brightmoon ~/.password-store $ git push --set-upstream  https://github.com/loolwv7/private private
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 292 bytes | 292.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/loolwv7/private
   1a50c22..7cc63b2  private -> private
Branch 'private' set up to track remote branch 'private' from 'https://github.com/loolwv7/private'.

pass2csv

$ gpg -d ~/.password-store/xxx.gpg

$ pass2csv ~/.password-store/Forex/ - --exclude '^---$' --get-field Username '(username|email):?' --get-field URL 'url:?'

pass2csv ~/.password-store/Forex/ -     --exclude '^---$'     --get-field Username '(username|email):?'     --get-field URL 'url:?' 
Processing /home/merlyn/.password-store/Forex/secure.pepperstone.com/merlyncaulfield@gmail.com.gpg

désert/Linux/pass (last edited 2024-03-15 08:11:13 by merlyn)