radareorg/radare2

Add entropy edges printing mode

Open

#15,510 opened on 2019年11月27日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C (23,826 stars) (3,229 forks)batch import
good first issuehackatonprint

説明

We currently have per-block entropy printing with p=e. Would be nice to have the more condensed mode of printing only the rising/falling edges, like in the binwalk -E mode:

[i] ℤ binwalk -E hugo_elf                                                                                                                                                                                                          17:14:18 

DECIMAL       HEXADECIMAL     ENTROPY
--------------------------------------------------------------------------------
0             0x0             Falling entropy edge (0.669811)
33920000      0x2059400       Falling entropy edge (0.500119)
34128896      0x208C400       Falling entropy edge (0.814289)
34181120      0x2099000       Falling entropy edge (0.739773)

[i] ℤ binwalk -E hugo_gz                                                                                                                                                                                                           17:14:32 

DECIMAL       HEXADECIMAL     ENTROPY
--------------------------------------------------------------------------------
0             0x0             Rising entropy edge (0.995563)
3024896       0x2E2800        Rising entropy edge (0.965233)
5500928       0x53F000        Rising entropy edge (0.990217)
5543936       0x549800        Rising entropy edge (0.970625)
5672960       0x569000        Rising entropy edge (0.957641)
6060032       0x5C7800        Rising entropy edge (0.978857)
7462912       0x71E000        Rising entropy edge (0.961115)
7530496       0x72E800        Rising entropy edge (0.958497)
7591936       0x73D800        Rising entropy edge (0.952436)
7622656       0x745000        Rising entropy edge (0.953014)

コントリビューターガイド

Add entropy edges printing mode · radareorg/radare2#15510 | Good First Issue