/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
tools/automation/cache/build_new_cache.sh
16 строк
618 B
sjanusz-r7
Update payload cached sizes when creating new module metadata cache
23 апр 2026, 14:06
23 апр 2026, 14:06
f00bbe6
Код
Авторство
О чём код?
#!/bin/bash -exu set -o pipefail bundle install bundle exec ruby tools/modules/update_payload_cached_sizes.rb rm -f db/modules_metadata_base.json git ls-files modules/ -z | xargs -0 -n1 -P `nproc` -I{} -- git log -1 --format="%ai {}" {} | while read -r udate utime utz ufile ; do touch -d "$udate $utime" $ufile done ./msfconsole --no-defer-module-loads -qr tools/automation/cache/wait_for_cache.rc cp ~/.msf4/store/modules_metadata.json db/modules_metadata_base.json cp ~/.msf4/logs/framework.log . set +e git diff --exit-code db/modules_metadata_base.json if [ ! $? ]; then echo "Module cache updates exist." fi