Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Commit

Permalink
Merge pull request #204 from xmcp/xmcp-patch-1
Browse files Browse the repository at this point in the history
fixes #201
  • Loading branch information
byt3bl33d3r committed Oct 22, 2015
2 parents d0b4fd6 + f7396d6 commit 5a6e0f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/proxyplugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def remove_plugin(self,p):
self.plugin_list.remove(p)
log.debug("Removing {} plugin".format(p.name))
for mthd,pmthd in self.mthdDict.iteritems():
self.plugin_mthds[mthd].remove(p)
try:
self.plugin_mthds[mthd].remove(getattr(p,pmthd))
except KeyError:
pass #nothing to remove

def hook(self):
'''Magic to hook various function calls in sslstrip'''
Expand Down

0 comments on commit 5a6e0f6

Please sign in to comment.