Skip to content

Commit a0db00d

Browse files
LubyRuffyLubyRuffy
LubyRuffy
authored and
LubyRuffy
committed
增加帮助文档
1 parent ab06a50 commit a0db00d

File tree

5 files changed

+48
-2
lines changed

5 files changed

+48
-2
lines changed

app/controllers/fofacli_controller.rb

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ def howtoexploit
1313

1414
end
1515

16+
def howtorule
17+
18+
end
19+
20+
def developer
21+
22+
end
23+
1624
def download
1725
require_user
1826
redirect_to '/fofacli-0.0.1.zip'

app/views/fofacli/developer.html.erb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
<div class="row">
3+
<div class="col-lg-12">
4+
<h1 id="quickstart">如何加入开发</h1>
5+
<p>源码开放了:<a href="https://github.com/LubyRuffy/fofa">https://github.com/LubyRuffy/fofa</a></p>
6+
</div>
7+
</div>
8+

app/views/fofacli/howtorule.html.erb

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
<div class="row">
3+
<div class="col-lg-12">
4+
<h1 id="quickstart">Fofa规则编写指南</h1>
5+
<h4><br/>
6+
<h5>直接输入查询语句,将从标题,html内容,http头信息,url字段中搜索<br/>
7+
title=abc 从标题中搜索abc。<a href="/search/result?qbase64=<%=CGI.escape Base64.encode64('title="北京"')%>">标题中有北京的网站</a><br/>
8+
header=abc 从http头中搜索abc。<a href="/search/result?qbase64=<%=CGI.escape Base64.encode64('header="jboss"')%>">jboss服务器</a><br/>
9+
body=abc 从html正文中搜索abc。<a href="/search/result?qbase64=<%=CGI.escape Base64.encode64('body="Hacked by"')%>">正文包含Hacked by</a><br/>
10+
host=".gov.cn" 从url中搜索.gov.cn,注意搜索要用host作为名称。<a href="/search/result?qbase64=<%=CGI.escape Base64.encode64('host=".gov.cn"')%>">政府网站</a>, <a href="/search/result?qbase64=<%=CGI.escape Base64.encode64('host=".edu.cn"')%>">教育网站</a><br/>
11+
ip="1.1.1" 从ip中搜索包含1.1.1的网站,注意搜索要用ip作为名称。<a href="/search/result?qbase64=<%=CGI.escape Base64.encode64('ip="220.181.111."')%>">查询IP为220.181.111.网段的网站</a><br/>
12+
13+
<br/>
14+
高级搜索:可以使用括号 和 &amp;&amp; || !=等符号,如<br/>
15+
title="powered by" &amp;&amp; title!=discuz<br/>
16+
title!="powered by" &amp;&amp; body=discuz<br/>
17+
( body="content=\"WordPress" || (header="X-Pingback" &amp;&amp; header="/xmlrpc.php" &amp;&amp; body="/wp-includes/") )
18+
host="gov.cn" <br/>
19+
关于建站软件的搜索语法请参考:<a href="/info/library">组件列表</a><br/><br/>
20+
21+
<b>注意事项:</b><br/>
22+
* 如果查询字段有空格“ ”或者点“.”,需要用双引号括起来;</br>
23+
* 如果查询表达式有多个与或关系,尽量在外面用()包含起来</br>
24+
剩下来,就是发挥你想象力的时候了 ;)
25+
26+
</h5></h4>
27+
</div>
28+
</div>

app/views/fofacli/index.html.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
<div class="row">
33
<div class="col-lg-9">
4-
<h1 id="quickstart">Fofacli 全网漏洞扫描器</h1>
4+
<h1 id="quickstart">Fofacli 全网漏洞扫描器(开源)</h1>
55
<div class="btn-group btn-group-lg"><a class="btn btn-info" href="/fofacli/download" target="_blank">FOFACLI-0.0.1 下载,最后更新时间(20140801)</a></div>
66
<p>结合Fofa进行全网快速漏洞扫描!</p>
7-
<p>如果你还不了解Fofa,请点击<a href="/fofacli/getstarted">新手入门</a>.</p>
7+
<p>如果你还不了解Fofa,请点击<a href="/fofacli/getstarted">新手入门</a></p>
88
</div>
99
</div>
1010

config/routes.rb

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
get :index
2525
get :download
2626
get :howtoexploit
27+
get :howtorule
28+
get :developer
2729
end
2830
end
2931

0 commit comments

Comments
 (0)