Johnermac
  • About me
  • Active Directory
    • PowerShell
      • Customize
      • Notes
      • ETW
      • AMSI Bypass
      • Obfuscation
    • Enumeration
      • Domain
      • GPO
      • ACL
      • Domain Trusts
      • Forest
      • Extra
      • BloodHound
      • BloodHound CE
  • Tunneling
    • Tools
      • Udp2Raw
      • Fraud Bridge
      • Chisel
      • SSF
      • Egress-Assess
      • Ligolo-ng
      • Sshutle
      • Rpivot
      • Tunna
      • reGeorg
      • Neo-reGeorg
      • PivotSuite
  • Post-Exploitation
    • Data Exfiltration
      • HTTP
        • Cancel
        • wget
        • bash
        • busybox
        • IRB
        • PHP
        • Ruby
      • ICMP
        • XXD
        • Ruby
        • Python
      • UDP
        • Netcat
      • TCP
        • Netcat
        • KSH
        • whois
        • Finger
      • HTTPS
        • Python
        • OpenSSL
  • BLOG
    • Articles
      • Pivoting for Red Teaming
Powered by GitBook
On this page
  • Basic Usage
  • How to extract files using XXD
  1. Post-Exploitation
  2. Data Exfiltration
  3. ICMP

XXD

its used for converting binary data into a hex representation and vice versa. The xxd tool is primarily used for examining binary files, creating binary patches, and manipulating binary data.

Basic Usage

Hexadecimal to binary conversion:

xxd -r hexdump.txt binary_output.bin

Binary to hexadecimal conversion:

xxd binary_input.bin hexdump.txt

Specifying input and output formats:

xxd -g 4 binary_input.bin hexdump.txt

Skipping a specific number of bytes:

xxd -s 16 binary_input.bin hexdump.txt

Limiting the number of bytes to display:

xxd -l 64 binary_input.bin hexdump.txt

XXD provides several other options for controlling the format and output, such as:

  • -c (or --cols) to specify the number of bytes per line

  • -e (or --endian) to set the endianness

  • -v (or --version) to display the version information

How to extract files using XXD

PreviousICMPNextRuby

Last updated 2 years ago

Send the File through PING
Wireshark Results