Sorry, you have the wrong group. This is for Trac, the project management
software.
--Noah
On Jul 21, 2011, at 7:21 PM, RandomGuy wrote:
> Hi, I have some network data I recorded with Wireshark on my ethernet
> interface and want to replay it on my loopback interface. The only
> data I need to change is the destination IP address (I recorded the
> data coming to 192.168.1.1 and I want it to be 127.0.0.1). I already
> filtered the data with wireshark so if I can change all the messages
> that would be great.
>
> I tried this:
>
> sudo tcprewrite --infile=last_run.pcap --outfile=last_runX.pcap --
> dstipmap=192.168.1.1/32:127.0.0.1/32
>
> But when I replay that pcap data I dont see any output (as per the
> python script I have below which should echo the data). I know the
> python script works because i tested it with a similar python udp
> sender.
>
> I also tried this
>
> sudo tcprewrite --pnat=192.168.1.1/32:127.0.0.1/32 --
> infile=last_run.pcap --outfile=last_runX.pcap --skipbroadcast
>
> And that didnt provide the data either.
>
> I tried replaying with this
>
> sudo tcpreplay --intf1=eth0 last_runX.pcap
>
> and
>
> sudo tcpreplay --intf1=lo last_runX.pcap
>
> I can send either file to a computer on my network with the address
> 192.168.1.1 and it will get the data. I want to be able to get it on
> my local machine without needing to have two computers all the time.
>
> Am I doing something wrong? Thanks for the help.
>
> #!/usr/bin/env python
>
> import socket
>
> aListenAddress="127.0.0.1"
> aListenPort = 15500
> BufferSize = 1024
>
> if __name__ == "__main__":
>
> # Bind to the socket
> s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
> s.bind( (aListenAddress,aListenPort) )
>
> while True:
> data, addr = s.recvfrom( BufferSize )
> print('Message: ' + str(data) )
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/trac-dev?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.