Skip to content

Commit

Permalink
Merge pull request #136 from knownsec/bugfix/issue-132
Browse files Browse the repository at this point in the history
bugfix for issue #132
  • Loading branch information
Hysia authored Sep 19, 2017
2 parents 3fee581 + e504c7c commit ba63dcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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.5'
__version__ = '2.0.6'
__author__ = 'Knownsec Security Team'
__author_email__ = '[email protected]'
__license__ = 'GPL 2.0'
Expand Down
4 changes: 3 additions & 1 deletion pocsuite/api/cannon.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import time
import socket
import hashlib
from pocsuite.lib.core.data import kb
from pocsuite.lib.core.data import conf
from pocsuite.lib.core.data import logger
Expand Down Expand Up @@ -53,7 +54,8 @@ def _setHTTPTimeout(self, timeout):

def registerPoc(self):
pocString = multipleReplace(self.pocString, POC_IMPORTDICT)
_, self.moduleName = filepathParser(self.pocName)
_, fileName = filepathParser(self.pocName)
self.moduleName = "%s%s" %(fileName, hashlib.md5(self.target).hexdigest()[:8])
try:
importer = StringImporter(self.moduleName, pocString)
importer.load_module(self.moduleName)
Expand Down

0 comments on commit ba63dcd

Please sign in to comment.