public function check()
 {
     if (!$this->feof() and $this->getName() !== "UnknownData Packet") {
         $offset = strlen($this->buffer) - $this->offset;
         echo $this->getName() . ": Bufferの解析し残しています。 " . $offset . "\n";
         file_put_contents(PEPacketAnalyze::getInterface()->getPath() . "/" . $this->getName() . ".dat", $this->buffer);
         file_put_contents(PEPacketAnalyze::getInterface()->getPath() . "/" . $this->getName() . "1.dat", substr($this->buffer, $this->offset));
     }
 }
Example #2
0
 public function check()
 {
     if (!$this->feof() and $this->getName() !== "UnknownData Packet") {
         if (PEPacketAnalyze::getInterface()->getDebugLevel() >= 1 and $this->echo) {
             $offset = strlen($this->buffer) - $this->offset;
             PEPacketAnalyze::getInterface()->getLogger()->debug("[" . $this->getName() . "] Bufferの解析し残しています。 " . $offset . "", 1);
             file_put_contents(PEPacketAnalyze::getInterface()->getPath() . "/" . $this->getName() . ".dat", $this->buffer);
             file_put_contents(PEPacketAnalyze::getInterface()->getPath() . "/" . $this->getName() . "1.dat", substr($this->buffer, $this->offset));
         }
     }
 }
 public function decode()
 {
     PEPacketAnalyze::getInterface()->getLogger()->debug("UnknownDataPacketが送信されました。 : 0x" . bin2hex($this->buffer[0]) . "", 1);
     file_put_contents(PEPacketAnalyze::getInterface()->getPath() . "/0x" . bin2hex($this->buffer[0]) . ".dat", $this->buffer);
     //$this->echo = true;
 }
 public function decode()
 {
     //print_r("0x".bin2hex($this->buffer)."\n");
     echo "UnknownDataPacketが送信されました。\n";
     file_put_contents(PEPacketAnalyze::getInterface()->getPath() . "/0x" . bin2hex($this->buffer[0]) . ".dat", $this->buffer);
 }