Data Exfilteration
TCP
SSH
HTTP/HTTPS
POST method
Need a webserver capable of handling uploads
Example: PHP
Data from victime machine can be exfiltered using curl:
ICMP
ICMP
: Internet Control Message Protocol.Ping command in linux can add 16 bytes of data to the ICMP packet using
-p
option, in hex representation.xxd
can be used to convert string to hex:
Data can be exfiltrated using ping command (linux) or directly using nping command (from nmap)
Metasploit
This can be achieved using
Metasploit's icmp_exfil module
This module listens for an BOF (Beginning of file) trigger, then writes the data to disk then waits for EOF (End of file).
BPF_FILTER
option of this modules takes atcpdump
rule.
Data can be send using
ICMPdoor
Opensource reverse shell written in python3. Uses ICMP data section to send commands.
On the Victim Machine
On the Attacker machine
DNS
Setup a Domain name. eg: drdragon.com
Add a NS which points to a malicious dns server, that we control.
Encode the data and send the data via subdomain name.
NOTE: The whole URL must be 255 chars long and the subdomain must be less than 63 chars.
One the nameserver that you control:
Last updated