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
382df0f7
Commit
382df0f7
authored
Apr 24, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网站名用诗也是独一份
parent
8fbfa2d4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
219 additions
and
91 deletions
+219
-91
models.py
Hunter_ht/hunter/models.py
+1
-1
style.css
Hunter_ht/hunter/static/hunter/style.css
+124
-2
user.html
Hunter_ht/hunter/templates/hunter/user.html
+94
-88
No files found.
Hunter_ht/hunter/models.py
View file @
382df0f7
...
...
@@ -31,7 +31,7 @@ class Publications(models.Model):
authors
=
models
.
CharField
(
max_length
=
1000
)
messages
=
models
.
CharField
(
max_length
=
100
,
default
=
'no information'
)
publishType
=
models
.
CharField
(
max_length
=
100
,
default
=
' '
)
journalname
=
models
.
CharField
(
max_length
=
1000
,
default
=
' '
)
journalname
=
models
.
CharField
(
max_length
=
1000
,
default
=
' '
)
date
=
models
.
DateField
(
default
=
timezone
.
now
)
indexType
=
models
.
CharField
(
max_length
=
100
,
default
=
' '
)
uploadByUser
=
models
.
CharField
(
max_length
=
50
,
default
=
'no records'
)
...
...
Hunter_ht/hunter/static/hunter/style.css
View file @
382df0f7
...
...
@@ -81,7 +81,7 @@ button{
background
:
#d4d4d4
;
color
:
white
;
}
#login_btn
{
#login_btn
,
#submit_btn
{
background
:
#ffffff
;
font-size
:
16px
;
}
...
...
@@ -109,7 +109,6 @@ nav{
section
{
width
:
100%
;
padding
:
5px
30px
;
min-height
:
300px
;
}
section
>
.box
{
width
:
100%
;
...
...
@@ -419,3 +418,125 @@ footer .copyright a{
footer
.copyright
a
:hover
{
color
:
#6e829e
;
}
/*user.html*/
#edit_div
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
top
:
0
;
right
:
-100%
;
z-index
:
999
;
}
#edit_title
{
width
:
100%
;
height
:
50px
;
line-height
:
50px
;
text-align
:
center
;
font-size
:
20px
;
font-weight
:
200
;
border-bottom
:
solid
1px
#f3f3f3
;
}
#edit_content
>
div
{
width
:
100%
;
height
:
50px
;
}
#edit_content
span
{
width
:
25%
;
height
:
45px
;
float
:
left
;
font-weight
:
200
;
line-height
:
45px
;
text-align
:
right
;
}
#edit_content
input
{
width
:
65%
;
height
:
45px
;
font-size
:
16px
;
border
:
solid
1px
#e4e4e4
;
background
:
#fdfdfd
;
border-radius
:
7px
;
margin
:
15px
auto
;
display
:
block
;
padding
:
0
25px
;
z-index
:
9999
;
}
#btn_edit
{
width
:
67%
;
height
:
50px
;
margin
:
0px
auto
;
}
#btn_edit
>
button
{
width
:
40%
;
height
:
40px
;
display
:
block
;
margin
:
10px
5%
;
float
:
left
;
outline
:
none
;
}
.show_edit
{
right
:
0
!important
;
}
#edit_wrap
{
width
:
500px
;
height
:
94%
;
border-radius
:
10px
;
padding
:
10px
20px
;
margin
:
2%
10px
;
float
:
right
;
background-color
:
white
;
box-shadow
:
0px
0px
2px
#cec9c9
inset
;
-moz-box-shadow
:
0px
0px
2px
#cec9c9
inset
;
-webkit-box-shadow
:
0px
0px
2px
#cec9c9
inset
;
}
.smaller_bottom_bar
{
margin
:
25px
auto
;
}
.smaller_bottom_bar
a
{
font-size
:
14px
;
color
:
#4545ff
;
}
#bar
>
.smaller_bottom_bar
{
display
:
block
;
width
:
100%
;
height
:
30px
;
}
#bar
>
.smaller_bottom_bar
>
a
{
width
:
auto
;
float
:
right
;
padding
:
2px
5px
;
margin-right
:
25px
;
}
.smaller_bottom_bar
>
a
:hover
{
font-size
:
16px
;
border-bottom
:
solid
2px
#6e829e
;
}
section
>
.smaller_box
{
width
:
100%
;
}
.smaller_bar
{
height
:
35px
;
padding
:
0
7px
;
}
.smaller_bar
span
{
font-size
:
18px
;
line-height
:
35px
;
}
.smaller_wrap
{
}
.smaller_wrap
button
{
border
:
none
;
outline
:
none
;
background-image
:
url("./images/logo.ico")
;
}
.smaller_wrap
blockquote
{
padding
:
10px
0
;
}
.smaller_wrap
blockquote
>
p
{
font-size
:
18px
;
}
\ No newline at end of file
Hunter_ht/hunter/templates/hunter/user.html
View file @
382df0f7
...
...
@@ -9,97 +9,64 @@
<script
src=
"{% static 'hunter/jquery-1.9.1.min.js' %}"
></script>
</head>
<body>
<nav>
<div
id=
"edit_div"
class=
""
>
<div
id=
"edit_wrap"
>
<div
id=
"edit_title"
>
修改
</div>
<div
id=
"edit_content"
>
<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>
<span>
名字:
</span>
<input
type=
"text"
>
</div>
</div>
</nav>
<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
>
<
span>
名字:
</span
>
<input
type=
"text"
>
</div>
<div
class=
"proj_description"
>
Fuzzing using the Intel PT support.
</div>
<div
id=
"error_log"
></div>
<div
id=
"btn_edit"
>
{#
<button
id=
"cancel_btn"
onclick=
"hide_edit()"
>
#}
{# 取消#}
{#
</button>
#}
{#
<button
id=
"submit_btn"
onclick=
"submit_edit()"
>
#}
{# 提交#}
{#
</button>
#}
</div>
</div>
</div>
<nav>
<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
id=
"hunter"
>
<span>
HUNTER
</span>
</div>
<div
id=
"bar"
class=
""
>
<div
class=
"smaller_bottom_bar"
>
<a
href=
""
class=
"main_bar"
>
退出
</a>
<a
href=
""
class=
"main_bar"
>
修改个人信息
</a>
<a
href=
""
class=
"main_bar"
>
{{ u.name_hanzi }}
</a>
</div>
</div>
</div>
</
section
>
</
nav
>
<section
id=
"publish"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<section
id=
"publish"
style=
"padding-top:100px;"
>
<div
class=
"
smaller_
box"
></div>
<div
class=
"left-bar
smaller_bar
"
>
<span>
出版物
我的出版
</span>
</div>
<div
class=
"wrap"
>
<div
class=
"wrap
smaller_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=
"right"
><a
onclick=
"editPublication({{ publication.pubID }})"
>
修改
</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 %}
...
...
@@ -109,21 +76,20 @@
</section>
<section
id=
"cve"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<div
class=
"
smaller_
box"
></div>
<div
class=
"left-bar
smaller_bar
"
>
<span>
漏洞挖掘成果
我的漏洞
</span>
</div>
<div
class=
"wrap"
>
<div
class=
"wrap
smaller_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"
><button
onclick=
"editCVE('{{ cve.identifier }}')"
>
修改
</button></li>
<li
class=
"li_right"
>
{{ cve.datetime }}
</li>
<li
class=
"li_right"
>
{{ cve.software }}
</li>
<li
class=
"li_right"
>
{{ cve.bugType }}
</li>
...
...
@@ -138,13 +104,13 @@
</section>
<section
id=
"article"
>
<div
class=
"box"
></div>
<div
class=
"left-bar"
>
<div
class=
"
smaller_
box"
></div>
<div
class=
"left-bar
smaller_bar
"
>
<span>
文章随笔
我的笔记
</span>
</div>
<div
class=
"wrap"
>
<div
class=
"wrap
smaller_wrap
"
>
{% for year, arts in article_year_list.items %}
<blockquote
><p>
{{ year }}
</p></blockquote>
{% if arts %}
...
...
@@ -154,34 +120,73 @@
<a
href=
"{% url 'hunter:article' art.articleID %}"
target=
"_blank"
>
{{ art.title }}
</a>
</li>
<li>
{{ art.author }}
</li>
<li
class=
"right"
><a
onclick=
"editArt({{ art.articleID }})"
>
修改
</a></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>
<script>
function
editPublication
(
pubid
){
console
.
log
(
pubid
);
create_html
();
}
function
editArt
(
artid
){
console
.
log
(
artid
);
create_html
();
}
function
editCVE
(
cveid
){
console
.
log
(
cveid
);
create_html
();
}
function
show_edit
(){
$
(
'#edit_div'
).
addClass
(
'show_edit'
)
}
function
create_html
(){
$
(
'#edit_content'
).
empty
();
show_edit
();
let
html
=
' <button id="cancel_btn" onclick="hide_edit()">
\
n'
+
' 取消
\
n'
+
' </button>
\
n'
+
' <button id="submit_btn" onclick="submit_edit()">
\
n'
+
' 提交
\
n'
+
' </button>
\
n'
;
$
(
'#btn_edit'
).
empty
();
$
(
'#btn_edit'
).
append
(
html
);
/*for 循环中不需要清空*/
let
input_html
=
'<div>
\
n'
+
' <span>名字:</span>
\
n'
+
' <input type="text">
\
n'
+
' </div>'
;
$
(
'#edit_content'
).
append
(
input_html
);
}
function
submit_edit
(){
if
(
'success'
){
hide_edit
();
}
else
{
login_fail
(
"fail"
)
}
}
function
login_fail
(
message
){
$
(
'#error_log'
).
empty
();
$
(
'#error_log'
).
append
(
message
);
}
function
hide_edit
(){
$
(
'#edit_div'
).
removeClass
(
'show_edit'
)
}
</script>
</body>
</html>
\ No newline at end of file
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