Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does hyper scan support gzip pcap ? #10

Closed
sadegh01 opened this issue Dec 5, 2015 · 1 comment
Closed

Does hyper scan support gzip pcap ? #10

sadegh01 opened this issue Dec 5, 2015 · 1 comment

Comments

@sadegh01
Copy link

sadegh01 commented Dec 5, 2015

Does Hyperscan support gzip webpages ? I run a test on www.bing.com with ./pcapscan [pattern] [pcap file] and hyperscan Couldn't find 'Legal' or any pattern
It would be grate if you help me .
best regards

@jviiret
Copy link
Contributor

jviiret commented Dec 6, 2015

Hyperscan itself is solely a regex matching engine; it does not implement anything to do with network protocols and it does not do any decoding/transformation of the data being scanned -- that job is for the calling application.

The pcapscan example code is a very minimal example intended to demonstrate and benchmark Hyperscan against some data in streaming mode; all it does is pick packets up out of the PCAP file, assign them to flows based on the five-tuple on the packet headers, and pass them to hs_scan_stream() for scanning.

To do what you ask, you will need to write an application (or extend pcapscan) to do correct TCP stream ordering/reassembly/flow assignment, then HTTP decode and decompression, then pass the decompressed data stream to Hyperscan to be scanned.

@jviiret jviiret closed this as completed Dec 6, 2015
@intel intel locked and limited conversation to collaborators Aug 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants