26 Commits
Author SHA1 Message Date
whh4gitandwhh4git 291b0ebf12 change to centos-vault and centos-stream (#72)
Co-authored-by: whh4git <[email protected]>
2024-10-23 18:44:32 +02:00
Peace-Maker 8ecf25955b Limit launchpad downloads to supported series
Lots of the obsolete series had their downloads removed and throw errors
of missing files.
2023-02-17 17:32:08 +01:00
peace-maker 63a7975e5d Fix __libc_start_main_ret lookup with smarter compilers (#58)
We want to look for instructions at the start of the function, but some chunks might appear before the start of the function or objdump outputs the wrong symbol for unrelated addresses.

Match the __libc_start_main.* label by looking for the colon `:` behind it.
2022-07-28 16:46:30 +02:00
peace-maker b3034c8edd Fix __libc_start_main_ret lookup with glibc 2.34 (#55)
__libc_start_main doesn't call main directly anymore but uses a wrapper helper.
2022-02-11 11:23:41 +01:00
Yunjong Jeong ea38dde584 Retry rpm download with --no-dns-cache (#52) 2021-09-03 16:27:19 +02:00
Yunjong Jeong c23a5f943f Handle zstd within debian packages (#51) 2021-07-20 10:21:47 +02:00
peace-maker 658b8708eb Add Ubuntu packages from Launchpad #28 (#37) 2021-05-30 11:58:34 +02:00
Niklas Baumstark 460851d300 more robustness against failed downloads 2021-05-28 11:27:52 +02:00
Ajabep 4c77106118 Add other libs (#25)
* Adapt API to other libc + Add Musl

* Adapt regex to extract symbols (thank's @blukat29)

Regex from @blukat29 (https://github.com/blukat29/libc-database/commit/287ca62960181a6bbd206e679c7331cae305a87b#diff-6f1488814a51063192c9aabb59112ef1R11)

* Add Alpine

* Add DietLibc

* Fix symbols extracting regex
2020-10-19 11:29:40 +02:00
152334H d35f85c9d1 ./add refuse directories (#34) 2020-10-09 23:23:08 +02:00
Ajabep d69f04c887 Path + Return code (#27)
* Change a message with the right path

Indeed, the script is position independant, thus `./db` is not always
the path to the db.

* Add return codes

It allows automatic tests and, if everything is find, to reproduce 22ad329
2020-09-01 23:05:58 +02:00
Ajabep 42daf5ce17 Add monitoring of others OS (#24)
* Add monitoring of others OS

Add :

* Multiple RPM based distro
* CentOS
* Arch Linux
* Some Pentest/DFIR OS

* Various small fixes

PWD + quotes

* `egrep` -> `grep -E` to reduce requirements

* `zcat` -> `gzip -cd` to reduce requirements

* `unzstd` -> `zstd -d` to reduce requirements

* Put `rpm2cpio` as a requirement

* Add requirements
2020-08-20 12:30:02 +02:00
Ajabep 8ec7c0f1d6 Rename get_all_ubuntu + remove unused function 2020-08-16 21:14:54 +02:00
Ajabep 943a0a01af Various fixes (#21)
* Fix README.md

* Typo in regex

* Add Libc file in debug message
2020-08-15 14:28:44 +02:00
Niklas Baumstark 21d5381218 merge 2020-01-02 19:20:14 +01:00
Niklas Baumstark e0d364393a update versions 2020-01-02 19:02:11 +01:00
mephi42 e2bc202cf2 Retry fetching download page
Currently fetching Ubuntu package download page results in an
intermittent 500 error:

  https://bugs.launchpad.net/pkg-website/+bug/1854906

However, when working with libc-database, this creates an impression
that its link database is outdated. Work around this issue by trying
to fetch the page 3 times before giving up. In most cases, only 1
retry is needed.
2019-12-03 09:22:09 +01:00
mephi42 0ef00d72f7 Add Debian support
CTFZone 2019 quals had a Debian glibc in one task, which gave me gray
hair. Let's make sure that doesn't happen to anyone again!
2019-12-03 09:22:09 +01:00
Niklas Baumstark b758a669fb fix download script 2018-11-09 14:18:14 +01:00
Matrix 6989f92c4c A script to download libs (#10)
* fix dir problem. add id.url

* add id.url

* add download script

* add the usage of download
2018-11-09 14:06:41 +01:00
Niklas Baumstark bc38a6215a fixes 2018-07-26 11:29:10 +02:00
blukat29 4c7abc9a07 Download from old-releases 2018-05-21 01:52:45 +09:00
Niklas Baumstark 220684ea6f account for multiple /bin/sh strings in a binary 2018-02-12 19:15:25 +01:00
Alex Epifano cb0125e156 Use mktemp for tmp dir 2016-12-27 19:52:10 -05:00
Niklas Baumstark 0b811b2df3 fix bug when detecting libc_start_main return address 2016-03-03 17:50:33 +01:00
Niklas Baumstark dd3e6de7a7 allow adding local libraries 2015-03-17 18:36:39 +01:00