Skip to content

Commit

Permalink
remove processor menu from context
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-m0nst3r committed Sep 30, 2020
1 parent 781356a commit 28c464c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions res/burpyServicePyro3.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#coding:utf-8
import Pyro4
import sys
from imp import reload
reload(sys)

m_module = sys.argv[-1]

Expand Down Expand Up @@ -81,11 +83,11 @@ def __getattr__(self, attr):
return getattr(self.stream, attr)

@Pyro4.expose
class BridaServicePyro:
class BurpyServicePyro:
def __init__(self, daemon):
self.daemon = daemon
self.burpy = b.Burpy()
self.method_list = [func for func in dir(b.Burpy) if callable(getattr(b.Burpy, func)) and not func.startswith("__") and not func.startswith("_")]
self.method_list = [func for func in dir(b.Burpy) if callable(getattr(b.Burpy, func)) and not func.startswith("__") and not func.startswith("_") and not func=="processor"]

def get_methods(self):
return self.method_list
Expand Down Expand Up @@ -129,7 +131,7 @@ def shutdown(self):
daemon = Pyro4.Daemon(host=host,port=port)

#daemon = Pyro4.Daemon(host='127.0.0.1',port=9999)
bs = BridaServicePyro(daemon)
bs = BurpyServicePyro(daemon)
uri = daemon.register(bs,objectId='BurpyServicePyro')

print("Ready.")
Expand Down

0 comments on commit 28c464c

Please sign in to comment.