Code Monkey home page Code Monkey logo

xordump's Introduction

xordump

Made for use with Atomic Red Team.

Usage of xordump.exe:
  -in string
        Input file to Xor
  -m string
        [ dbghelp | dbgcore | comsvcs ] (default "dbghelp")
  -out string
        minidump outfile (default "minidump.dmp")
  -process string
        Process to dump (default "lsass.exe")
  -pid int
        PID of process. Takes precedence over --process
  -x int
        Single Byte Xor Key

In some cases, lsass.exe minidump files are signatured by AV and deleted. It's not unusual for the binary that initiated the lsass dump to be left on disk and not treated as malicious.

The dll loaded into this bin for minidumping (dgbhelp) ALWAYS writes the minidump to disk, but before this binary closes the file handle, it re-reads the contents into memory, closes the handle and immediately deletes the file.

There may exist a race between Go deleting the minidump file after a close(handle) and with AV detecting and deleting the file. In either case, the output is safe in memory and passed to a Xor function which then re-writes the xor'd data to disk, where it can be safely exfilled.

OPSEC consideration If you lose the race, AV may see the dumpfile and say something.

Part of the miniDump and seDebug code written by @C-Sto

Building / Usage

Running make should build the windows exe and the shellcode that can be injected. Go 1.16+ is required because of the additional PIE (position independence) flag introduced in 1.15 and ioutil deprecation in 1.16.

xordump's People

Contributors

audibleblink avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.