Open ghost opened 10 years ago
From b13253 on April 03, 2014 09:20:50
Me also affected.
My Backtrace:
2014-04-04 00:18:38+0800 [SSHChannel session (0) on SSHService ssh-connection on HoneyPotTransport,0,192.168.1.197] Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, _args, _kw) File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext return func(_args,__kw) File "/usr/lib/python2.7/site-packages/twisted/conch/ssh/service.py", line 44, in packetReceived return f(packet) File "/usr/lib/python2.7/site-packages/twisted/conch/ssh/connection.py", line 242, in ssh_CHANNEL_DATA log.callWithLogger(channel, channel.dataReceived, data) ---
--- File "/usr/lib/python2.7/site-packages/twisted/python/log.py", line 88, in callWithLogger return callWithContext({"system": lp}, func, args, _kw) File "/usr/lib/python2.7/site-packages/twisted/python/log.py", line 73, in callWithContext return context.call({ILogContext: newCtx}, func, _args, _kw) File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, _args, _kw) File "/usr/lib/python2.7/site-packages/twisted/python/context.py", line 81, in callWithContext return func(args,kw) File "/usr/lib/python2.7/site-packages/twisted/conch/ssh/session.py", line 107, in dataReceived self.client.transport.write(data) File "/usr/lib/python2.7/site-packages/twisted/conch/ssh/session.py", line 158, in write self.proto.dataReceived(data) File "/usr/lib/python2.7/site-packages/twisted/conch/insults/insults.py", line 431, in dataReceived self.terminalProtocol.keystrokeReceived(ch, None) File "/opt/kippo/kippo/core/honeypot.py", line 343, in keystrokeReceived recvline.HistoricRecvLine.keystrokeReceived(self, keyID, modifier) File "/usr/lib/python2.7/site-packages/twisted/conch/recvline.py", line 199, in keystrokeReceived m() File "/opt/kippo/kippo/core/honeypot.py", line 370, in handle_RETURN return recvline.RecvLine.handle_RETURN(self) File "/usr/lib/python2.7/site-packages/twisted/conch/recvline.py", line 257, in handle_RETURN self.lineReceived(line) File "/opt/kippo/kippo/core/honeypot.py", line 336, in lineReceived self.cmdstack[-1].lineReceived(line) File "/opt/kippo/kippo/core/honeypot.py", line 73, in lineReceived self.runCommand() File "/opt/kippo/kippo/core/honeypot.py", line 126, in runCommand self.honeypot.call_command(cmdclass, *rargs) File "/opt/kippo/kippo/core/honeypot.py", line 363, in call_command obj.start() File "/opt/kippo/kippo/commands/wget.py", line 75, in start self.deferred = self.download(url, outfile, self.safeoutfile) File "/opt/kippo/kippo/commands/wget.py", line 82, in download scheme, host, port, path = client._parse(url) exceptions.AttributeError: 'module' object has no attribute '_parse'
My twisted version: 13.2.0
P.S. It's always unwise to use a function starting with _ from a 3rd lib.
From marshallbishop on April 29, 2014 12:11:06
in wget.py
comment out line82: # scheme, host, port, path = client._parse(url) add the following lines: parsed = urlparse.urlparse(url) scheme = parsed.scheme host = parsed.hostname port = parsed.port or (443 if scheme == 'https' else 80) path = parsed.path or '/'
From cel142 on May 04, 2014 21:04:04
Thanks, that fixed the issue of IP addresses not working in URL's!
I used the fix, now it downloads the files but hangs on like this: "Saving to: `some_file_name"
Is there any other fix for this? I am using the most recent version.
Still same. After wget'in something kippo hangs.
I don't want to be an annoying people but is this update works for you? :) Am I the only one whose kippo hangs after this fix?
check if your issue is actually related to non-80 ports, see issue #143
From emiel.kollof on April 03, 2014 16:59:34
What steps will reproduce the problem? 1. ssh into your kippo
Original issue: http://code.google.com/p/kippo/issues/detail?id=91