p.enthalabs

GitHub - HexLasso/FF-16-TUI: Interactive static analysis tool to locate structures from frequent patterns

Folders and files

| Name | Name | Last commit message | Last commit date | | --- | --- | --- | --- | | [LICENSE](https://github.com/HexLasso/FF-16-TUI/blob/main/LICENSE "LICENSE") | [LICENSE](https://github.com/HexLasso/FF-16-TUI/blob/main/LICENSE "LICENSE") | | | | [README.md](https://github.com/HexLasso/FF-16-TUI/blob/main/README.md "README.md") | [README.md](https://github.com/HexLasso/FF-16-TUI/blob/main/README.md "README.md") | | | | [dict.csv](https://github.com/HexLasso/FF-16-TUI/blob/main/dict.csv "dict.csv") | [dict.csv](https://github.com/HexLasso/FF-16-TUI/blob/main/dict.csv "dict.csv") | | | | [ff-16-tui.go](https://github.com/HexLasso/FF-16-TUI/blob/main/ff-16-tui.go "ff-16-tui.go") | [ff-16-tui.go](https://github.com/HexLasso/FF-16-TUI/blob/main/ff-16-tui.go "ff-16-tui.go") | | | | [go.mod](https://github.com/HexLasso/FF-16-TUI/blob/main/go.mod "go.mod") | [go.mod](https://github.com/HexLasso/FF-16-TUI/blob/main/go.mod "go.mod") | | | | [go.sum](https://github.com/HexLasso/FF-16-TUI/blob/main/go.sum "go.sum") | [go.sum](https://github.com/HexLasso/FF-16-TUI/blob/main/go.sum "go.sum") | | | | |

- README

- MIT license

FF-16-TUI (Find Frequent 16-bit Text User Interface)

[](https://github.com/HexLasso/FF-16-TUI#ff-16-tui-find-frequent-16-bit-text-user-interface)

What does FF-16-TUI do?

[](https://github.com/HexLasso/FF-16-TUI#what-does-ff-16-tui-do) FF-16-TUI is an interactive static analysis tool that finds frequently occurring local 16-bit patterns across the entire file. It can help to locate structures from frequent patterns and understand file layout.

Text User Interface

[](https://github.com/HexLasso/FF-16-TUI#text-user-interface)![Image 1: ff-16-tui](https://private-user-images.githubusercontent.com/119726548/641490312-8da1c4a1-9b66-46ac-88cb-b69bbe3f9df3.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODc5NTg5OTgsIm5iZiI6MTc4Nzk1ODY5OCwicGF0aCI6Ii8xMTk3MjY1NDgvNjQxNDkwMzEyLThkYTFjNGExLTliNjYtNDZhYy04OGNiLWI2OWJiZTNmOWRmMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwODI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDgyOFQyMzExMzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMGFlN2JlOTMxZDk3NzNjOTJkNTRjNzhmZjBkYzY3YTJkMGM1N2E3NzU5M2I4Njk2MzdjNDQ1MzRkZWYxN2QxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.KJrUBqr4E8J9-_W7OcAsyAHHBOZ2WNpSvP5Z32Ij1Nw)

Command line usage

[](https://github.com/HexLasso/FF-16-TUI#command-line-usage)

``` ff-16-tui [filename] [-d <filename>]

<filename> Target file -d <filename> Dictionary file (Default: dict.csv) ```

Keyboard shortcuts

[](https://github.com/HexLasso/FF-16-TUI#keyboard-shortcuts) Hexdump panel:

| Key | Function | | --- | --- | | ← | Previous byte | | → | Next byte | | ↑ | Previous line | | ↓ | Next line | | PgUp | Previous page | | PgDn | Next page | | Home | Beginning of file | | End | End of file |

Pattern panel:

| Key | Function | | --- | --- | | 0 | Highlight pattern (most frequent) | | 1 | Highlight pattern | | 2 | Highlight pattern | | 3 | Highlight pattern | | 4 | Highlight pattern | | 5 | Highlight pattern | | 6 | Highlight pattern | | 7 | Highlight pattern | | 8 | Highlight pattern | | 9 | Highlight pattern (least frequent) |

Filter panel:

| Key | Function | | --- | --- | | q | Increase the minimum gap | | s | Decrease the minimum gap | | w | Increase the maximum gap | | s | Decrease the maximum gap | | e | Increase the minimum set bits | | d | Decrease the minimum set bits | | r | Increase the maximum set bits | | f | Decrease the maximum set bits | | t | Increase the threshold | | g | Decrease the threashold |

Terminologies

[](https://github.com/HexLasso/FF-16-TUI#terminologies) | Term | Description | | --- | --- | | Ones | The number of bits set in the pattern. | | Freq | The frequency of the pattern. | | Dict | The dictionary entry for the pattern. |