Coder Social home page Coder Social logo

mona's Introduction

==== mona

Fork of Corelan’s mona.py for x64dbg. mona is a Windows exploit development swiss army knife. It supports ROP techniques, SEH, cyclic patterns, etc.

To see all commands and usage details, run mona with the help command.

Installation instructions

x64dbg

First, get x64dbgpy for x64dbg Python support. You can grab a release here. Drop the contents of the plugins directory into your x64dbg plugins folder.

Then, put mona.py into the plugins/x64dbgpy folder. You will also need the pykd.py and x64dbgpylib.py files from https://github.com/x64dbg/x64dbgpylib. Finally, put the clean_mona.py script in x64dbgpy/x64dbgpy/autorun.

Now, run mona commands at the x64dbg Python command line with mona.mona(“command”).

Immunity Debugger

Simply drop mona.py into the 'PyCommands' folder (inside the Immunity Debugger application folder).

WinDBG

See https://github.com/corelan/windbglib

Some Supported Commands

  • modules — Show all loaded modules and their properties (ASLR, Rebase, DEP, etc.)
  • heap — Show heap related information
  • seh — Find pointers to assist with SEH overwrite exploits
  • jmp — Find pointers that will allow you to jump to a register
  • rop — Finds gadgets that can be used in a ROP exploit and do ROP magic with them
  • jop — Finds gadgets that can be used in a JOP exploit
  • pattern_offset — Find location of 4 bytes in a cyclic pattern

mona's People

Contributors

corelanc0d3r avatar jmreyes avatar mrexodia avatar reider-roque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mona's Issues

IOErrors after running a command

I've installed mona.py as per instructions, but had to build x64dbgpy from sources (because snapshot artifacts are not available, see x64dbg/x64dbgpy#35).
Now after every command with mona I get an IOError, e.g

import mona
mona.mona('modules')

===>

[+] Command used:
!mona modules

---------- Mona command started on 2019-07-19 09:04:28 (v2.0, rev 577) ----------
[+] Processing arguments and criteria
    - Pointer access level : X
[+] Generating module info table, hang on...
    - Processing modules
    - Done. Let's rock 'n roll.
-----------------------------------------------------------------------------------------------------------------------------------------
 Module info :
-----------------------------------------------------------------------------------------------------------------------------------------
<SNIP>
<b>********************************************************************************</b>
<b>Traceback (most recent call last):</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\mona.py", line 18391, in main</b>
<b>    commands[command].parseProc(opts)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\mona.py", line 11450, in procShowMODULES</b>
<b>    showModuleTable("",modulestosearch)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\mona.py", line 5825, in showModuleTable</b>
<b>    dbg.log(tline)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\x64dbgpylib.py", line 862, in log</b>
<b>    pykd.dprintln(self.toAsciiOnly(message), showdml)</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\pykd.py", line 197, in dprintln</b>
<b>    print str</b>
<b>  File "C:\Users\ngo\Desktop\x64dbg\release\x32\plugins\x64dbgpy\x64dbgpy\hooks.py", line 44, in write</b>
<b>    self.__original_stream.write(text)</b>
<b>IOError: [Errno 9] Bad file descriptor</b>
<b></b>
<b>********************************************************************************</b>

Not sure that it is relevant, but

  • I've retargeted x64dbgpy build into VS2019 on Win10.
  • I also used swig 4.0.0, which dropped the -ouputtuple (see x64dbg/x64dbgpy#36), so I had to delete this option from swig/setup.py

Installation problem

Execuse me, I follow your installation instructions for x64dbg, but it doesn't work. I have some questions about it, I put 'x64dbgpy_x86.lib' and 'x64dbgpy.h' into 'x32dbg\plugins', I don't know if it's right.
(My installation environment is Win XP SP3+x32dbg)

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.