Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43167
    Mbg891
    Participant

    Good day,

    I am on the code_injector tutorial, and after accidentally messing around with the pip package I think I busted my netfilterqueue.

    I’m running the iptables (iptables -I INPUT -j NFQUEUE –queue-num 0 and iptables -I OUTPUT -j NFQUEUE –queue-num 0), that part is fine… but when I go to run my code I am getting:

    Traceback (most recent call last):
    File “code_injector.py”, line 42, in <module>
    queue.bind(0, process_packet)
    File “netfilterqueue.pyx”, line 182, in netfilterqueue.NetfilterQueue.bind (netfilterqueue.c:4388)
    OSError: Failed to create queue 0.

    Any idea why this OS Error is popping up? I do want to think it has something to do with the netfilterqueue.pyx file, which I cannot locate for the life of me to view line 182 and try to dig further… as much as I love this puzzle of figuring things out, I’ve exhausted my attempts.

    Thanks!

    #43185
    Diego PérezDiego Pérez
    Participant

    Hi!
    That happened because once you have run the code it might crashed and queue 0 is unavailable, the solution is to reboot your machine and it will be abalable again.

    Hope it helps!
    Diego

    #43224
    Mbg891
    Participant

    Diego,

    That fixed my problem! 🙂

    Thank you very much, you are helpful as always.

    #43233
    Diego PérezDiego Pérez
    Participant

    You’re welcome!

    Greetings!
    Diego

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Privacy Overview
ZSecurity logo featuring a stylized red letter Z

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

3rd Party Cookies

This website uses Google Analytics and Linkedin to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping these cookies enabled helps us to improve our website.