mirror of
https://github.com/rwinkhart/sshyp-labs.git
synced 2026-09-02 23:27:35 -04:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25a5731936 | ||
|
|
286645dd31 | ||
|
|
ec633c5104 |
@@ -27,9 +27,11 @@ def mfa_read_shortcut(): # extracts MFA info from the user-specified sshyp entr
|
|||||||
s_exit(1)
|
s_exit(1)
|
||||||
if quick_unlock_enabled == 'true':
|
if quick_unlock_enabled == 'true':
|
||||||
_mfa_data = decrypt(directory + arguments[0],
|
_mfa_data = decrypt(directory + arguments[0],
|
||||||
_quick_pass=whitelist_verify(sshyp_data.get('SSHYNC', 'port'),
|
_quick_pass=whitelist_verify(sshyp_data.get('SSHYNC', 'port'),
|
||||||
sshyp_data.get('SSHYNC', 'user'), sshyp_data.get('SSHYNC', 'ip'),
|
sshyp_data.get('SSHYNC', 'user'),
|
||||||
listdir(f"{home}/.config/sshyp/devices")[0]))
|
sshyp_data.get('SSHYNC', 'ip'),
|
||||||
|
listdir(f"{home}/.config/sshyp/devices")[0],
|
||||||
|
sshyp_data.get('SSHYNC', 'identity_file')))
|
||||||
else:
|
else:
|
||||||
_mfa_data = decrypt(directory + arguments[0])
|
_mfa_data = decrypt(directory + arguments[0])
|
||||||
try:
|
try:
|
||||||
@@ -89,5 +91,4 @@ if __name__ == '__main__':
|
|||||||
run(('xclip', '-sel', 'c'), stdin=Popen(('printf', _mfa_key), stdout=PIPE).stdout)
|
run(('xclip', '-sel', 'c'), stdin=Popen(('printf', _mfa_key), stdout=PIPE).stdout)
|
||||||
sleep(1)
|
sleep(1)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('\n')
|
|
||||||
s_exit(0)
|
s_exit(0)
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[sshyp-mfa]
|
||||||
|
desc = read mfa data from sshyp entries to generate and copy totp keys to the clipboard (optional Steam support)
|
||||||
|
usage = sshyp /<entry name> copy -m
|
||||||
|
exe = https://raw.githubusercontent.com/rwinkhart/sshyp-labs/v1.5.1.1/extensions/sshyp-mfa/sshyp-mfa.py
|
||||||
|
ini = https://raw.githubusercontent.com/rwinkhart/sshyp-labs/v1.5.1.1/extensions/sshyp-mfa/sshyp-mfa.ini
|
||||||
Reference in New Issue
Block a user