Giter Club home page Giter Club logo

httpreplay's People

Contributors

1earch avatar jbremer avatar mhils avatar ricovz avatar wesinator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

httpreplay's Issues

Unknown HTTP encoding : "br"

Hi,
I've noticed that I was unable to decrypt the traffic normally one of the requests was using the "br" encoding in the header "content-encoding" (that's what I understood). The request was in HTTP/2.0.
Can you check this ? (I was analyzing "https://www.airfrance.fr" with Cuckoo).
FYI, I post the issue here because it's httpreplay that is raising an error :)
Thank you

Missing LICENSE

Source is commented with

# See the file 'LICENSE' for copying permission

But actual license file is missing

dkpt/pcap.py wants a file object but httprelay requests/sends a path

This may or may not be an issue depending on the intent of reader.py. But, httpreplay/reader.py passes a file path (variable name fp) to dkpt/pcap.py but dkpt wants a file object. This is causing issues in cuckoo/modules/processing/network.py (Cuckoo Sandbox 2.0-RC1).

READER.PY

    def __init__(self, fp):
        self.tcp = None
        self.udp = None
        self.values = []

        try:
            #SHOULD PASS FILE OBJECT NOT PATH
            self.pcap = dpkt.pcap.Reader(fp)
        except ValueError as e:
            if e.message == "invalid tcpdump header":
                log.critical("Currently we don't support PCAP-NG files")
            self.pcap = None

PCAP.PY INIT

class Reader(object):
    """Simple pypcap-compatible pcap file reader."""
    def __init__(self, fileobj):
        self.name = getattr(fileobj, 'name', '<%s>' % fileobj.__class__.__name__)
        self.__f = fileobj
        blah blah blah.... 

Tlslite-ng

Hi Jurriaan,

i have taken a look at the code of httpreplay, because i had some issues during the decrytion of https traffic with cuckoo. My thoughts about these issues are that you are using tlslite within the code, but tlslite does not support newer cipher suites. Whereas within the code of setup.py you are using tlslite-ng as dependency and not tlslite.

Is that just a typing error that smegma.py is using tlslite as importing library?!?

Cheers,

Error decoding RC4 sessions

Hi Jurriaan,
i found a strange error decoding some sessions. I added the pcap.
The error "AttributeError: 'str' object has no attribute 'name'" that you see if running without debugging is not correct. Inside the debugger you get a assert because it is not a block cipher (see attachment)
I just connected to https://www.heise.de. The error occurs inside tlslite-ng. There seems to be the same error with version 0.7-alpha2.
screenshot from 2017-01-04 19-01-46
screenshot from 2017-01-04 19-01-18
tlsmaster.txt

dump.zip

Bug fixed in commit fca7349 still exists in latest release

Hello, would you be able to publish a new release? There's a bug where you changed the function name (init_to_str to inet_to_str), but not other places that call this function. You fixed this, but the latest release (0.2.6) doesn't have the fix.
Could you please publish a release with commit fca7349 in it? That would be greatly appreciated!

Packages not sent

Hi,

I am trying to use your tool, but I am facing some difficulties. I have a pcap file containing the whole communication between my kali linux and a webserver, where kali linux sends packages from different ports to the webserver and the webserver responds with content or some HTTP error codes.
When I am strarting httpreplay with this pcap file, I get an output of all HTTP requests in the pcap file (seems to be everything okay), in addition I see some warnings that there are unknown streams. When I look at wireshark or tcp dump I don't see that any packages are sent. Am I missing some essential point or am I missinterpreting the purpose of the code? May the unknown streams be an issue?

Thanks for any help!

Error running httpreplay-based PCAP analysis

I read that invalid order pcap file by Wireshark and everything just OK.

Don't know why this error show up?

P/s: I think that DumpTLSMasterSecret module fail leading to this problem.

2017-07-30 05:50:58,595 [cuckoo.processing.network] ERROR: Error running httpreplay-based PCAP analysis
Traceback (most recent call last):
  File "/root/cuckoo/cuckoo_28_7/cuckoo/processing/network.py", line 899, in run
    results.update(p2.run())
  File "/root/cuckoo/cuckoo_28_7/cuckoo/processing/network.py", line 776, in run
    l = sorted(r.process(), key=lambda x: x[1])
  File "build/bdist.linux-x86_64/egg/httpreplay/reader.py", line 118, in process
    self.tcp and self.tcp.process(ts, ip, packet)
  File "build/bdist.linux-x86_64/egg/httpreplay/smegma.py", line 87, in process
    s.process(ts, tcp, to_server)
  File "build/bdist.linux-x86_64/egg/httpreplay/smegma.py", line 361, in process
    self.states[self.state](self, ts, tcp, to_server)
  File "build/bdist.linux-x86_64/egg/httpreplay/smegma.py", line 126, in state_init_syn
    raise InvalidTcpPacketOrder(tcp)
InvalidTcpPacketOrder: �������KԌ�P@5�D EEEFFDELFEEPFACNFBDCEEFCFADHEICA FHEJEOCNDIEPEGEMFBFEFFEEEOEDLAA

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.