github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/syft/pkg/cataloger/binary/test-fixtures/classifiers/positive/mysql-5.6.51/README.md (about)

     1  The binary snippet was gathered with:
     2  
     3  ```bash
     4  $ cat ./original-mysql | strings | grep '5.6.51'
     5  # assert you can see the value
     6  
     7  
     8  $ xxd ./original-mysql | grep '5.6.51'
     9  # get the address...
    10  
    11  
    12  $ xxd -s 0x008f13d0 -l 100 original-mysql
    13  
    14  008f13d0: 2d62 6163 6b75 702d 7265 7374 6f72 6572  -backup-restorer
    15  008f13e0: 2d6d 7973 716c 2d35 2e36 2f6d 7973 716c  -mysql-5.6/mysql
    16  008f13f0: 2d35 2e36 2e35 312f 636c 6965 6e74 2f63  -5.6.51/client/c
    17  008f1400: 6f6d 706c 6574 696f 6e5f 6861 7368 2e63  ompletion_hash.c
    18  008f1410: 6300 2f76 6172 2f76 6361 702f 6461 7461  c./var/vcap/data
    19  008f1420: 2f63 6f6d 7069 6c65 2f64 6174 6162 6173  /compile/databas
    20  008f1430: 652d 6261                                e-ba
    21  
    22  
    23  $ dd if=./original-mysql of=mysql bs=1 skip=$((0x008f13d0)) count=100
    24  
    25  100+0 records in
    26  100+0 records out
    27  100 bytes transferred in 0.000642 secs (155763 bytes/sec)
    28  
    29  
    30  $ xxd mysql
    31                     
    32  00000000: 2d62 6163 6b75 702d 7265 7374 6f72 6572  -backup-restorer
    33  00000010: 2d6d 7973 716c 2d35 2e36 2f6d 7973 716c  -mysql-5.6/mysql
    34  00000020: 2d35 2e36 2e35 312f 636c 6965 6e74 2f63  -5.6.51/client/c
    35  00000030: 6f6d 706c 6574 696f 6e5f 6861 7368 2e63  ompletion_hash.c
    36  00000040: 6300 2f76 6172 2f76 6361 702f 6461 7461  c./var/vcap/data
    37  00000050: 2f63 6f6d 7069 6c65 2f64 6174 6162 6173  /compile/databas
    38  00000060: 652d 6261                                e-ba
    39  ```