项目作者: rek7

项目描述 :
mXtract - Memory Extractor & Analyzer
高级语言: C++
项目地址: git://github.com/rek7/mXtract.git
创建时间: 2019-03-18T19:57:42Z
项目社区:https://github.com/rek7/mXtract

开源协议:MIT License

下载


mXtract

Build Status License

mXtract is an opensource linux based tool that analyzes and dumps memory. It is developed as a pentration testing tool, its primary purpose is to scan memory for private keys, ips, and passwords using regexes. Remember, your results are only as good as your regexes.

Screenshots

Screenshot

Scan with verbose and with a simple IP regex, scanning every data segment, displaying process info and scanning environment files.
Screenshot

Scan with verbose and with a simple IP regex, scanning only heap and stack, displaying process info and scanning environment files.
Screenshot

Scan without verbose, and with a simple IP regex, displaying process info and scanning environment files.

Why dump directly from memory?

In most linux environments users can access the memory of processes, this allows attackers to harvest credentials, private keys, or anything that isnt suppose to be seen but is being processed by a program in clear text.

Features

  • Ability to enter regex lists
  • Clear and Readable Display
  • Check if Memory Range is Writable with Current Permissions
  • Output in XML and HTML along with the default output (process name:result)
  • Ability to Mass Scan Every Proccess or a Specific PID
  • Able to choose memory sections to scan
  • Ability to Show Detailed Process Information
  • Ability to Scan Process Environment Files
  • Memory dumps automatically removes unicode characters which allows for processing with other tools or manually

Getting started

  1. Downloading: git clone https://github.com/rek7/mXtract
  2. Compiling: cd mXtract && sh compile.sh

This will create the directory bin/ and compile the binary as mxtract.

Commands

  1. $ ./mxtract -h
  2. __ ___ _ { V1.2 }
  3. _ __ ___ \ \/ / |_ _ __ __ _ ___| |_
  4. | '_ ` _ \ \ /| __| '__/ _` |/ __| __|
  5. | | | | | |/ \| |_| | | (_| | (__| |_
  6. |_| |_| |_/_/\_\\__|_| \__,_|\___|\__| https://github.com/rek7/mXtract
  7. Usage: ./mxtract [args]
  8. General:
  9. -v Enable Verbose Output
  10. -s Suppress Banner
  11. -h Help
  12. -c Suppress Colored Output
  13. Target and Regex:
  14. -i Show Detailed Process/User Info
  15. -a Scan all Memory Ranges not just Heap/Stack
  16. -e Scan Process Environment Files
  17. -w Check if Memory Range is Writable
  18. -r= Regex Database to Use
  19. -p= Specify Single PID to Scan
  20. Output:
  21. -x Format Regex Results to XML
  22. -r Format Regex Results to an HTML Document
  23. -wm Write Raw Memory to File Default Directory is: 'pid/'
  24. -wi Write Process Info to Beginning of File (Used in Conjunction with -wm)
  25. -wr Write Regex Output to File (Will Appear in the Output Directory)
  26. -f= Regex Results Filename Default is: 'regex_results.txt'
  27. -d= Custom Ouput Directory
  28. Either -r= or -wm needed

Example usage

  1. $ ./mxtract -wm -wr -e -i -d=/tmp/output/ -r=example_regexes.db