cassandra matcher
This commit is contained in:
parent
d99a76ad42
commit
ebf2befd77
@ -7,11 +7,6 @@ import (
|
|||||||
"git.loafle.net/overflow/overflow_probe/model/scaninfo"
|
"git.loafle.net/overflow/overflow_probe/model/scaninfo"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
COMPRESSION = "COMPRESSION"
|
|
||||||
CQL_VERSION = "CQL_VERSION"
|
|
||||||
)
|
|
||||||
|
|
||||||
type cassandra struct {
|
type cassandra struct {
|
||||||
Version uint8
|
Version uint8
|
||||||
Flags uint8
|
Flags uint8
|
||||||
@ -90,7 +85,8 @@ func (t *CassandraMatcher) Match(index int, packet *packet.Packet, info scaninfo
|
|||||||
if c.Opcode != 0x06 {
|
if c.Opcode != 0x06 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
var itemcount uint16
|
|
||||||
|
//var itemcount uint16
|
||||||
|
|
||||||
//if binary.Read(reader, binary.BigEndian, &itemcount) != nil {
|
//if binary.Read(reader, binary.BigEndian, &itemcount) != nil {
|
||||||
// return false
|
// return false
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package dhcp
|
package dhcp
|
||||||
|
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user