packing-box / docker-packing-box

Docker image gathering packers and tools for making datasets of packed executables and training machine learning models for packing detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minor alignment issue in detectors table when using `--show-all` flag

AlexVanMechelen opened this issue · comments

Description

When running ? --show-all, the columns of the broken and info/useless detectors aren't aligned with the rest of the table.

Visualization

┌──[user@packing-box]──[/mnt/share]────────                                                                             ────[10.0.2.100]──[12:21:13]────
$ ? --show-all -k detectors
                          .______      ___       ______  __  ___  __  .__   __.   _______        .______     ______   ___   ___
                          |   _  \    /   \     /      ||  |/  / |  | |  \ |  |  /  _____|       |   _  \   /  __  \  \  \ /  /
                          |  |_)  |  /  ^  \   |  ,----'|  '  /  |  | |   \|  | |  |  __   ______|  |_)  | |  |  |  |  \  V  /
                          |   ___/  /  /_\  \  |  |     |    <   |  | |  . `  | |  | |_ | |______|   _  <  |  |  |  |   >   <
                          |  |     /  _____  \ |  `----.|  .  \  |  | |  |\   | |  |__| |        |  |_)  | |  `--'  |  /  .  \
                          | _|    /__/     \__\ \______||__|\__\ |__| |__| \__|  \______|        |______/   \______/  /__/ \__\



 
This Docker image is a ready-to-use platform for making datasets of packed and not packed executables, especially for training machine learning models.  

Detectors (9/20)
                                                                                                                                                         
       Name          Targets      Status     Multiclass         Weak Mode       Superdetector                            Source                          
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 
  Analyze_PE       PE               ⓘ      ☑   ☒   ☒   <https://github.com/hiddenillusion/AnalyzePE>           
  ASL              PE               ⓘ      ☑   ☒   ☒   <https://github.com/ExeinfoASL/ASL>                     
  Bintropy         ELF,PE,MSDOS     ☑             ☒                 ☒                 ☒          <https://github.com/packing-box/bintropy>               
  CFF_Explorer     PE               ⓘ      ☑   ☒   ☒   <https://ntcore.com/?page_id=388>                       
  DIE              All              ☑             ☑                 ☒                 ☑          <https://github.com/horsicq/Detect-It-Easy>             
  ExeScan          PE               ⓘ      ☑   ☒   ☒   <https://github.com/cysinfo/Exescan>                    
  Language_2000    PE               ⓘ      ☑   ☒   ☒   <https://farrokhi.net/language>                         
  Manalyze         PE,MSDOS         ☑             ☑                 ☑                 ☒          <https://github.com/JusticeRage/Manalyze>               
  MPESM            PE,Mach-O        ⓘ      ☑   ☒   ☒   <https://github.com/vmware-archive/tic/tree/master/mp…  
  MRC              PE32,MSDOS       ⓘ      ☑   ☒   ☒   <https://mandiant-red-curtain.apponic.com/download>     
  PackerID         PE               ⓘ      ☑   ☒   ☒   <https://github.com/sooshie/packerid>                   
  PeFrame          PE,MSDOS         ☒      ☑   ☑   ☒   <https://github.com/guelfoweb/peframe>                  
  PEiD             PE,MSDOS         ☑             ☑                 ☒                 ☑          <https://github.com/packing-box/peid>                   
  PePack           PE,MSDOS         ☑             ☑                 ☒                 ☒          <https://github.com/merces/pev>                         
  PyPackerDetect   PE,MSDOS         ☑             ☑                 ☑                 ☑          <https://github.com/packing-box/pypackerdetect>         
  PyPeid           PE,MSDOS         ☑             ☑                 ☒                 ☒          <https://github.com/FFRI/pypeid>                        
  RDG              PE               ⓘ      ☑   ☒   ☒   <http://www.rdgsoft.net>                                
  REMINDer         All              ☑             ☒                 ☒                 ☒          <https://github.com/packing-box/reminder>               
  RetDec           All              ☑             ☑                 ☒                 ☑          <https://github.com/avast/retdec>                       
  StudPE           PE32             ⓘ      ☑   ☒   ☒   <https://www.cgsoftlabs.ro/studpe.html>                 
                                                                                                                                                         

Legend
☒  broken ; ⓘ  info/useless ; ☑  ok

Possible (partial) solution

Changing line 68 in docker-packing-box/src/lib/src/pbox/helpers/rendering.py from

zip("☒🗗ⓘ☑☒☑☐ⓘ", ["magenta", "cyan", "grey", "orange", "red", "green", "grey", "grey"])}

to

zip("☒🗗ⓘ☑☒☑☐ⓘ☑☒", ["magenta", "cyan", "grey", "orange", "red", "green", "grey", "grey", "grey", "grey"])}

This aligns everything well. However, the icons and become white instead of grey.