Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
python3-gpg /
examples /
howto /
Delete
Unzip
Name
Size
Permission
Date
Action
advanced
[ DIR ]
drwxr-xr-x
2024-09-07 23:28
README.org
1.81
KB
-rw-r--r--
2018-04-16 18:40
add-userid.py
2.05
KB
-rwxr-xr-x
2018-12-07 18:20
clear-sign-file.py
1.98
KB
-rwxr-xr-x
2018-12-03 18:37
create-key.py
2.94
KB
-rwxr-xr-x
2018-12-07 18:20
decrypt-file.py
1.79
KB
-rwxr-xr-x
2018-12-03 18:37
detach-sign-file.py
2.27
KB
-rwxr-xr-x
2018-12-03 18:37
encrypt-file.py
2.53
KB
-rwxr-xr-x
2018-12-03 18:37
encrypt-sign-file.py
2.67
KB
-rwxr-xr-x
2018-12-03 18:37
encrypt-to-group-gullible.py
2.55
KB
-rwxr-xr-x
2018-12-03 18:37
encrypt-to-group-trustno1.py
2.85
KB
-rwxr-xr-x
2018-12-03 18:37
encrypt-to-group.py
2.92
KB
-rwxr-xr-x
2018-12-03 18:37
export-key.py
2.65
KB
-rwxr-xr-x
2018-12-03 18:37
export-minimised-key.py
2.68
KB
-rwxr-xr-x
2018-12-03 18:37
export-secret-key.py
2.78
KB
-rwxr-xr-x
2018-12-03 18:37
export-secret-keys.py
4.17
KB
-rwxr-xr-x
2018-12-03 18:37
groups.py
1.87
KB
-rw-r--r--
2019-01-25 21:27
import-key.py
2.99
KB
-rwxr-xr-x
2018-12-03 18:37
import-keybasekey.py
2.66
KB
-rwxr-xr-x
2018-12-18 00:47
import-keys-hkp.py
3.95
KB
-rwxr-xr-x
2018-12-18 00:47
import-keys.py
2.37
KB
-rwxr-xr-x
2018-12-03 18:37
import-mailvelope-keys.py
3.94
KB
-rwxr-xr-x
2019-02-19 20:07
keycount.py
1.42
KB
-rwxr-xr-x
2018-12-03 18:37
local-sign-group.py
5
KB
-rwxr-xr-x
2018-12-03 18:37
mutt-groups.py
2.39
KB
-rwxr-xr-x
2018-12-03 18:37
pmkey-import-alt.py
4.74
KB
-rwxr-xr-x
2018-12-18 00:47
pmkey-import-hkp-alt.py
5.84
KB
-rwxr-xr-x
2018-12-18 00:47
pmkey-import-hkp.py
4.68
KB
-rwxr-xr-x
2018-12-18 00:47
pmkey-import.py
4.18
KB
-rwxr-xr-x
2018-12-18 00:47
post_installer.py
4.56
KB
-rwxr-xr-x
2019-02-19 20:07
requirements.txt
16
B
-rw-r--r--
2018-12-18 00:47
revoke-userid.py
2.05
KB
-rwxr-xr-x
2018-12-07 18:20
send-key-to-keyserver.py
2.9
KB
-rwxr-xr-x
2018-12-07 18:20
sign-file.py
2.26
KB
-rwxr-xr-x
2018-12-03 18:37
sign-key.py
2.1
KB
-rwxr-xr-x
2018-12-07 18:20
symcrypt-file.py
2.18
KB
-rwxr-xr-x
2018-12-03 18:37
temp-homedir-config.py
4.2
KB
-rwxr-xr-x
2018-12-03 18:37
verify-signatures.py
2.02
KB
-rwxr-xr-x
2018-12-03 18:37
verify-signed-file.py
1.84
KB
-rwxr-xr-x
2018-12-03 18:37
Save
Rename
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals import gpg import os.path import requests import sys del absolute_import, division, unicode_literals # Copyright (C) 2018 Ben McGinnes <ben@gnupg.org> # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (at your option) # any later version. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License and the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU General Public License and the GNU # Lesser General Public along with this program; if not, see # <https://www.gnu.org/licenses/>. print(""" This script searches the ProtonMail key server for the specified key and imports it. Optionally enables specifying a different GnuPG home directory. Usage: pmkey-import-alt.py [search string] [homedir] """) c = gpg.Context(armor=True) url = "https://api.protonmail.ch/pks/lookup" ksearch = [] if len(sys.argv) >= 3: keyterm = sys.argv[1] homedir = sys.argv[2] elif len(sys.argv) == 2: keyterm = sys.argv[1] homedir = input("Enter the GPG configuration directory path (optional): ") else: keyterm = input("Enter the key ID, UID or search string: ") homedir = input("Enter the GPG configuration directory path (optional): ") if homedir.startswith("~"): if os.path.exists(os.path.expanduser(homedir)) is True: c.home_dir = os.path.expanduser(homedir) else: pass elif os.path.exists(homedir) is True: c.home_dir = homedir else: pass if keyterm.count("@") == 2 and keyterm.startswith("@") is True: ksearch.append(keyterm[1:]) ksearch.append(keyterm[1:]) ksearch.append(keyterm[1:]) elif keyterm.count("@") == 1 and keyterm.startswith("@") is True: ksearch.append("{0}@protonmail.com".format(keyterm[1:])) ksearch.append("{0}@protonmail.ch".format(keyterm[1:])) ksearch.append("{0}@pm.me".format(keyterm[1:])) elif keyterm.count("@") == 0: ksearch.append("{0}@protonmail.com".format(keyterm)) ksearch.append("{0}@protonmail.ch".format(keyterm)) ksearch.append("{0}@pm.me".format(keyterm)) elif keyterm.count("@") == 2 and keyterm.startswith("@") is False: uidlist = keyterm.split("@") for uid in uidlist: ksearch.append("{0}@protonmail.com".format(uid)) ksearch.append("{0}@protonmail.ch".format(uid)) ksearch.append("{0}@pm.me".format(uid)) elif keyterm.count("@") > 2: uidlist = keyterm.split("@") for uid in uidlist: ksearch.append("{0}@protonmail.com".format(uid)) ksearch.append("{0}@protonmail.ch".format(uid)) ksearch.append("{0}@pm.me".format(uid)) else: ksearch.append(keyterm) for k in ksearch: payload = {"op": "get", "search": k} try: r = requests.get(url, verify=True, params=payload) if r.ok is True: result = c.key_import(r.content) elif r.ok is False: result = r.content except Exception as e: result = None if result is not None and hasattr(result, "considered") is False: print("{0} for {1}".format(result.decode(), k)) elif result is not None and hasattr(result, "considered") is True: num_keys = len(result.imports) new_revs = result.new_revocations new_sigs = result.new_signatures new_subs = result.new_sub_keys new_uids = result.new_user_ids new_scrt = result.secret_imported nochange = result.unchanged def knom(): for ki in result.imports: for ku in c.get_key(ki.fpr).uids: return ku.uid print(""" The total number of keys considered for import was: {0} With UIDs wholely or partially matching the following string: {1} Number of keys revoked: {2} Number of new signatures: {3} Number of new subkeys: {4} Number of new user IDs: {5} Number of new secret keys: {6} Number of unchanged keys: {7} The key IDs for all considered keys were: """.format(num_keys, knom(), new_revs, new_sigs, new_subs, new_uids, new_scrt, nochange)) for i in range(num_keys): print(result.imports[i].fpr) print("") elif result is None: print(e)