Guest User

Untitled

a guest
Oct 22nd, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. use strict;
  2. use Net::PcapWriter;
  3. my $pcap = Net::PcapWriter->new('test.pcap');
  4. my $conn = $pcap->tcp_conn('1.1.1.1',1234,'2.2.2.2',80);
  5. $conn->write(0,"GET / HTTP/1.0rnHost:..."); # HTTP request from client
  6. $conn->write(1,"HTTP/1.1 200 okrn..."); # HTTP response from server
Add Comment
Please, Sign In to add comment