mirror of https://xfnw.ttm.sh/git/huntnw.git
23 lines
286 B
Bash
Executable File
23 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Content-Type: text/html"
|
|
echo
|
|
|
|
|
|
cat header.html
|
|
|
|
|
|
Q=$(echo "$QUERY_STRING" | sed -n 's/^.*q=\([^&]*\).*$/\1/p' | sed "s/%20/ /g" | sed "s/+/ /g")
|
|
|
|
if [[ $Q ]]
|
|
then
|
|
|
|
./huntnw $Q
|
|
|
|
|
|
[[ $(./tser $Q) ]] || echo "<div class='box'>No results :(</div>"
|
|
fi
|
|
|
|
cat footer.html
|
|
|