6 def somedecode(filename):
7 with open(filename, 'rb') as csvfile:
8 spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
12 for row in spamreader:
17 if row[2] == '114.176.157.191' and row[10] == '5950':
19 if row[2] == '114.176.157.191' and row[10] == '5960':
22 bits = bits[:-(len(bits)%8)]
23 print binascii.unhexlify('%x' % int(bits, 2))
25 if __name__ == "__main__":
26 somedecode("flow_114.176.157.191_221.72.61.209.csv")