1)
2)
ref: https://www.cellstream.com/reference-reading/tipsandtricks/431-finding-text-strings-in-wireshark-captures
1)
2)
ref: https://www.cellstream.com/reference-reading/tipsandtricks/431-finding-text-strings-in-wireshark-captures
Biasanya IDS akan simpan packet dalam bentuk base64.
Utk lihat packet dalam bentuk asal:
1) decode base64 ke format HEX (eg: https://cryptii.com/pipes/base64-to-hex)
2) Parse hex dan display dalam proper network layer (eg: https://hpd.gasmi.net/ , http://packetor.com/)
Eg:
https://cryptii.com/pipes/base64-to-hex
Format pcap file
Dalam Global Header, ada timzone info.
Dalam Packet Header ada timestamp.
Dalam Packet Data ada network traffic yg lalu (dihantar/diterima) NIC tersebut.
Packet vs Frame
Frame is refer to data link layer
Packet refer to network layer
Ref:
- https://www.elvidence.com.au/understanding-time-stamps-in-packet-capture-data-pcap-files/
Scapy adalah library python yang boleh digunakan untuk edit packet dalam dalam fail pcap.
Cara nak tukar timestamp pada setiap packet
wrpcap("out.pcap", cooked)
Cara nak tukar mac address
mac_asal = a
mac_baru = b
if ARP in p:
if p[ARP].hwsrc == mac_asal
p[ARP].hwsrc = mac_baru