diff --git a/payloads/library/recon/Telegram-Nmap-to-Telegram/payload.sh b/payloads/library/recon/Telegram-Nmap-to-Telegram/payload.sh index dd377a0..1ad8908 100644 --- a/payloads/library/recon/Telegram-Nmap-to-Telegram/payload.sh +++ b/payloads/library/recon/Telegram-Nmap-to-Telegram/payload.sh @@ -62,6 +62,13 @@ function setup() { # Create tmp scan directory mkdir -p $SCAN_DIR &> /dev/null + # Install curl if it does not exist + if [ ! -f /usr/bin/curl ]; then + opkg update >> /root/opkgupdate.log 2>&1 + opkg list >> /root/opkglist.log 2>&1 + opkg install curl >> /root/opkginstall.log 2>&1 + fi + # Create tmp scan file if it doesn't exist SCAN_FILE=$SCAN_DIR/scan-count if [ ! -f $SCAN_FILE ]; then