diff --git a/README.md b/README.md index a2277f9..e888e4d 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ This too has several functions: ## To-Do +* Auto-clean files/tmp/ folder * Prettier code * Only update once per day, except if `-u` `--update` * Adding more services to listen to ? diff --git a/config.json b/config.json index ae5cf17..c29c8fc 100644 --- a/config.json +++ b/config.json @@ -19,12 +19,21 @@ }, "githubreleasesync": { "carlospolop/PEASS-ng": { - "local_version": "20220417", + "local_version": "20220424", "files": [ "linpeas.sh", "winPEAS.bat", "winPEASany.exe" ] + }, + "jpillora/chisel": { + "local_version": "v1.7.7", + "files": [ + { + "filename": "chisel_{short_version}_windows_amd64.gz", + "binpath": "chisel.exe" + } + ] } }, "ncat": { diff --git a/pendora-box.py b/pendora-box.py index f1f2915..4e6c885 100644 --- a/pendora-box.py +++ b/pendora-box.py @@ -87,6 +87,7 @@ def githubmastersync(reponame, filepaths, credz): def githubreleasesync(reponame, repoinfo, credz): local_version = repoinfo['local_version'] last_version = get_last_release_info(reponame, credz) + short_version = last_version.replace('v', '') filenames = repoinfo['files'] @@ -94,12 +95,14 @@ def githubreleasesync(reponame, repoinfo, credz): if isinstance(filename, dict): binpath = filename['binpath'] filename = filename['filename'] + filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version) localfile = pathlib.Path('files').joinpath(pathlib.Path(binpath).name) if filename.endswith('.gz'): is_gz = True print(f" * {localfile} ", end='') else: + filename = filename.replace('{last_version}', last_version).replace('{short_version}', short_version) localfile = pathlib.Path('files').joinpath(pathlib.Path(filename).name) print(f" * {localfile} ", end='')