Giter VIP home page Giter VIP logo

mlbt's Introduction

MLBT

This tool is just a p0c I wrote while working on bootkits. It allows many things such as dumping sectors on a specific device, placing 16 bit payload at startup (it writes a specific code which will load and execute your payload, and relocates the original bootstrap code which you can load and execute after processing), display ascii art (or simple messages) before booting (a special payload is generated), save/restore the actual bootstrap + partition table, etc.

Payloads will be loaded and executed at 0000:0800, and overwritten code is at 0000:0600. To execute original bootstrap, just copy 0x200 bytes from 0000:0600 to 0000:7c00, or load the sector with the original backuped bootstrap at 0000:7c000. To find it, parse the code at sector 1.

While writing anything on a device, a dump is performed, and I strongly advise you to keep this dump on a separate device, just in case you overwrite your partition table / bootloader :].

Examples:

Dump 4 sectors : MLB.exe -p 1 -l 0 4

Display "pwn.txt" ascii art message at boot : MLB.exe -p 1 -aaW ".\pwn.txt"

Run "print_boot2" code at boot : MLB.exe -p 0 -irW "print_boot2"

Run "keypwn" code on PhysicalDrive1 : MLB.exe -p 1 -irW "keypwn"

Wipe 30 sectors (starting at sector #2) of PhysicalDrive1 : MLB.exe -p 1 -wipe 30

Backup MBR + part. table of PhysicalDrive0 into "backup.bin" : MLB.exe -p 0 -b1 backup.bin

The keypwn example:

The keypwn.asm code purpose is to be written into a removable drive such as a USB key. While booting it, it allows you to place an ascii art message at the primary disk startup (works the same as the ascii art feature of the regular tool works). It should not overwrite anything but the MBR code (not the bootloader : it checks for null bytes code caves), but the original 1st sector is backuped into the USB key (sector #0xF) for rescue purpose. The second option allows you to restore the saved data to the disk.

mlbt's People

Contributors

conix-security 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.