Skip to content

Instantly share code, notes, and snippets.

@zdehasek
zdehasek / find-axios-with-malware.sh
Last active April 7, 2026 15:45
find-axios-with-malware.sh
find . -name "package.json" -exec sh -c '
version=$(jq -r ".dependencies.axios // .devDependencies.axios // .peerDependencies.axios // \"\"" "$1" 2>/dev/null)
if [ -n "$version" ] && [ "$version" != "null" ]; then
if [ "$version" = "1.14.1" ] || [ "$version" = "0.30.4" ]; then
printf "\033[31m🚨 %s: axios@%s [VULNERABLE]\033[0m\n" "$1" "$version"
else
printf "\033[32m✅ %s: axios@%s [safe]\033[0m\n" "$1" "$version"
fi
fi
' _ {} \;
#cloud-config
packages:
- apache-utils
- fail2ban
- ufw
- docker.io
- curl
- git
package_update: true
package_upgrade: true
@zdehasek
zdehasek / csd-wrapper.sh
Created March 6, 2020 17:50 — forked from l0ki000/csd-wrapper.sh
Cisco Anyconnect CSD wrapper for OpenConnect (exhanced to autodownload and autoupdate hostscan)
#!/bin/bash
# Cisco Anyconnect CSD wrapper for OpenConnect
# Enter your vpn host here
CSD_HOSTNAME=
if [[ -z ${CSD_HOSTNAME} ]]
then
echo "Define CSD_HOSTNAME with vpn-host in script text. Exiting."
exit 1
fi