further updates

This commit is contained in:
Pin
2023-03-20 23:29:49 -04:00
parent 643be473a2
commit 9812b17738
4 changed files with 89 additions and 2 deletions

View File

@@ -68,6 +68,7 @@ func (c* SocketCall) saprusPayloadLength(pkt []byte) [2]byte{
return length
}
/*
func (c* SocketCall)init(data string) {
iface, _ := net.InterfaceByName("virbr0")
conn, err := packet.Listen(iface, packet.Raw, int(layers.EthernetTypeIPv4), nil)
@@ -96,7 +97,6 @@ func (c* SocketCall)init(data string) {
DstPort: 6767,
}
// FUCK THIS
saprusPayloadLength := make([]byte, 2)
binary.BigEndian.PutUint16(saprusPayloadLength, uint16(len(data)))
var saprusPayloadLengthTwo [2]byte
@@ -128,4 +128,4 @@ func (c* SocketCall)init(data string) {
return
}
*/