Skip to content

Instantly share code, notes, and snippets.

@parthmalhotra
Created August 20, 2020 09:44
Show Gist options
  • Save parthmalhotra/4b6bd94f51f02b25b178c01f9a7ed3cf to your computer and use it in GitHub Desktop.
Save parthmalhotra/4b6bd94f51f02b25b178c01f9a7ed3cf to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#httpx
tabhttpx0=$(httpx -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabhttpx='echo -e "$tabhttpx0"'
complete -W "\$($tabhttpx)" httpx
#subfinder
tabsub0=$(subfinder -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabsub='echo -e "$tabsub0"'
complete -W "\$($tabsub)" subfinder
#naabu
tabnaa0=$(naabu -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabnaa='echo -e "$tabnaa0"'
complete -W "\$($tabnaa)" naabu
#nuclei
tabnuc0=$(nuclei -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabnuc='echo -e "$tabnuc0"'
complete -W "\$($tabnuc)" nuclei
#shuffledns
tabshu0=$(shuffledns -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabshu='echo -e "$tabshu0"'
complete -W "\$($tabshu)" shuffledns
#dnsprobe
tabdns0=$(dnsprobe -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabdns='echo -e "$tabdns0"'
complete -W "\$($tabdns)" dnsprobe
#chaos
tabchaos0=$(chaos -h 2>&1 | grep " -" | awk -F " " '{print $1}' | sed -z 's/\n/ /g')
tabchaos='echo -e "$tabchaos0"'
complete -W "\$($tabchaos)" chaos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment