added embeddedTime fuzzing to pubkey and getpubkey message assembly #102

Merged
Atheros1 merged 3 commits from master into master 2013-04-02 19:13:12 +02:00
Showing only changes of commit 89b23c0cd5 - Show all commits

View File

@ -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