Coder Social home page Coder Social logo

msdos-binary-ninja-view's Introduction

MSDOS-Binary-Ninja-View

Author: Kasimir Schulz

Plugin to import MSDOS exe files into binary ninja.

Description:

Plugin to import MSDOS exe files into binary ninja.

Analyzes the code to find the offset to the data section and relocates data and code segments.

Minimum Version

This plugin requires the following minimum version of Binary Ninja:

  • 2.4.3042

License

This plugin is released under an MIT license.

msdos-binary-ninja-view's People

Contributors

kasimir123 avatar

Watchers

 avatar  avatar

msdos-binary-ninja-view's Issues

Locks up BN when loading AGI interpreter

Tested the plugin with BN 3.2.3983-dev (latest dev) by downloading the first MSDOS binary Internet Archive gave me, AGI.EXE from this archive: https://archive.org/details/sierra-christmas-card-1986

The plugin locked up the entire UI in the init while loop, which turns out to be because the returned instruction length after a while is 0. This small patch makes it avoid and eternal loop, but the load will abort for other reasons shortly after:

diff --git a/__init__.py b/__init__.py
index 858756b..c80b17a 100644
--- a/__init__.py
+++ b/__init__.py
@@ -138,6 +138,9 @@ class MSDOSView(BinaryView):
             
             # add instruction size to start
             start += text[1]
+            if text[1] == 0:
+                print(start, "returned 0 lenght, aborting parsing")
+                break;
 
             # get all the instructions
             text = text[0]

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.