Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

data exfiltration icmp

from scapy.all import *
import base64

capture = rdpcap('analysis.pcap')
ping_data = ""

for packet in capture:
   if packet[ICMP].type == 8: # Echo request
       ping_data += packet.load

print base64.b64decode(ping_data)
Comment

PREVIOUS NEXT
Code Example
Python :: Gets an existing SparkSession or, if there is no existing one, creates a new 
Python :: Prints out the schema in the tree format 
Python :: python code for calculating probability of random variable 
Python :: celery subprocess 
Python :: pip img2pdf 
Python :: tkinter e.delete(0,END) 
Python :: 57 *2 
Python :: devu and friendship testing codechef solution 
Python :: come traferire file python 
Python :: Distace between two object on a sky map in degress using Ra and Dec 
Python :: dataframe remove first row 
Python :: how to make a dashboard with data representation using python free dash 
Python :: how to i print oin pyhton 
Python :: problem with console writeline python 
Python :: not to display column tree odoo 8 
Python :: discord.File(fp=image_binary,filename=name) discord py 
Python :: python multiple items in with statment 
Python :: autoscrapper import 
Python :: saaaaaaaaaaaaa 
Python :: what is enumerate in python 
Python :: compute the average age for each gender? * 
Python :: python -m pip install --upgrade pip /usr/bin/python: No module named pip 
Python :: get samples from dataframe 
Python :: To install a specific version, type the package name followed by the required version: 
Python :: python opening file modalities 
Python :: currelation matrix python 
Python :: count how many loops that printed in python 
Python :: python dataframe copy structure 
Python :: convert integer to binary python 
Python :: Read data from excel file using openbyxl 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =