Skip to content

Commit

Permalink
prettify this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaghettDev committed Apr 30, 2024
1 parent 5505927 commit 2414971
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
8 changes: 4 additions & 4 deletions BromaToIDA/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ def register_btida(hotkey: str, f: Callable):
try:
hotkey_ctx # type: ignore
if del_hotkey(hotkey_ctx): # type: ignore
print("Hotkey unregistered!")
print("[+] Hotkey unregistered!")
del hotkey_ctx # type: ignore
else:
print("Failed to delete hotkey!")
print("[!] Failed to delete hotkey!")
except:
hotkey_ctx = add_hotkey(hotkey, f)
if hotkey_ctx is None:
print("Failed to register hotkey!")
print("[!] Failed to register hotkey!")
del hotkey_ctx
else:
print("Hotkey registered!")
print("[+] Hotkey registered!")
13 changes: 8 additions & 5 deletions MiniBromaToIDA.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,17 @@ def register_btida(hotkey: str, f: Callable):
try:
hotkey_ctx # type: ignore
if del_hotkey(hotkey_ctx): # type: ignore
print("Hotkey unregistered!")
print("[+] Hotkey unregistered!")
del hotkey_ctx # type: ignore
else:
print("Failed to delete hotkey!")
print("[!] Failed to delete hotkey!")
except:
hotkey_ctx = add_hotkey(hotkey, f)
if hotkey_ctx is None:
print("Failed to register hotkey!")
print("[!] Failed to register hotkey!")
del hotkey_ctx
else:
print("Hotkey registered!")
print("[+] Hotkey registered!")


RX_CLASS = r"""class (\S+)( : (.*))? \{"""
Expand Down Expand Up @@ -433,7 +433,10 @@ def main():
set_func_cmt(ida_addr, f"Merged with: {func_names}", True)

print("[+] Finished importing bindings from broma file")
popup("Ok", "Ok", None, "Finished importing Windows bindings from broma file.")
popup(
"Ok", "Ok", None,
"Finished importing Windows bindings from broma file."
)


register_btida("Ctrl-Shift-I", main)
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
# Broma-To-IDA
(now real)

Broma to IDA (now real).

Parses a broma file and imports the bindings into the current IDA project.

[![Broma-To-IDA](assets/btida.gif)](https://github.com/SpaghettDev/Broma-To-IDA/releases)

## Requirements

- IDA 7.0 or higher
- IDAPython Python v3.0.0 support

## Installation

1. Download the release/zip file
2. Copy `MiniBromaToIDA.py` into `IDA_DIRECTORY/plugins`

## Usage

1. `Ctrl-Shift-I` to start importing
2. Browse and select the broma file (not tested with anything but `GeometryDash.bro`)
3. Let the script handle the rest and enjoy free bindings
Binary file added assets/btida.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2414971

Please sign in to comment.