Code Monkey home page Code Monkey logo

Comments (7)

nagarjung avatar nagarjung commented on June 1, 2024

@guedou @nv-anssi : could you please help me on this ?

from tabi.

 avatar commented on June 1, 2024

Hello Nagarjung,

We are not able to reproduce your error. What version of Python do you run?

Nicolas

from tabi.

nagarjung avatar nagarjung commented on June 1, 2024

@nv-anssi : I run python 2.7.6, which version is required to run this tool.
FYI, I am not running the tool inside virtualenv. I am running on host machine with python 2.7.6

from tabi.

nagarjung avatar nagarjung commented on June 1, 2024

Hi @nv-anssi : After debugging a bit, I could able to point out the issue

https://github.com/ANSSI-FR/tabi/blob/master/tabi/annotate.py

line 222

if asn in node.data and int(prefix.split("/")[1]) <= node.data[asn]:

-> if asn in node.data and int(prefix.split("/")[1]) <= node.data[asn]:
(Pdb) asn in node.data
True
(Pdb) int(prefix.split("/")[1])
19
(Pdb) node.data[asn]
set(['apnic'])

(Pdb) n
TypeError: 'can only compare to a set'

from tabi.

 avatar commented on June 1, 2024

The value in node.data[asn] is unexpected. It should be an integer. Could you check that your roa.csv file is correct (same as the one in the repository)?

from tabi.

nagarjung avatar nagarjung commented on June 1, 2024

Yes the roa.csv file is same as in the repository.

16079,194.209.159.0/24,24,True
16078,80.89.147.0/24,24,True
35545,185.42.222.0/24,24,True
16071,212.234.194.0/24,24,True
35238,77.203.169.0/24,24,True
35238,78.113.119.0/24,24,True

Yes the comparision int(prefix.split("/")[1]) <= node.data[asn] is throwing an error.

May be problem with data insertion ?

from tabi.

nagarjung avatar nagarjung commented on June 1, 2024

@nv-anssi : Finally caught the issue.

https://github.com/ANSSI-FR/tabi/blob/master/tabi/emulator.py

line 136

funcs.append(partial(annotate_if_roa, ro_rad_tree))

I think wrong object ro_rad_tree is passed, instead the object should have been roa_rad_tree

funcs.append(partial(annotate_if_roa, roa_rad_tree))

from tabi.

Related Issues (6)

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.