From 89b23c0cd5559a318c0e4908e186e736dfdcbb44 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Tue, 2 Apr 2013 12:42:27 -0400 Subject: [PATCH] added embeddedTime fuzzing to pubkey and getpubkey message assembly --- bitmessagemain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index aa7987e2..bf4c8bd6 100755 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -2182,7 +2182,7 @@ class singleWorker(QThread): myAddress = addressInKeysFile break - embeddedTime = int(time.time())+random.randrange(-300, 300) #the current time plus or minus five minutes + embeddedTime = int(time.time()+random.randrange(-300, 300)) #the current time plus or minus five minutes payload = pack('>I',(embeddedTime)) payload += encodeVarint(addressVersionNumber) #Address version number payload += encodeVarint(streamNumber) @@ -2567,7 +2567,7 @@ class singleWorker(QThread): def requestPubKey(self,addressVersionNumber,streamNumber,ripe): - payload = pack('>I',int(time.time())) + payload = pack('>I',(int(time.time())+random.randrange(-300, 300)))#the current time plus or minus five minutes. payload += encodeVarint(addressVersionNumber) payload += encodeVarint(streamNumber) payload += ripe