added embeddedTime fuzzing to pubkey and getpubkey message assembly
This commit is contained in:
parent
df2b996b88
commit
89b23c0cd5
|
@ -2182,7 +2182,7 @@ class singleWorker(QThread):
|
||||||
myAddress = addressInKeysFile
|
myAddress = addressInKeysFile
|
||||||
break
|
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 = pack('>I',(embeddedTime))
|
||||||
payload += encodeVarint(addressVersionNumber) #Address version number
|
payload += encodeVarint(addressVersionNumber) #Address version number
|
||||||
payload += encodeVarint(streamNumber)
|
payload += encodeVarint(streamNumber)
|
||||||
|
@ -2567,7 +2567,7 @@ class singleWorker(QThread):
|
||||||
|
|
||||||
|
|
||||||
def requestPubKey(self,addressVersionNumber,streamNumber,ripe):
|
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(addressVersionNumber)
|
||||||
payload += encodeVarint(streamNumber)
|
payload += encodeVarint(streamNumber)
|
||||||
payload += ripe
|
payload += ripe
|
||||||
|
|
Loading…
Reference in New Issue
Block a user