Information Security Management Lab Assessment - 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Information Security Management

Lab Assessment -3

REG NO-18BCE0904

NAME-ASMIT GUPTA

SLOT- LAB 15+16

Faculty: Amutha Prabakar M

INPUT : PACKET1.pcap
CODE :
from scapy.all import *
import base64
network_packets =
rdpcap('C:/Users/AsmitGupta/Desktop/COURSE/ISM/ASSIGNMENTS/DA-
3(LAB)/PACKET1.pcap') decoded_commands = [] decoded_data ="" for packet in
network_packets:
if DNSQR in packet:
if packet[DNS].id == 0x1337: decoded_data =
base64.b64decode(str(packet[DNS].an.rdata))
if 'FILE:' in decoded_data:
continue
else:
decoded_commands.append(decoded_data)
for command in decoded_commands:
if len(command)>1:
print_command.rstrip()
OUTPUT :

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy