xldrx / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Failed to unpack android .cap file #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Trying to unpack the attached file I get the following error:

  File "./replayproxy.py", line 278, in <module>
    sys.exit(main())
  File "./replayproxy.py", line 263, in main
    nids.run()
  File "./replayproxy.py", line 95, in reassembleTcpStream
    processTcpStream(tcp)
  File "./replayproxy.py", line 110, in processTcpStream
    req = dpkt.http.Request(server_data)
  File "/usr/lib/python2.6/dpkt/http.py", line 75, in __init__
    self.unpack(args[0])
  File "/usr/lib/python2.6/dpkt/http.py", line 130, in unpack
    raise dpkt.UnpackError('invalid request: %r' % line)

What is the expected output? What do you see instead?

I see the exception mentioned above.

I will expect the pack to succeed.

What version of the product are you using? On what operating system?
Ubuntu Lucid
dpkt 1.7

Please provide any additional information below.
Im using dpkt through replayproxy.py
I capture the cap file from the android emulator

Original issue reported on code.google.com by ebr...@google.com on 15 Feb 2012 at 1:39

Attachments:

GoogleCodeExporter commented 9 years ago
i think you need at least 100 mbs

Original comment by matrix....@gmail.com on 17 Jun 2013 at 12:35

GoogleCodeExporter commented 9 years ago
This is not a bug in dpkt, but in the way replayproxy uses dpkt. 

Original comment by kbandla@in2void.com on 29 Dec 2014 at 5:32