Giter VIP home page Giter VIP logo

Comments (5)

psdesse avatar psdesse commented on June 9, 2024

Hi,

You can check the code for the http dissector. We have custom hooks like the one you want to define.

if not haka.rule_hook("http-".. name, http) then
    return nil
end

This is the example for http. In your case you have to call the function haka.rule_hook(hook_name, ).

If you are working with dissector, you might to check the develop branch. We have reworked and improved a lot the dissector part.

from haka.

HRonan avatar HRonan commented on June 9, 2024

I had tested to include this function haka.rule_hook but without a full success.
But I didn't know that the code of dissectors will be fully reorganized. I will examine the develop branch.

Thank you.

from haka.

HRonan avatar HRonan commented on June 9, 2024

I am trying the develop branch of haka, and I noticed a little issue with git submodule init and git submodule update. The urls in .gitmodule seemed to be wrong because my submodule update failed (it may be the configuration of my network which raises an issue with git:// urls).

So I modified urls and the git submodule commands have been executed without error:

[submodule "external/sphinx-lua"]
path = external/sphinx-lua
url = https://github.com/redjack/sphinx-lua.git
[submodule "external/iniparser/src"]
path = external/iniparser/src
url = https://github.com/ndevilla/iniparser.git
[submodule "external/lua/src"]
path = external/lua/src
url = https://github.com/haka-security/lua.git
[submodule "external/luajit/src"]
path = external/luajit/src
url = http://luajit.org/git/luajit-2.0.git
[submodule "external/luaunit/src"]
path = external/luaunit/src
url = https://github.com/bluebird75/luaunit.git

from haka.

psdesse avatar psdesse commented on June 9, 2024

Thanks for the feedback. We will change our paths to prefer https over git.

from haka.

psdesse avatar psdesse commented on June 9, 2024

We have changed it : 133e442. It is possible if needed to replace those uri using the global .gitconfig if needed.

from haka.

Related Issues (20)

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.