Payload of packets generated by text2pcap doesn't appear as L7 payload
It appears as a "TCP payload" when I open pcapng generated file in Wireshark. I want this payload to appear as another layer above TCP, instead. Is it possible? The script I've written to generate packets is this:
#!/bin/bash
echo "O2020-02-22 15:35:08" > captura.txt
echo -n "Enviament" | hexdump -C >> captura.txt
echo "I2020-02-22 15:35:09" >> captura.txt
echo -n "Recepció" | hexdump -C >> captura.txt
text2pcap -anD -4 10.0.0.1,9.9.9.9 -T 12345,80 -t "%Y-%m-%d %H:%M:%S" captura.txt captura.pcapng
Thanks!
On the other hand, I haven't found how to specify custom flags to each generated TCP packet...all of them are simply "ACK"...