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

Issue in parsing a scamper traceroute #9

Open
shwetashresthaa opened this issue Feb 24, 2022 · 0 comments
Open

Issue in parsing a scamper traceroute #9

shwetashresthaa opened this issue Feb 24, 2022 · 0 comments

Comments

@shwetashresthaa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant