Welcome to the roof! Alabaster Snowball here.
I'm watching some elves play NetWars!
Feel free to try out our Scapy Present Packet Prepper!
If you get stuck, you can
help() to see how to get tasks and hints.
╔════════════════════════════════════════════════════════════════╗ ║ ___ ___ ___ ___ ___ _ _ _____ ___ _ ___ _ _____ _____ ║ ║ | _ \ _ \ __/ __| __| \| |_ _| | _ \/_\ / __| |/ / __|_ _| ║ ║ | _/ / _|\__ \ _|| .` | | | | _/ _ \ (__| ' <| _| | | ║ ║ |_| |_|_\___|___/___|_|\_| |_| |_|/_/ \_\___|_|\_\___| |_| ║ ║ ___ ║ ║ | _ \_ _ ___ _ __ _ __ ___ _ _ ║ ║ | _/ '_/ -_) '_ \ '_ \/ -_) '_| ║ ║ |_| |_| \___| .__/ .__/\___|_| ║ ║ |_| |_| ║ ║ (Packets prepared with scapy) ║ ╚════════════════════════════════════════════════════════════════╝ Type "yes" to begin.
Similar to how the Linux Primer helps you to learn some common shell commands, this challenge is meant to help you get acquainted with the inner workings of the Scapy Python library. Knowing how to use Scapy to inspect and create network packets will become important when solving the ARP Shenanigans challenge.
Welcome to the "Present Packet Prepper" interface! The North Pole could use your help preparing present packets for shipment.
Start by running the
task.submit() function passing in a string argument of 'start'.
task.help() for help on this question.
Submit the class object of the scapy module that sends packets at layer 3 of the OSI model.
Submit the class object of the scapy module that sniffs network packets and returns those packets in a list.
Submit the NUMBER only from the choices below that would successfully send a TCP packet and then return the first sniffed response packet to be stored in a variable named
pkt = sr1(IP(dst="127.0.0.1")/TCP(dport=20))
pkt = sniff(IP(dst="127.0.0.1")/TCP(dport=20))
pkt = sendp(IP(dst="127.0.0.1")/TCP(dport=20))
Submit the class object of the scapy module that can read pcap or pcapng files and return a list of packets.
UDP_PACKETS contains a list of UDP packets. Submit the NUMBER only from the choices below that correctly prints a summary of
Submit only the first packet found in
Submit only the entire TCP layer of the second packet in
Change the source IP address of the first packet found in
UDP_PACKETS to 127.0.0.1 and then submit this modified packet.
Submit the password
task.submit('elf_password') of the user alabaster as found in the packet list
TCP_PACKETS.show() for x in range(3,7): print(TCP_PACKETS[x][Raw].load) task.submit('echo')
The ICMP_PACKETS variable contains a packet list of several icmp echo-request and icmp echo-reply packets. Submit only the ICMP chksum value from the second packet in the
Submit the number of the choice below that would correctly create a ICMP echo request packet with a destination IP of 127.0.0.1 stored in the variable named
pkt = Ether(src='127.0.0.1')/ICMP(type="echo-request")
pkt = IP(src='127.0.0.1')/ICMP(type="echo-reply")
pkt = IP(dst='127.0.0.1')/ICMP(type="echo-request")
Create and then submit a UDP packet with a dport of 5000 and a dst IP of 127.127.127.127. (all other packet attributes can be unspecified).
packet = Ether()/IP(dst='127.127.127.127')/UDP(dport=5000) task.submit(packet)
Create and then submit a UDP packet with a
dport of 53, a
dst IP of 127.2.3.4, and is a DNS query with a
qname of "elveslove.santa". (all other packet attributes can be unspecified).
packet = Ether()/IP(dst='127.2.3.4')/UDP(dport=53)/DNS(qd=DNSQR(qname="elveslove.santa")) task.submit(packet)
ARP_PACKETS contains an ARP request and response packets. The ARP response (the second packet) has 3 incorrect fields in the ARP layer. Correct the second packet in
ARP_PACKETS to be a proper ARP response and then
task.submit(ARP_PACKETS) for inspection.
ARP_PACKETS.show() ARP_PACKETS[ARP].op=2 ARP_PACKETS[ARP].hwsrc='00:13:46:0b:22:ba' ARP_PACKETS[ARP].hwdst='00:16:ce:6e:8b:24' task.submit(ARP_PACKETS)
After answering all questions correctly you're now a certified Scapy Present Packet Prepper operator!
Great job! Thanks!
Those skills might be useful to you later on!
I've been trying those skills out myself on this other terminal.
I'm pretty sure I can use tcpdump to sniff some packets.
Then I'm going to try a machine-in-the-middle attack.
Next, I'll spoof a DNS response to point the host to my terminal.
Then I want to respond to its HTTP request with something I'll cook up.
I'm almost there, but I can't quite get it. I could use some help!
For privacy reasons though, I can't let you access this other terminal.
I do plan to ask Santa for a hand with it next time he's nearby, though.