Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandle Error - exceptions.ValueError: CTR mode needs counter parameter, not IV #222

Open
tarounen opened this issue Sep 28, 2017 · 1 comment

Comments

@tarounen
Copy link

Hello i treid to setup kippo on an Ubuntu server 17.04.
After some trials i finally got it to work.

However in the kippo.log i keep getting this unhandle error.
is there anyway to fix it?

2017-09-28 11:46:30+0000 [HoneyPotTransport,0,196.20.187.232] Unhandled Error
        Traceback (most recent call last):
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/python/log.py", line 88, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/python/log.py", line 73, in callWithContext
            return context.call({ILogContext: newCtx}, func, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/python/context.py", line 81, in callWithContext
            return func(*args,**kw)
        --- <exception caught here> ---
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py", line 209, in doRead
            return self._dataReceived(data)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/internet/tcp.py", line 215, in _dataReceived
            rval = self.protocol.dataReceived(data)
          File "/home/kippo/kippo/kippo/core/ssh.py", line 170, in dataReceived
            transport.SSHServerTransport.dataReceived(self, data)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/conch/ssh/transport.py", line 461, in dataReceived
            self.dispatchMessage(messageNum, packet[1:])
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/conch/ssh/transport.py", line 476, in dispatchMessage
            f(payload)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/conch/ssh/transport.py", line 1038, in ssh_KEX_DH_GEX_INIT
            self._keySetup(sharedSecret, exchangeHash)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/conch/ssh/transport.py", line 756, in _keySetup
            outs[2], ins[2])
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/conch/ssh/transport.py", line 1430, in setKeys
            o = self._getCipher(self.outCipType, outIV, outKey)
          File "/usr/local/lib/python2.7/dist-packages/Twisted-15.1.0-py2.7-linux-x86_64.egg/twisted/conch/ssh/transport.py", line 1456, in _getCipher
            counter=_Counter(iv, mod.block_size))
          File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 94, in new
            return AESCipher(key, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/AES.py", line 59, in __init__
            blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)
          File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py", line 141, in __init__
            self._cipher = factory.new(key, *args, **kwargs)
        exceptions.ValueError: CTR mode needs counter parameter, not IV
@tit0r
Copy link

tit0r commented Nov 12, 2017

Hi tarounen,
have you installed pycrypto ? pip install pycrypto

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants