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

     1  The binary snippet was gathered with:
     2  
     3  ```bash
     4  $ cat ./original-mariadb | strings | grep '-MariaDB'
     5  # assert you can see the value
     6  
     7  
     8  $ xxd ./original-mariadb | grep '\-MariaDB'
     9  # get the address...
    10  
    11  
    12  $ xxd -s 0x003dd5c0 -l 40 ./original-mariadb
    13  
    14  003dd5c0: 2900 4c69 6e75 7800 3130 2e36 2e31 352d  ).Linux.10.6.15-
    15  003dd5d0: 4d61 7269 6144 4200 7265 6164 6c69 6e65  MariaDB.readline
    16  003dd5e0: 0078 3836 5f36 3400                      .x86_64.
    17  
    18  
    19  $ dd if=./original-mariadb of=mariadb bs=1 skip=$((0x003dd5c0)) count=40
    20  
    21  40+0 records in
    22  40+0 records out
    23  40 bytes transferred in 0.000264 secs (151515 bytes/sec)
    24  
    25  
    26  $ xxd mariadb
    27  
    28  00000000: 2900 4c69 6e75 7800 3130 2e36 2e31 352d  ).Linux.10.6.15-
    29  00000010: 4d61 7269 6144 4200 7265 6164 6c69 6e65  MariaDB.readline
    30  00000020: 0078 3836 5f36 3400                      .x86_64.
    31  ```