Commit 7ec0b2b0 authored by Your Name's avatar Your Name
Browse files

imprv Searchsploit utility

parent 22cc6fea
......@@ -6,19 +6,31 @@ input="./list_software_version.txt"
while IFS= read -r line
do
# Software name
echo $line
soft=$(echo $line | cut -d' ' -f 1)
# Version number
version=$(echo $line | grep -o -E '([0-9]{1,}\.)+([0-9]{1,}\w*|\w+)')
for i in $(echo $version)
do
search_string="$soft $i"
if [ -z "$version" ]
then
search_string="$soft"
echo "========================"
echo "search for: $search_string"
echo "========================"
searchsploit $search_string
echo "#####################"
echo
echo
done
echo "#####################"
else
for i in $(echo $version)
do
search_string="$soft $i"
echo "========================"
echo "search for: $search_string"
echo "========================"
searchsploit $search_string
echo "#####################"
echo
echo
done
fi
done < "$input"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment