Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CyberChef #259

Merged
merged 18 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified sources/assets/firefox/places.sqlite
Binary file not shown.
21 changes: 19 additions & 2 deletions sources/install/package_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,22 @@ function install_gf() {
add-to-list "gf,https://github.com/tomnomnom/gf,A wrapper around grep to avoid typing common patterns"
}

function install_cyberchef() {
colorecho "Installing CyberChef"
local last_version
last_version=$(wget https://github.com/gchq/CyberChef/releases/latest/download/CyberChef.zip 2>&1 | grep Location: | grep -E -o 'v.*' | cut -d '/' -f 1)

if [ ! -z "$last_version" ]; then
mkdir /opt/tools/CyberChef
wget https://github.com/gchq/CyberChef/releases/download/$last_version/CyberChef_$last_version.zip -O /tmp/CyberChef.zip
unzip -o /tmp/CyberChef.zip -d /opt/tools/CyberChef/
rm /tmp/CyberChef.zip
mv /opt/tools/CyberChef/CyberChef_$last_version.html /opt/tools/CyberChef/CyberChef.html
add-test-command "file /opt/tools/CyberChef/CyberChef.html"
add-to-list "CyberChef,https://github.com/gchq/CyberChef/,The Cyber Swiss Army Knife"
fi
QU35T-code marked this conversation as resolved.
Show resolved Hide resolved
}

function post_install() {
# Function used to clean up post-install files
colorecho "Cleaning..."
Expand Down Expand Up @@ -265,7 +281,8 @@ function package_base() {
install_gf # wrapper around grep
fapt-noexit rar # rar (Only AMD)
install_firefox

install_cyberchef
ShutdownRepo marked this conversation as resolved.
Show resolved Hide resolved

cp -v /root/sources/assets/grc/grc.conf /etc/grc.conf # grc

# openvpn
Expand Down Expand Up @@ -329,4 +346,4 @@ function package_base_debug() {
# Set Global config path to vendor
# All programs using bundle will store their deps in vendor/
bundle config path vendor/
}
}