-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmulti_protect.py
More file actions
19 lines (18 loc) · 839 Bytes
/
Copy pathmulti_protect.py
File metadata and controls
19 lines (18 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from sys import argv, executable
from os import system
if __name__ == '__main__':
try:
if argv[1] == '-e':
exit(system(f"{executable} pyRansom.py -e "
f"--input {argv[2]} "
f"--output {argv[3]} "
f"asym -priv {argv[4]} "
f"-pub {argv[5]} {' '.join(argv[6:])}"))
elif argv[1] == '-d':
exit(system(f"{executable} pyRansom.py -d "
f"--input {argv[2]} --output {argv[3]} "
f"asym -priv {argv[4]} "
f"-pub {argv[5]} {argv[6]}"))
except IndexError as e:
print(f"Usage: {argv[0]} -e|-d <input_file> <output_file> <private_key> <public_key> [<user1_public_key... ["
"userN_public_key]]|<sender_public_key>")