mirror of https://github.com/n1nj4sec/pupy.git
Remove debug messages
This commit is contained in:
parent
77bcabd4ec
commit
1d89fe6567
|
@ -63,7 +63,6 @@ class Forward(PupyModule):
|
||||||
self._run(args)
|
self._run(args)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
import traceback
|
import traceback
|
||||||
print 'PIZDA: {}'.format(e)
|
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
def _run(self, args):
|
def _run(self, args):
|
||||||
|
@ -156,7 +155,6 @@ class Forward(PupyModule):
|
||||||
)
|
)
|
||||||
|
|
||||||
local, remote, local_id, remote_id = state.get()
|
local, remote, local_id, remote_id = state.get()
|
||||||
print 'STATE: {} -> {}, {} -> {}'.format(local, remote, local_id, remote_id)
|
|
||||||
|
|
||||||
if args.local:
|
if args.local:
|
||||||
manager = local
|
manager = local
|
||||||
|
@ -171,12 +169,8 @@ class Forward(PupyModule):
|
||||||
else:
|
else:
|
||||||
forward = None
|
forward = None
|
||||||
|
|
||||||
print 'Bind {}/{} {}:{} -> {}'.format(manager, id, lhost, lport, forward)
|
|
||||||
|
|
||||||
manager.bind(id, host=lhost, port=lport, forward=forward)
|
manager.bind(id, host=lhost, port=lport, forward=forward)
|
||||||
self.success('Forwarding added')
|
self.success('Forwarding added')
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.error('Forwarding failed: {}:{}'.format(type(e), e))
|
self.error('Forwarding failed: {}:{}'.format(type(e), e))
|
||||||
for n in manager.neighbors:
|
|
||||||
print '{}: {}'.format(n, manager.neighbors[n].local_id)
|
|
||||||
|
|
Loading…
Reference in New Issue