nopn0p / xzf

EXIF-based command and control PoC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

xzf is a simple PoC demonstrating how EXIF data can be used for command and control. xzf GETs an image from a predetermined URL, then reads the software tag for an authentication string. If the string matches, xzf will execute anything contained within the ImageDescription tag.

Usage

  1. Choose your auth string and XOR key, then use xor.py to XOR out the string
  2. Choose an image and use gexif to add your commands to execute in ImageDescription and your auth string to the Software tag.
  3. XOR out the desired filename
  4. Upload the image (not imgur) and add all values to consts.h
  5. Deploy

Requirements

  • libcurl
  • libexif

References

About

EXIF-based command and control PoC


Languages

Language:C 93.2%Language:Shell 3.6%Language:Python 3.2%