-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathtemplate.py
More file actions
46 lines (35 loc) · 1.2 KB
/
template.py
File metadata and controls
46 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- coding: UTF-8 -*-
class Table(object):
def __init__(self, title):
self.eid = 0
self.cve = ''
self.title = title
self.author = ''
self.published_time = ''
self.verified = ''
self.platform = ''
self.exploit_type = ''
self.exploit_url = ''
self.exploit_app = ''
def update_eid(self, eid):
self.eid = eid
def update_cve(self, cve):
self.cve = cve
def update_title(self, title):
self.title = title
def update_author(self, author):
self.author = author
def update_published_time(self, published_time):
self.published_time = published_time
def update_verified(self, verified):
self.verified = verified
def update_platform(self, platform):
self.platform = platform
def update_exploit_type(self, exploit_type):
self.exploit_type = exploit_type
def update_exploit_url(self, exploit_url):
self.exploit_url = exploit_url
def update_exploit_app(self, exploit_app):
self.exploit_app = exploit_app
def __repr__(self):
return "<eid:%d@%s>" % (self.eid, self.title)