Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hunter-ht.cn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘莹莹
hunter-ht.cn
Commits
f8221874
Commit
f8221874
authored
Apr 23, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签栏
➕
用户页
parent
0d79c1c1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
222 additions
and
4 deletions
+222
-4
index.html
Hunter_ht/hunter/templates/hunter/index.html
+1
-1
user.html
Hunter_ht/hunter/templates/hunter/user.html
+179
-2
views.py
Hunter_ht/hunter/views.py
+42
-1
No files found.
Hunter_ht/hunter/templates/hunter/index.html
View file @
f8221874
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<title>
hunter-ht
</title>
<title>
野旷天低树天清月近人
</title>
{% load static %}
{% load static %}
<link
rel=
"icon"
href=
"{% static 'hunter/images/logo.ico' %}"
type=
"text/icon"
>
<link
rel=
"icon"
href=
"{% static 'hunter/images/logo.ico' %}"
type=
"text/icon"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'hunter/style.css' %}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'hunter/style.css' %}"
>
...
...
Hunter_ht/hunter/templates/hunter/user.html
View file @
f8221874
...
@@ -2,10 +2,186 @@
...
@@ -2,10 +2,186 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<title>
hunter.user
</title>
<title>
HT-个人中心
</title>
{% load static %}
<link
rel=
"icon"
href=
"{% static 'hunter/images/logo.ico' %}"
type=
"text/icon"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'hunter/style.css' %}"
>
<script
src=
"{% static 'hunter/jquery-1.9.1.min.js' %}"
></script>
</head>
</head>
<body>
<body>
<nav>
<div>
<div
id=
"hunter"
>
<span>
HUNTER
</span>
</div>
<div
id=
"bar"
>
<div
class=
"bottom"
>
<a
href=
""
class=
"main_bar"
>
退出
</a>
<a
href=
""
class=
"main_bar"
>
修改个人信息
</a>
<a
href=
""
class=
"main_bar"
>
{{ user.name_hanzi }}
</a>
</div>
</div>
</div>
</nav>
{{ user }}
<section
id=
"project"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<span>
在研项目
</span>
</div>
<div
class=
"proj_list"
>
<div>
<div>
<div
class=
"proj_name"
>
<a
href=
"https://github.com/hunter-ht-2018/ptfuzzer"
target=
"_blank"
>
PTFUZZER
</a>
</div>
<div
class=
"proj_description"
>
Fuzzing using the Intel PT support.
</div>
</div>
</div>
<div>
<div>
<div
class=
"proj_name"
>
<a
href=
"https://github.com/hunter-ht-2018/qse-ht"
target=
"_blank"
>
QSE-HT
</a>
</div>
<div
class=
"proj_description"
>
A symbolic execution engine using qemu
</div>
</div>
</div>
<div>
<div>
<div
class=
"proj_name"
>
<a
href=
"https://github.com/hunter-ht-2018/DFTinker"
target=
"_blank"
>
DFTINKER
</a>
</div>
<div
class=
"proj_description"
>
Automatically detect double-fetch bugs in OS kerenels
</div>
</div>
</div>
<div>
<div>
<div
class=
"proj_name"
>
<a
href=
"https://github.com/hunter-ht-2018/binary_analysis"
target=
"_blank"
>
BINARY-ANALYSIS
</a>
</div>
<div
class=
"proj_description"
>
A set of tools for binary analysis
</div>
</div>
</div>
</div>
</section>
<section
id=
"publish"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<span>
出版物
</span>
</div>
<div
class=
"wrap"
>
{% for year,publications in publication_year_list.items %}
<blockquote
><p>
{{ year }}
</p></blockquote>
{% if publications %}
{% for publication in publications %}
<ul>
<li
class=
"big_text li_long"
><a
href=
"{% static 'hunter/publications/' %}{{ publication.link }}"
target=
"_blank"
>
{{ publication.title }}
</a></li>
<li
class=
"middle_text right"
>
{{ publication.date }}
</li>
<li
class=
"right"
>
{{ publication.journalname }}
</li>
<li
class=
"right"
>
{{ publication.publishType }}
</li>
<li
class=
"small_text"
>
{{ publication.authors }}
</li>
</ul>
{% endfor %}
{% endif %}
{% endfor %}
</div>
</section>
<section
id=
"cve"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<span>
漏洞挖掘成果
</span>
</div>
<div
class=
"wrap"
>
{% for year, cves in cve_year_list.items %}
<blockquote
><p>
{{ year }}
</p></blockquote>
{% if cves %}
{% for cve in cves %}
<ul>
<li
class=
"cve_big_text"
><a
href=
"{{ cve.url }}"
target=
"_blank"
>
{{ cve.identifier }}
</a></li>
<li
class=
"li_right"
>
{{ cve.datetime }}
</li>
<li
class=
"li_right"
>
{{ cve.software }}
</li>
<li
class=
"li_right"
>
{{ cve.bugType }}
</li>
<li
class=
"li_long li_small_text"
>
{{ cve.description }}
</li>
</ul>
{% endfor %}
{% endif %}
{% endfor %}
</div>
</section>
<section
id=
"article"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<span>
文章随笔
</span>
</div>
<div
class=
"wrap"
>
{% for year, arts in article_year_list.items %}
<blockquote
><p>
{{ year }}
</p></blockquote>
{% if arts %}
{% for art in arts %}
<ul>
<li
class=
"big_text"
>
<a
href=
"{% url 'hunter:article' art.articleID %}"
target=
"_blank"
>
{{ art.title }}
</a>
</li>
<li>
{{ art.author }}
</li>
<li
class=
"middle_text right"
>
{{ art.editDateTime }}
</li>
<li
class=
"small_text right"
>
{{ art.authorID }}
</li>
</ul>
{% endfor %}
{% endif %}
{% endfor %}
</div>
</section>
<section>
{% if bug_list %}
<ul>
{% for bug in bug_list %}
<li><a
href=
"{{ bug.url }}"
>
{{ bug.identifier }}
</a></li>
{% endfor %}
</ul>
{% endif %}
</section>
<footer>
<div
class=
"w-1000 copyright"
>
Copyright © 2013-2020
<strong><a
href=
"//www.runoob.com/"
target=
"_blank"
>
野旷天低树天清月近人
</a></strong>
<strong><a
href=
"//www.hunter-ht.cn/"
target=
"_blank"
>
hunter-ht.cn
</a></strong>
All Rights Reserved. 备案号:
<a
target=
"_blank"
rel=
"nofollow"
href=
"http://www.beian.miit.gov.cn"
>
湘ICP备18008562号
</a>
</div>
</footer>
</body>
</body>
</html>
</html>
\ No newline at end of file
Hunter_ht/hunter/views.py
View file @
f8221874
...
@@ -95,7 +95,48 @@ def login(request):
...
@@ -95,7 +95,48 @@ def login(request):
def
user
(
request
,
user_id
):
def
user
(
request
,
user_id
):
u
=
get_object_or_404
(
User
,
pk
=
user_id
)
u
=
get_object_or_404
(
User
,
pk
=
user_id
)
return
render
(
request
,
'hunter/user.html'
,
{
'user'
:
u
})
my_publication_year_list
=
{}
pub_ids
=
PubToUser
.
objects
.
filter
(
username
=
u
.
name
)
for
pub_id
in
pub_ids
:
pub
=
get_object_or_404
(
Publications
,
pk
=
pub_id
)
year
=
str
(
pub
.
date
)[
0
:
4
]
pub
.
date
=
str
(
pub
.
date
)[
5
:
10
]
if
year
in
my_publication_year_list
.
keys
():
my_publication_year_list
[
year
]
.
append
(
pub
)
else
:
my_publication_year_list
[
year
]
=
[
pub
]
my_article_list
=
Articles
.
objects
.
order_by
(
'-editDateTime'
)
my_article_year_list
=
{}
for
art
in
my_article_list
:
year
=
str
(
art
.
editDateTime
)[
0
:
4
]
art
.
editDateTime
=
str
(
art
.
editDateTime
)[
5
:
10
]
u
=
User
.
objects
.
filter
(
userID
=
art
.
authorID
)
.
values
(
'name'
)
art
.
authorID
=
u
[
0
][
'name'
]
if
year
in
my_article_year_list
.
keys
():
my_article_year_list
[
year
]
.
append
(
art
)
else
:
my_article_year_list
[
year
]
=
[
art
]
my_bug_list
=
Bugs
.
objects
.
filter
(
owner
=
u
.
name
)
.
order_by
(
'-datetime'
)
my_cve_year_list
=
{}
for
cve
in
my_bug_list
:
year
=
str
(
cve
.
datetime
)[
0
:
4
]
cve
.
datetime
=
str
(
cve
.
datetime
)[
5
:
10
]
print
(
cve
.
datetime
)
if
year
in
my_cve_year_list
.
keys
():
my_cve_year_list
[
year
]
.
append
(
cve
)
else
:
my_cve_year_list
[
year
]
=
[
cve
]
context
=
{
'user'
:
u
,
'my_publication_year_list'
:
my_publication_year_list
,
'my_cve_year_list'
:
my_cve_year_list
,
'my_article_year_list'
:
my_article_year_list
,
}
return
render
(
request
,
'hunter/user.html'
,
context
)
def
article
(
request
,
article_id
):
def
article
(
request
,
article_id
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment