Computers and Technology, 10.02.2021 07:50 lerinmarie
The objective of this task is to use Scapy to estimate the distance, in terms of number of routers, between
your VM and a selected destination. This is basically what is implemented by the traceroute tool. In
this task, we will write our own tool. The idea is quite straightforward: just send an packet (any type) to the
destination, with its Time-To-Live (TTL) field set to 1 first. This packet will be dropped by the first router,
which will send us an ICMP error message, telling us that the time-to-live has exceeded. That is how we get
the IP address of the first router. We then increase our TTL field to 2, send out another packet, and get the
IP address of the second router. We will repeat this procedure until our packet finally reach the destination.
It should be noted that this experiment only gets an estimated result, because in theory, not all these packets
take the same route (but in practice, they may within a short period of time). The code in the following
shows one round in the procedure.
a = IP()
a. dst = ’1.2.3.4’
a. ttl = 3
b = ICMP()
send(a/b)
If you are an experienced Python programmer, you can write your tool to perform the entire procedure
automatically. If you are new to Python programming, you can do it by manually changing the TTL field in
each round, and record the IP address based on your observation from Wireshark. Either way is acceptable,
as long as you get the result.
Answers: 3
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
Computers and Technology, 23.06.2019 04:31
Selling a product through an electronic medium is
Answers: 1
Computers and Technology, 25.06.2019 07:00
Afile named data.txt contains an unknown number of lines, each consisting of a single integer. write some code that creates two files, dataplus.txt and dataminus.txt, and copies all the lines of data1.txt that have positive integers to dataplus.txt, and all the lines of data1.txt that have negative integers to dataminus.txt. zeros are not copied anywhere.
Answers: 2
Computers and Technology, 25.06.2019 08:00
When date is processed into a meaningful form, i becomes
Answers: 1
The objective of this task is to use Scapy to estimate the distance, in terms of number of routers,...
Engineering, 18.04.2020 22:15
German, 18.04.2020 22:15
Mathematics, 18.04.2020 22:15
Chemistry, 18.04.2020 22:15
Health, 18.04.2020 22:15
Mathematics, 18.04.2020 22:15
Mathematics, 18.04.2020 22:15
Mathematics, 18.04.2020 22:16
Mathematics, 18.04.2020 22:16
Chemistry, 18.04.2020 22:16
Health, 18.04.2020 22:16
History, 18.04.2020 22:16
Mathematics, 18.04.2020 22:16
Mathematics, 18.04.2020 22:16