Coder Social home page Coder Social logo

scamper's People

Contributors

cmand avatar dsfalves avatar maurusian avatar mnectar avatar rlcalmeida 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

Watchers

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

scamper's Issues

tracelb parsing functionality

Hi,

the code to parse tracelb warts files seems to be missing (it exists in the C code).
Do you have plans to include it?

Thank you,
Kind regards
Quirin

Issue in parsing a scamper traceroute

Flags: {'listid': 1, 'cycleid': 66, 'timeval': 1557594276.320783, 'stopreas': 5, 'stopdata': 0, 'traceflg': 32, 'attempts': 3, 'hoplimit': 0, 'tracetyp': 4, 'probesiz': 44, 'srcport': 65176, 'dstport': 65176, 'firsttl': 1, 'iptos': 0, 'timeout': 5, 'loops': 1, 'probehop': 16, 'gaplimit': 5, 'gaprch': 1, 'loopfnd': 0, 'probesent': 35, 'minwait': 0, 'confid': 0, 'srcaddr': '50.199.2.162', 'dstaddr': '91.201.186.118'}
Hops recorded: 8
{'probettl': 2, 'replyttl': 254, 'hopflags': 17, 'probeid': 2, 'rtt': 19430, 'probesize': 44, 'replysize': 56, 'tos': 0, 'qtos': 32, 'addr': '96.120.102.13', 'tx': 1557594307.630318, 'ipid': 0, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
{'probettl': 3, 'replyttl': 62, 'hopflags': 17, 'probeid': 0, 'rtt': 110793, 'probesize': 44, 'replysize': 72, 'ipid': 36418, 'tos': 192, 'qtos': 32, 'addr': '162.151.209.93', 'tx': 1557594311.090971, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
{'probettl': 4, 'replyttl': 252, 'hopflags': 17, 'probeid': 0, 'rtt': 90094, 'probesize': 44, 'replysize': 56, 'tos': 32, 'qtos': 32, 'addr': '69.139.163.13', 'tx': 1557594314.940303, 'ipid': 0, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
{'probettl': 5, 'replyttl': 58, 'hopflags': 17, 'probeid': 1, 'rtt': 15779, 'probesize': 44, 'replysize': 72, 'ipid': 54815, 'tos': 32, 'qtos': 0, 'addr': '4.68.37.129', 'tx': 1557594327.86037, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
{'probettl': 7, 'replyttl': 238, 'hopflags': 17, 'probeid': 0, 'rtt': 205494, 'probesize': 44, 'replysize': 56, 'tos': 32, 'qtos': 0, 'addr': '213.19.197.34', 'tx': 1557594354.520345, 'ipid': 0, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
{'probettl': 9, 'replyttl': 238, 'hopflags': 17, 'probeid': 0, 'rtt': 209159, 'probesize': 44, 'replysize': 56, 'tos': 32, 'qtos': 0, 'addr': '81.211.5.146', 'tx': 1557594372.38086, 'ipid': 0, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
{'probettl': 10, 'replyttl': 233, 'hopflags': 17, 'probeid': 0, 'rtt': 213773, 'probesize': 44, 'replysize': 56, 'ipid': 26713, 'tos': 32, 'qtos': 0, 'addr': '213.248.7.94', 'tx': 1557594372.600021, 'qttl': 1, 'icmp-type': 11, 'icmp-code': 0}
Traceback (most recent call last):
File "sc_warts.py", line 749, in
(flags, hops) = w.next()
File "sc_warts.py", line 694, in next
obj = self.next_object()
File "sc_warts.py", line 724, in next_object
return WartsTrace(data, refs=self.address_ref, verbose=self.verbose)
File "sc_warts.py", line 359, in init
w = WartsTraceHop(data[offset:], self.referenced_address, self.verbose)
File "sc_warts.py", line 414, in init
self.flag_bytes = self.read_flags()
File "sc_warts.py", line 116, in read_flags
(val, bytes_read) = read_cb(self.flagdata[current_byte:])
File "sc_warts.py", line 481, in read_icmpext
ret_string += "buf: " + hexdump(buf)
File "sc_warts.py", line 70, in hexdump
return ''.join('{:02x}'.format(ord(x)) for x in buf)
File "sc_warts.py", line 70, in
return ''.join('{:02x}'.format(ord(x)) for x in buf)
TypeError: ord() expected string of length 1, but int found

questions on scamper

Hi everybody,
I was studying the documentation of scamper, searched for code in the internet and tried many things in the command line, but still getting major things not done. I have two basic questions:
• How can I probe more than one IP address in the command line?
• Can I use functions for IP address generation in a textfile used as input for IP addresses? Or has it to be the format one IP address per line?
• How do I get a TTL value as output of a traceroute probe? (ICMP time exceeded message)
I hope anybody can help me, I would appreciate any advice!

Working of sc_warts_writer.py

I have a set of measurements and I need to write them into warts file. It would be very useful if there are any examples or direction of use on the sc_warts_writer.py, like in what format the input file should be or how the command line call for it?

Thanks!

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.