forked from hanc00l/wooyun_public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="zh-CN"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<meta name="description" content="wooyun public"> | ||
<meta name="author" content="hanc00l"> | ||
<title>{{title}}</title> | ||
<!-- 新 Bootstrap 核心 CSS 文件 --> | ||
<link rel="stylesheet" href="static/bugs/bootstrap/css/bootstrap.min.css"> | ||
<!-- 可选的Bootstrap主题文件(一般不用引入) --> | ||
<link rel="stylesheet" href="static/bugs/bootstrap/css/bootstrap-theme.min.css"> | ||
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 --> | ||
<script src="static/bugs/js/jquery-1.11.3.min.js"></script> | ||
<!-- 最新的 Bootstrap 核心 JavaScript 文件 --> | ||
<script src="static/bugs/bootstrap/js/bootstrap.min.js"></script> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-inverse navbar-fixed-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
<a class="navbar-brand" href="#">search for wooyun.org</a> | ||
</div> | ||
<div class="navbar-collapse collapse" role="navigation"> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<li class="active"><a href="/">Home</a></li> | ||
<li><a href="#about">About</a></li> | ||
<li><a href="#contact">Contact</a></li> | ||
</ul> | ||
</div> <!-- navbar-collapse --> | ||
</div> <!--/.container--> | ||
</nav><!--navbar --> | ||
|
||
<hr> | ||
{% block content %}{% end %} | ||
|
||
<footer class="footer"> | ||
<div class="container"> | ||
<div class="row footer-bottom"> | ||
<ul class="list-inline text-center"> | ||
<li>公开漏洞和知识库信息来自于<a href="http://www.wooyun.org/" target="_blank">wooyun.org</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</footer> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
|
||
<div class="jumbotron masthead"> | ||
<div class="row"> | ||
<div class="col-sm-8 col-xs-12 col-sm-offset-2"> | ||
<h2 class="text-center">乌云公开漏洞、知识库搜索 <small><small>漏洞/文章数:{{total_count_bugs}}/{{total_count_drops}}</small></small></h2> | ||
<form class="form-horizontal" action="/search" method="get" name="login"> | ||
<div class="input-group"> | ||
<input type="text" class="form-control " id="keywords" name="keywords" placeholder="输入搜索关键词……"> | ||
<span class="input-group-btn"> | ||
<button class="btn btn-default btn-primary" type="submit"><span class="glyphicon glyphicon-search"></button> | ||
</span> | ||
</div><!-- /input-group --> | ||
<br/> | ||
<div class="form-group"> | ||
<div class="col-sm-8 col-sm-6"> | ||
<div class="radio-inline"> | ||
<label> | ||
<input type="radio" name="content_search_by" id="by_bugs" value="by_bugs" checked>乌云公开漏洞 | ||
</label> | ||
</div> | ||
<div class="radio-inline"> | ||
<label> | ||
<input type="radio" name="content_search_by" id="by_drops" value="by_drops"> | ||
乌云知识库 | ||
</label> | ||
</div> | ||
</div> | ||
<div class="col-sm-4 col-xs-6"> | ||
<div class="checkbox"> | ||
<label> | ||
<input type="checkbox" name="search_by_html" value="true"> 全文搜索 | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container projects"> | ||
</div> | ||
|
||
{% end %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="col-md-1"></div> | ||
<div class="col-md-10"> | ||
<div> | ||
<h2>关键字【{{keywords}}】的搜索结果<small>共{{page_info['total_rows']}}记录</small></h2> | ||
<table class="table table-striped"> | ||
<tr> | ||
<th width="10%">提交时间</th> | ||
<th>标题</th> | ||
<th width="15%">漏洞类型</th> | ||
<th width="10%">提交者</th> | ||
</tr> | ||
{% for row in page_info['rows'] %} | ||
<tr> | ||
<td>{{row['datetime']}}</td> | ||
<td><a href="static/bugs/{{row['wooyun_id']}}.html" target="_blank"> | ||
{{row['title']}}</a></td> | ||
<td><a href="http://www.wooyun.org/bugs/{{row['wooyun_id']}}" target="_blank">{{row['bug_type']}}</a></td> | ||
<td>{{row['author']}}</td> | ||
</tr> | ||
{% end %} | ||
</table> | ||
<!-- 分页组件js --> | ||
<script src="static/bugs/js/jquery.twbsPagination.js"></script> | ||
<ul id="pagination" class="pagination-sm"></ul> | ||
<script > | ||
$(pagination).twbsPagination({ | ||
first: "首页", | ||
prev: "前一页", | ||
next: "后一页", | ||
last: "尾页", | ||
totalPages: {{page_info['total']}}, | ||
visiblePages: 5, | ||
startPage: {{page_info['current']}}, | ||
onPageClick: function (event, page) { | ||
location.href="/search?keywords={{keywords}}&&content_search_by=by_bugs&&search_by_html={{search_by_html}}&&page="+page; | ||
} | ||
}); | ||
</script> | ||
</div> | ||
</div> | ||
<div class="col-md-1"></div> | ||
</div> | ||
{% end %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "base.html" %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="col-md-1"></div> | ||
<div class="col-md-10"> | ||
<div> | ||
<h2>关键字【{{keywords}}】的搜索结果<small>共{{page_info['total_rows']}}记录</small></h2> | ||
<table class="table table-striped"> | ||
<tr> | ||
<th width="10%">发表时间</th> | ||
<th>标题</th> | ||
<th width="10%">文章类型</th> | ||
<th width="15%">作者</th> | ||
</tr> | ||
{% for row in page_info['rows'] %} | ||
<tr> | ||
<td>{{row['datetime']}}</td> | ||
<td><a href="static/drops/{{row['url_local']}}" target="_blank"> | ||
{{row['title']}}</a></td> | ||
<td><a href="{{row['url']}}" target="_blank">{{row['category']}}</a></td> | ||
|
||
<td>{{row['author']}}</td> | ||
</tr> | ||
{% end %} | ||
</table> | ||
<!-- 分页组件js --> | ||
<script src="static/bugs/js/jquery.twbsPagination.js"></script> | ||
<ul id="pagination" class="pagination-sm"></ul> | ||
<script > | ||
$(pagination).twbsPagination({ | ||
first: "首页", | ||
prev: "前一页", | ||
next: "后一页", | ||
last: "尾页", | ||
totalPages: {{page_info['total']}}, | ||
visiblePages: 5, | ||
startPage: {{page_info['current']}}, | ||
onPageClick: function (event, page) { | ||
location.href="/search?keywords={{keywords}}&&content_search_by=by_drops&&search_by_html={{search_by_html}}&&page="+page; | ||
} | ||
}); | ||
</script> | ||
</div> | ||
</div> | ||
<div class="col-md-1"></div> | ||
</div> | ||
{% end %} |