modify some script scanning and swap out the css for my new searpl css

This commit is contained in:
vulpine 2020-12-26 20:08:27 -05:00
parent 26bccaf78b
commit 695769e8ec
12 changed files with 78 additions and 49 deletions

11
ebl Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
echo "<div class='box'>"
echo "<strong>bl results</strong>: "
(grep "$1" bl.txt lists/* || echo "Not found in our blacklist") | head -n 1
echo "</div>"

View File

@ -1,7 +1,7 @@
</div>
<br>
<div class='box'>
<a href="https://tildegit.org/xfnw/shoxf">source</a>
-
Also check out our <a href="bl.cgi">blackhole service</a>
and our <a href="lists">other lists</a>!
Also check out our <a href="bl.cgi">blackhole api</a>
and our <a href="lists">lists</a>!
</div>
</div>

View File

@ -1,12 +1,9 @@
<!DOCTYPE HTML>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>shoxf</title>
<h1>shoxf</h1>
a powerful regex-based search engine for nmap results kinda like shodan
<br><br>
<div class='wrapper'>
<h1>shoxf</h1>

BIN
icomoon.woff Normal file

Binary file not shown.

View File

@ -5,7 +5,6 @@ echo
cat header.html
echo "<div>$(echo index/* | wc -w) ips scanned.</div>"
cat searchbar.html
Q=$(echo "$QUERY_STRING" | sed -n 's/^.*q=\([^&]*\).*$/\1/p' | sed "s/%20/ /g; s/%2F/\//g; s/%5C/\\\/g" | sed "s/+/ /g; s/%2B/+/")
@ -13,11 +12,15 @@ Q=$(echo "$QUERY_STRING" | sed -n 's/^.*q=\([^&]*\).*$/\1/p' | sed "s/%20/ /g; s
if [[ $Q ]]
then
./ebl "$Q"
./huntnw "$Q"
[ -z $(./huntnw "$Q") ] && echo "<div class='box'>No results for $Q</div>"
else
echo "<div class='box'>a powerful regex-based search engine for nmap results kinda like shodan</div>"
echo "<div class='box'>$(echo index/* | wc -w) ips scanned.</div>"
cat footer.html
fi
cat footer.html

2
scan
View File

@ -2,6 +2,6 @@
for fn in $@; do
echo "scanning $fn"
nmap -A -T4 --script ssl-cert,http-headers $fn | tee -a "index/$fn.txt"
nmap -A -T4 $fn | tee -a "index/$fn.txt"
done

2
scan1
View File

@ -1,4 +1,4 @@
#!/bin/bash
nmap -A -T4 --min-rate 5000 --script ssl-cert,http-headers $@ | tee -a "index/$1.txt"
nmap -A -T4 --min-rate 2500 $@ | tee -a "index/$1.txt"

View File

@ -2,6 +2,6 @@
for fn in $@; do
echo "scanning $fn"
nmap -A -Pn -p- --min-rate 5000 --script ssl-cert,http-headers $fn | tee -a "index/$fn.txt"
nmap -A -Pn -p- --min-rate 2500 $fn | tee -a "index/$fn.txt"
done

2
scanap
View File

@ -2,6 +2,6 @@
for fn in $@; do
echo "scanning $fn"
nmap --script http-headers,ssl-cert -p 80,443,10799 -Pn -T5 $fn | tee -a "index/$fn.txt"
nmap --script http-headers,ssl-cert -p 80,443,9999,10799 -Pn -T5 $fn | tee -a "index/$fn.txt"
done

2
scanpn
View File

@ -2,6 +2,6 @@
for fn in $@; do
echo "scanning $fn"
nmap -A -Pn --min-rate 5000 --script ssl-cert,http-headers $fn | tee -a "index/$fn.txt"
nmap -A -Pn -p- $fn | tee -a "index/$fn.txt"
done

View File

@ -1,7 +1,7 @@
<div class='box search-container'>
<form action="./">
<input type="text" placeholder="Search.." name="q">
<button type="submit"><i class="fa fa-search"></i></button>
<button type="submit"><i class="icon-search"></i></button>
</form>
</div>

View File

@ -1,74 +1,92 @@
body {
background: black;
font-family: monospace;
color: #aea;
background: #141415;
font-family: 'Liberation Mono', monospace;
color: #cdcdcd;
}
.preview, .box {
border: 1px solid #aea;
padding: 10px;
border-radius: 10px;
margin-top: 5px;
margin-top: 10px;
background-color: #222;
}
.wrapper {
width: 700px;
max-width: 700px;
margin: 0 auto;
}
a {
text-decoration: none;
color: #aea;
color: #aac;
}
a:hover {
h1 a {
text-decoration: none;
color: #cdcdcd;
}
h1 a::before {
content: "#";
color: #aac;
margin-right: 10px;
}
h1 a:hover::before {
text-decoration: underline;
}
code, kbd, pre {
background: #333;
color: #aea;
.preview h1, h2 {
margin: 0;
padding: 0;
margin-bottom: 5px;
}
pre {
padding: 10px;
border-radius: 2px;
border: 1px solid #aea;
}
.search-container input[type=text] {
padding: 6px;
margin-top: 3px;
font-size: 17px;
border: 3px solid #aea;
color: #aea;
color: #cdcdcd;
background: #333;
border: 0;
width: calc(100% - 60px);
}
.search-container button {
float: left;
padding: 8px 10px;
padding: 6px 10px;
margin-top: 3px;
margin-right: 16px;
background: #333;
float: right;
font-size: 17px;
border: none;
cursor: pointer;
color:#aea;
color:#cdcdcd;
}
.search-container button:hover {
background: #111;
@font-face {
font-family: 'icomoon';
src:
url('icomoon.woff?8kg27f') format('woff');
font-weight: normal;
font-style: normal;
font-display: block;
}
.icon-search {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: never;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
@media screen and (max-width:700px) {
.wrapper {
width: 100%;
}
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-search:before {
content: "\e986";
}