summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5b7f84b)
self.client.serInit()
self.client.MCPsetup();
self.DATALOCATION = "../../contrib/ThayerData/"
self.client.serInit()
self.client.MCPsetup();
self.DATALOCATION = "../../contrib/ThayerData/"
+ self.INJECTDATALOCATION = self.DATALOCATION+"InjectedData/"
#get folder information (based on today's date)
now = datetime.datetime.now()
datestr = now.strftime("%Y%m%d")
#get folder information (based on today's date)
now = datetime.datetime.now()
datestr = now.strftime("%Y%m%d")
- path = self.DATALOCATION+datestr+"_GenerationFuzzedPackets.csv"
+ path = self.DATALOCATION+"InjectedData/"+datestr+"_GenerationFuzzedPackets.csv"
filename = path
outfile = open(filename,'a');
dataWriter = csv.writer(outfile,delimiter=',');
filename = path
outfile = open(filename,'a');
dataWriter = csv.writer(outfile,delimiter=',');
packet[i+5] = value
#put a rough time stamp on the data and get all the data bytes
packet[i+5] = value
#put a rough time stamp on the data and get all the data bytes
- row = ['#',time.time(), standardId]
+ row = [time.time(), standardId,8]
msg = "Injecting: "
for i in range(5,13):
row.append(packet[i])
msg += " %d"%packet[i]
msg = "Injecting: "
for i in range(5,13):
row.append(packet[i])
msg += " %d"%packet[i]
dataWriter.writerow(row)
self.client.txpacket(packet)
#inject the packet repeatily
dataWriter.writerow(row)
self.client.txpacket(packet)
#inject the packet repeatily