Added the option to automatically re-inject packets that we have fuzzed and injected...
[goodfet] / client / GoodFETMCPCANCommunication.py
index 09519d2..7d13ae7 100644 (file)
@@ -29,6 +29,7 @@ class GoodFETMCPCANCommunication:
        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/"
        
 
     
        
 
     
@@ -569,8 +570,10 @@ class GoodFETMCPCANCommunication:
             SIDhigh = (sID >> 3) & 0xFF; # get SID bits 10:3, rotate them to bits 7:0
             packet = [SIDhigh,SIDlow,0x00,0x00,0x08]
             #dlc = row[2]
             SIDhigh = (sID >> 3) & 0xFF; # get SID bits 10:3, rotate them to bits 7:0
             packet = [SIDhigh,SIDlow,0x00,0x00,0x08]
             #dlc = row[2]
-            for i in range(4,dlc+4):
+            dlc = 8
+            for i in range(3,dlc+3):
                 packet.append(row[i])
                 packet.append(row[i])
+            print packet
             self.client.txpacket(packet)
                 
         
             self.client.txpacket(packet)