项目作者: negbie

项目描述 :
Very basic pcap editor in Go
高级语言: Go
项目地址: git://github.com/negbie/edcap.git
创建时间: 2018-08-17T14:00:14Z
项目社区:https://github.com/negbie/edcap

开源协议:MIT License

下载


edcap

Very tiny pcap manipulator. Something like WireEdit, TraceWrangler but not as ugly and waaaaay more dump;)

Usage

  1. -ctn
  2. change time now (default true)
  3. -dbg
  4. debug
  5. -idi string
  6. input dst IP
  7. -ifn string
  8. input file name
  9. -isi string
  10. input src IP
  11. -ita string
  12. input text array
  13. -odi string
  14. output dst IP
  15. -ofn string
  16. output file name
  17. -osi string
  18. output src IP
  19. -ota string
  20. output text array

Examples

  1. # Replace src IP 95.136.3.174 to 1.1.1.1 and write to some_output.pcap
  2. ./edcap -isi 95.136.3.174 -osi 1.1.1.1 -ifn some_input.pcap -ofn some_output.pcap
  3. # Same as above plus replace string PUBLISH with INVITE and snom821 with Fritzbox
  4. ./edcap -isi 95.136.3.174 -osi 1.1.1.1 -ifn some_input.pcap -ofn some_output.pcap -ita PUBLISH,snom821 -ota INVITE,Fritzbox

TODO

Fix various layer length header to avoid bogus warning.