Skip to content

Commit

Permalink
Merge pull request knownsec#145 from knownsec/update/zoomeye_api
Browse files Browse the repository at this point in the history
update zoomeye api
  • Loading branch information
Hysia authored Dec 15, 2017
2 parents 326838f + b0f62a6 commit e957a35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pocsuite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""

__title__ = 'pocsuite'
__version__ = '2.0.6'
__version__ = '2.0.7'
__author__ = 'Knownsec Security Team'
__author_email__ = '[email protected]'
__license__ = 'GPL 2.0'
Expand Down
3 changes: 1 addition & 2 deletions pocsuite/api/x.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def resourceInfo(self):
content = json.loads(req.content)
if 'plan' in content:
self.plan = content['plan']
self.resources['web-search'] = content['resources']['web-search']
self.resources['host-search'] = content['resources']['host-search']
self.resources['search-limit'] = content['resources']['search']
return True
return False

Expand Down
2 changes: 1 addition & 1 deletion pocsuite/pocsuite_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def doNothin(*args, **kw):
info = z.resources
logger.log(
CUSTOM_LOGGING.SYSINFO,
'Available ZoomEye web search limit count: {}, host search limit count: {}'.format(info['web-search'], info['host-search'])
'Available ZoomEye search limit count: {}'.format(info['search-limit'])
)

tmpIpFile = paths.POCSUITE_OUTPUT_PATH + '/zoomeye_%s.txt' % time.strftime('%Y_%m_%d_%H_%M_%S')
Expand Down

0 comments on commit e957a35

Please sign in to comment.