SessionInfo parsing and another stuff

This commit is contained in:
2024-10-27 23:25:28 +00:00
parent 2bc756a2f0
commit d48a6fa24a
6 changed files with 54 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
package utils
import "fmt"
func HexDump(buf []byte) {
fmt.Printf("\n============ HEX DUMP ============\n")
for k := 0; k < len(buf); k++ {
if k%4 == 0 && k > 0 {
fmt.Printf(" ")
}
if k%16 == 0 && k > 0 {
fmt.Printf("\n")
}
fmt.Printf("%02X", buf[k])
}
fmt.Printf("\n============ HEX DUMP ============\n")
}