Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

code cleaning #36

Bilel Eljaamii21907b16597d
diff --git a/static/index.html b/static/index.html
index ab369b0..873358f 100644
--- a/static/index.html
+++ b/static/index.html
@@ -133,11 +133,11 @@
class="fa fa-bank fa-fw"></i> Hosts</a>
<a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page8");><i
class="fa fa-history fa-fw"></i> Webs</a>
- <a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page8");><i
+ <a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page9");><i
class="fa fa-history fa-fw"></i> Gf</a>
- <a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page8");><i
+ <a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page10");><i
class="fa fa-history fa-fw"></i> Vulns</a>
- <a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page8");><i
+ <a href="#" class="w3-bar-item w3-button w3-padding link" onclick=openTable("page11");><i
class="fa fa-history fa-fw"></i> JS</a>
<br><br>
@@ -153,10 +153,10 @@
<div class="w3-container report" id="page1" style="display: none; padding-top:22px">
<h4><b><i class="fa fa-dashboard"></i> All JavaScript Links</b></h4>
- <input class='myInput' type='text' id='myInput1' onkeyup=\"myFunction('myInput1', 'myUL1' )\"
+ <input class='myInput' type='text' id='myInput1' onkeyup="myFunction('myInput1', 'myUL1' )"
placeholder="Search.." title="Search">
<div class="w3-responsive w3-card-4">
- <ul id=\"myUL1\" class=\"myUL\">
+ <ul id="myUL1" class="myUL">
jslinks=./jsfile_links.txt
if [ -f "$jslinks" ]; then
@@ -170,14 +170,14 @@
</div>
</div>l
-
+
<div class="w3-container report" id="page2" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> Live JavaScript Links</b></h4>
+ <h4><b><i class="fa fa-dashboard"></i> Live JavaScript Links</b></h4>
- <input class='myInput' type='text' id='myInput2' onkeyup=\"myFunction('myInput2', 'myUL2' )\"
+ <input class='myInput' type='text' id='myInput2' onkeyup="myFunction('myInput2', 'myUL2' )"
placeholder="Search.." title="Search">
<div class="w3-responsive w3-card-4">
- <ul id=\"myUL2\" class=\"myUL\">
+ <ul id="myUL2" class="myUL">
live_jslinks=./live_jsfile_links.txt
if [ -f "$live_jslinks" ]; then
@@ -187,20 +187,19 @@
echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
fi
-
+
</ul>
</div>
</div>
- echo -e '
<div class="w3-container report" id="page3" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> Endpoints</b></h4>' >> report.html
+ <h4><b><i class="fa fa-dashboard"></i> Endpoints</b></h4>
- echo -e "<div class="w3-responsive w3-card-4">
+ <div class="w3-responsive w3-card-4">
<pre1><strong>Press Ctrl + F to Search!</strong></pre1>
</div>
<div class="w3-responsive w3-card-4">
- <ul id=\"myUL3\" class=\"myUL\">" >> report.html
+ <ul id="myUL3" class="myUL">
endpoints=./endpoints.txt
if [ -f "$endpoints" ]; then
@@ -210,127 +209,118 @@
echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
fi
- echo -e '
+
</ul>
</div>
- </div>' >> report.html
- echo -e '
- <div class="w3-container report" id="page4" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> Secrets</b></h4>' >> report.html
- echo -e " <div class="w3-responsive w3-card-4">
- <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
- </div>
- <div class="w3-responsive w3-card-4">
- <ul id=\"myUL4\" class=\"myUL\">" >> report.html
+ <div class="w3-container report" id="page4" style="display: none; padding-top:22px">
+ <h4><b><i class="fa fa-dashboard"></i> Secrets</b></h4>
- jslinksecret=./jslinksecret.txt
- if [ -f "$jslinksecret" ]; then
- echo -e "
- <pre><code>$(cat ./jslinksecret.txt)</code></pre>" >> report.html
- else
- echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
- fi
+ <div class="w3-responsive w3-card-4">
+ <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
+ </div>
+ <div class="w3-responsive w3-card-4">
+ <ul id="myUL4" class="myUL">
- echo -e '
- </ul>
- </div>
- </div>' >> report.html
+ jslinksecret=./jslinksecret.txt
+ if [ -f "$jslinksecret" ]; then
+ echo -e "
+ <pre><code>$(cat ./jslinksecret.txt)</code></pre>" >> report.html
+ else
+ echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
+ fi
- echo -e '
- <div class="w3-container report" id="page5" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> Wordlist</b></h4>' >> report.html
- echo -e " <div class="w3-responsive w3-card-4">
- <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
+ </ul>
+ </div>
</div>
- <div class="w3-responsive w3-card-4">
- <ul id=\"myUL5\" class=\"myUL\">" >> report.html
- jswordlist=./jswordlist.txt
- if [ -f "$jswordlist" ]; then
- echo -e "
- <pre><code>$(cat ./jswordlist.txt)</code></pre>" >> report.html
- else
- echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
- fi
- echo -e '
- </ul>
+ <div class="w3-container report" id="page5" style="display: none; padding-top:22px">
+ <h4><b><i class="fa fa-dashboard"></i> Wordlist</b></h4>
+
+ <div class="w3-responsive w3-card-4">
+ <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
+ </div>
+ <div class="w3-responsive w3-card-4">
+ <ul id="myUL5" class="myUL">
+
+ jswordlist=./jswordlist.txt
+ if [ -f "$jswordlist" ]; then
+ echo -e "
+ <pre><code>$(cat ./jswordlist.txt)</code></pre>" >> report.html
+ else
+ echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
+ fi
+ </ul>
+ </div>
</div>
- </div>' >> report.html
- echo -e '
- <div class="w3-container report" id="page6" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> Variables</b></h4>' >> report.html
+ <div class="w3-container report" id="page6" style="display: none; padding-top:22px">
+ <h4><b><i class="fa fa-dashboard"></i> Variables</b></h4>
- echo -e " <div class="w3-responsive w3-card-4">
- <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
- </div>
- <div class="w3-responsive w3-card-4">
- <ul id=\"myUL6\" class=\"myUL\">" >> report.html
+ <div class="w3-responsive w3-card-4">
+ <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
+ </div>
+ <div class="w3-responsive w3-card-4">
+ <ul id="myUL6" class="myUL">
- js_var=./js_var.txt
- if [ -f "$js_var" ]; then
- echo -e "
- <pre><code>$(cat ./js_var.txt | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g")</code></pre>
- " >> report.html
- else
- echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
- fi
+ js_var=./js_var.txt
+ if [ -f "$js_var" ]; then
+ echo -e "
+ <pre><code>$(cat ./js_var.txt | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g")</code></pre>
+ " >> report.html
+ else
+ echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
+ fi
- echo -e '
- </ul>
+
+ </ul>
+ </div>
</div>
- </div>' >> report.html
- echo -e '
- <div class="w3-container report" id="page7" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> DOM XSS</b></h4>' >> report.html
+ <div class="w3-container report" id="page7" style="display: none; padding-top:22px">
+ <h4><b><i class="fa fa-dashboard"></i> DOM XSS</b></h4>
- echo -e " <div class="w3-responsive w3-card-4">
- <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
- </div>
- <div class="w3-responsive w3-card-4">
- <ul id=\"myUL7\" class=\"myUL\">" >> report.html
+ <div class="w3-responsive w3-card-4">
+ <pre1><strong>Press Ctrl + F to Search!</strong></pre1>
+ </div>
+ <div class="w3-responsive w3-card-4">
+ <ul id="myUL7" class="myUL">
- dom_xss=./domxss_scan.txt
- if [ -f "$dom_xss" ]; then
- echo -e "
- <pre><code>$(cat ./domxss_scan.txt)</code></pre>" >> report.html
- else
- echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
- fi
+ dom_xss=./domxss_scan.txt
+ if [ -f "$dom_xss" ]; then
+ echo -e "
+ <pre><code>$(cat ./domxss_scan.txt)</code></pre>" >> report.html
+ else
+ echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
+ fi
- echo -e '
- </ul>
+
+ </ul>
+ </div>
</div>
- </div>' >> report.html
- echo -e '
- <div class="w3-container report" id="page8" style="display: none; padding-top:22px">
- <h4><b><i class="fa fa-dashboard"></i> JSFiles For Manualy Testing</b></h4>' >> report.html
+ <div class="w3-container report" id="page8" style="display: none; padding-top:22px">
+ <h4><b><i class="fa fa-dashboard"></i> JSFiles For Manualy Testing</b></h4>
- echo -e " <input class='myInput' type='text' id='myInput8' onkeyup=\"myFunction('myInput8', 'myUL8' )\"
- placeholder="Search.." title="Search">
- <div class="w3-responsive w3-card-4">
- <ul id=\"myUL8\" class=\"myUL\">" >> report.html
+ <input class='myInput' type='text' id='myInput8' onkeyup="myFunction('myInput8', 'myUL8'
+ )" placeholder="Search.." title="Search">
+ <div class="w3-responsive w3-card-4">
+ <ul id="myUL8" class="myUL">
- live_jslinks=./live_jsfile_links.txt
- if [ -f "$live_jslinks" ]; then
- cat ./live_jsfile_links.txt | while read link; do echo -e "<li><a href="$link"
- target="_blank">$link</a></li>" >> report.html ; done
- else
- echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
- fi
+ live_jslinks=./live_jsfile_links.txt
+ if [ -f "$live_jslinks" ]; then
+ cat ./live_jsfile_links.txt | while read link; do echo -e "<li><a href="$link"
+ target="_blank">$link</a></li>" >> report.html ; done
+ else
+ echo -e "<li><a href="#">No Jslinks Links Found For Target</a></li>" >> report.html
+ fi
- echo -e '
- </ul>
+ </ul>
+ </div>
</div>
- </div>' >> report.html
-
- echo -e '
</body>
<!-- Footer -->