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

Implemet HASSH #17

Open
gallypette opened this issue Oct 7, 2019 · 0 comments
Open

Implemet HASSH #17

gallypette opened this issue Oct 7, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gallypette
Copy link
Member

gallypette commented Oct 7, 2019

https://github.com/salesforce/hassh
It's a MD5 hash of the content of Algorithm Negotiation packets.
See in cowrie:

        ckexAlgs = ','.join([alg.decode('utf-8') for alg in kexAlgs])
        cencCS = ','.join([alg.decode('utf-8') for alg in encCS])
        cmacCS = ','.join([alg.decode('utf-8') for alg in macCS])
        ccompCS = ','.join([alg.decode('utf-8') for alg in compCS])
        hasshAlgorithms = "{kex};{enc};{mac};{cmp}".format(
            kex=ckexAlgs,
            enc=cencCS,
            mac=cmacCS,
            cmp=ccompCS)
        hassh = md5(hasshAlgorithms.encode('utf-8')).hexdigest()
@gallypette gallypette added the enhancement New feature or request label Oct 7, 2019
@gallypette gallypette self-assigned this Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant