mirror of
https://github.com/indetectables-net/toolkit.git
synced 2025-05-08 11:36:32 +00:00
Universal Tool Updater
This tool is designed to help with the tedious process of keeping the tools that we use to work daily up to date.
This is the inevitable complement to the toolkit of the site.
Installation
You can clone the repo with git or just download it from download.
git clone https://github.com/indetectables-net/toolkit
Setting
To add tools you have to edit the file tools.ini
.
By default, it is configured as an example so that the user quickly understands how the tool is used.
[DIE]
folder = Analysis\DIE
url = https://github.com/horsicq/DIE-engine
from = github
re_version = <span class="css-truncate-target" [^>]*>(.*?)</span>
re_download = "(.*?/die_win64_portable_(?:\S+).zip)"
The values used for configuration are:
Name | Mandatory | Description |
---|---|---|
folder |
YES |
Folder where the tool will be saved. If it does not exist, it will be created. |
url |
YES |
Web that will be used to perform the checks with the regex. |
from |
NO |
Indicates the strategy used for the update. Currently supported values are: web or github . |
local_version |
NO |
Currently downloaded version. This value will be updated with each update. |
re_version |
NO |
Regex used to check for new versions on the web used in url . |
re_download |
NO |
Regex used to get the download link on the web used in url . |
update_url |
NO |
Update download URL. See "Strategy for download" for more info. |
update_file_pass |
NO |
Use this password to unzip the update. |
pre_update_script |
NO |
The entered script will be executed before the update process. |
post_update_script |
NO |
The entered script will be executed after the update process. |
Strategy for download
Combining the use of update_url
and re_download
the following download strategies are achieved:
- Using only
update_url
it downloads directly without any extra processing. - Using only
re_download
you get the download link on the web fromurl
. - When using both parameters, the result of
re_download
is concatenated withupdate_url
. This is useful for fixing Github or Sourceforge download links.
Examples
The tool supports various commands and combinations. These are the most used.
- Update a particular tool
updater.exe --update DIE
- Force Update of a tool
updater.exe --force --update DIE
- Update without compressing or cleaning the folder
updater.exe --disable-folder-clean --disable-repack
Use with scheduled tasks
- Add updater tool to scheduled task. You can read more here "Create scheduled tasks with CLI", "How to create an automated task" and "Prevent command window appearing"
# execute in elevated command prompt
SCHTASKS /CREATE /SC DAILY /TN "ToolkitUpdater" /TR "D:\code\toolkit\Updater\custom-task.bat" /ST 14:00
- Delete scheduled task
# execute in elevated command prompt
SCHTASKS /DELETE /TN "ToolkitUpdater"