Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get the following data from the poll keys
- Time difference load-0 key and last poll key
- Get the following data out of each UID
- URL
- If connection was HTTP or HTTPS
- IP
- Plugins
- ka=list()
- dta=list()
- a=False
- d = open("redisOutput.txt", "r+")
- c= open("HashKeys.txt", 'w')
- for line in d.readlines():
- if "|" in line:
- uid=line.split
- h4sh=line[:26]
- string=line[line.find(h4sh[1])-1:line.find("|")]
- url=partFinder(line, 1, 2)
- ip=partFinder(line, 2, 3)
- pl=partFinder(line, 19, 20)
- c.write(string+Q+ip+Q+url+Q+pl+'n')
- '''
- if "https" in line:
- #a=True
- if a==True:
- #print("Https")
- if a==False:
- #print("Http")
- '''
- f=open("redisOutput.txt", "r+")
- for line in f.readlines():
- if "|" in line:
- uid=line.split
- h4sh=line[:26]
- dta.append(h4sh)
- string=line[line.find(h4sh[1])-1:line.find("|")]
- ka.append(string)
- key=line[line.find(line[26])+1:line.find("|")]
- f.close()
- dictionary = {}
- for h4sh in dta:
- f=open("redisOutput.txt", "r+")
- keys = []
- for line in f.readlines():
- if h4sh in line:
- string=line[line.find(h4sh[1])-1:line.find("|")]
- print h4sh
- eb=partFinder(line, 1, 31)
- keys.append(string + "|"+ eb)
- dictionary[h4sh] = keys
- f.close()
- print dictionary[h4sh]
- for h4sh in dta:
- nop=line[line.find(line[30])+1:line.find("|")]
- loadkey=""
- loadtime = ""
- highestpoll=""
- pollnum = 0
- for key in dictionary[h4sh]:
- if "load-0" in key:
- loadtime = partFinder(line, 0, 1)
- if "poll" in key:
- keynum = nop
- if keynum > pollnum:
- highestpoll = key
- pollnum = keynum
- #print(loadkey,highestpoll)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement