Skip to content

Instantly share code, notes, and snippets.

@p4p1
Created March 1, 2025 19:49
Show Gist options
  • Save p4p1/00dc78bd92ce3161b7ae540f485259f8 to your computer and use it in GitHub Desktop.
Save p4p1/00dc78bd92ce3161b7ae540f485259f8 to your computer and use it in GitHub Desktop.
👽👽👽👽
#!/bin/bash
# get-tech.sh
# Created on: Sat 01 Mar 2025 10:40:34 AM GMT
#
# ____ __ ____ __
# ( _ \ /. |( _ \/ )
# )___/(_ _))___/ )(
# (__) (_)(__) (__)
#
# Description:
# a qutebrowser script to scan a url using nuclei
results=$(mktemp)
nuclei_cmd=$HOME/go/bin/nuclei
if [[ -z "$nuclei_cmd" ]]; then
echo "message-error 'nuclei command not found edit this script with the nuclei path!'" >> $QUTE_FIFO
fi
echo "message-info 'scanning: $QUTE_URL'" >> "$QUTE_FIFO"
$nuclei_cmd -u $QUTE_URL -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0' -t http/technologies/ -o $results &>/tmp/ret
if [[ $? -eq 0 ]]; then
if [[ -z "$(cat $results)" ]]; then
echo "message-warning 'Nothing was found by nuclei'" >> "$QUTE_FIFO"
else
while IFS= read -r line; do
echo "message-info '$line'" >> $QUTE_FIFO
done < $results
echo "tab-clone" >> "$QUTE_FIFO"
echo "messages" >> "$QUTE_FIFO"
fi
fi
rm -rf $results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment