flare-floss/scripts
tak:Yassan 7e1e6e5d3c
fix: update comment handling in render-binja-import-script.py (#1215)
* fix: update comment handling in render-binja-import-script.py

- ret of get_comment_at is str
+ set_comment is unkown in ver5.2

* fix: fix Binary Ninja import script's AppendComment and AppendLvarComment functions

- Remove undefined `pc` variable reference in AppendLvarComment
- Add fallback handling when get_code_refs returns no references in AppendComment
- Add null check for get_functions_containing to prevent crash
- Add bv.set_comment_at fallback when function is not found
- Add int() conversion for address parameters for type safety
- Change `return` to `continue` in AppendComment loop to annotate all references
2026-08-27 10:30:24 +02:00
..
analysis scripts: replace deprecated --no with --no-string-type 2026-08-13 16:30:01 +05:30
disassemblers fix: update comment handling in render-binja-import-script.py (#1215) 2026-08-27 10:30:24 +02:00
tags fix(scripts): use the correct max_len constants for libs vs pes 2026-08-19 17:47:07 +05:30
__init__.py
README.md

FLOSS Scripts

Auxiliary scripts live under scripts/, grouped by purpose:

Directory Purpose
disassemblers/ Convert classic FLOSS JSON output into import scripts for Binary Ninja, Ghidra, IDA Pro, Radare2, and x64dbg; includes the IDA plugin
tags/ Build and maintain FLOSS tag databases (global prevalence, OSS libraries, VT feeds)
analysis/ Batch analysis helpers

disassemblers/

Turn FLOSS JSON (floss -j sample.exe > results.json) into tool-specific artifacts.

  1. Run a render script, redirecting stdout to a file.
  2. Import or run the generated artifact in the target tool.

Example (Ghidra):

$ python render-ghidra-import-script.py results.json > apply_floss.py

See disassemblers/ for per-tool scripts and the IDA plugin (File → Script file… in IDA Pro).

Install FLOSS from source first; see installation.

tags/

Scripts that extract strings, build tag databases, and query them. See tags/README.md for the full pipeline.

analysis/

  • bulk_analyze.py — run floss over every binary in a directory and write JSON results.

Language-specific data maintenance (for example regenerating the Rust version hash database) lives alongside the implementation under floss/language/.