Giter VIP home page Giter VIP logo

kerbrute's Issues

SessionKeyDecryptionError

Traceback (most recent call last):
File "kerbrute.py", line 31, in
from impacket.krb5.kerberosv5 import getKerberosTGT, KerberosError, SessionKeyDecryptionError
ImportError: cannot import name SessionKeyDecryptionError

Erorr when trying right user&pass pair against krb5-kdc

As I was getting to know how to use this i wanted to test it against just few users (knowing which are good and which wrong) and few passwords (with one right).

Discovering users work fine, but I always get "no password discovered" even though I know there is one correct pair.

After adding -debug, and get an error:

[+] Error trying correctUser:correctPassword <TagSet object, tags 0:32:16-64:32:26> not in asn1Spec: <EncASRepPart schema object, tagSet=<TagSet object, tags 0:32:16-64:32:25>, subtypeSpec=<ConstraintsIntersection object>, componentType=<NamedTypes object, types <NamedType object, type key=<EncryptionKey schema object, tagSet=<TagSet object, tags 0:32:16-128:32:0>, subtypeSpec=<ConstraintsIntersection object>, componentType=<NamedTypes object, types <NamedType object, type keytype=<Int32 schema object, tagSet <TagSet object, tags 0:0:2-128:32:0>, subtypeSpec <ConstraintsIntersection object, consts <ValueRangeConstraint object, consts -2147483648, 2147483647>>>>, <NamedType object, type keyvalue=<OctetString schema object, tagSet <TagSet object, tags 0:0:4-128:32:1>, encoding iso-8859-1>>>, sizeSpec=<ConstraintsIntersection object>>>, <NamedType object, type last-req=<LastReq schema object, tagSet=<TagSet object, tags 0:32:16-128:32:1>, subtypeSpec=<ConstraintsIntersection object>, componentType=<Sequence schema object, tagSet=<TagSet object, tags 0:32:16>, subtypeSpec=<ConstraintsIntersection object>, componentType=<NamedTypes object, types <NamedType object, type lr-type=<Int32 schema object, tagSet <TagSet object, tags 0:0:2-128:32:0>, subtypeSpec <ConstraintsIntersection object, consts <ValueRangeConstraint object, consts -2147483648, 2147483647>>>>, <NamedType object, type lr-value=<KerberosTime schema object, tagSet <TagSet object, tags 0:0:24-128:32:1>, encoding us-ascii>>>, sizeSpec=<ConstraintsIntersection object>>, sizeSpec=<ConstraintsIntersection object>>>, <NamedType object, type nonce=<UInt32 schema object, tagSet <TagSet object, tags 0:0:2-128:32:2>>>, <OptionalNamedType object, type key-expiration=<KerberosTime schema object, tagSet <TagSet object, tags 0:0:24-128:32:3>, encoding us-ascii>>, <NamedType object, type flags=<TicketFlags schema object, tagSet <TagSet object, tags 0:0:3-128:32:4>>>, <NamedType object, type authtime=<KerberosTime schema object, tagSet <TagSet object, tags 0:0:24-128:32:5>, encoding us-ascii>>, <OptionalNamedType object, type starttime=<KerberosTime schema object, tagSet <TagSet object, tags 0:0:24-128:32:6>, encoding us-ascii>>, <NamedType object, type endtime=<KerberosTime schema object, tagSet <TagSet object, tags 0:0:24-128:32:7>, encoding us-ascii>>, <OptionalNamedType object, type renew-till=<KerberosTime schema object, tagSet <TagSet object, tags 0:0:24-128:32:8>, encoding us-ascii>>, <NamedType object, type srealm=<Realm schema object, tagSet <TagSet object, tags 0:0:27-128:32:9>, encoding iso-8859-1>>, <NamedType object, type sname=<PrincipalName schema object, tagSet=<TagSet object, tags 0:32:16-128:32:10>, subtypeSpec=<ConstraintsIntersection object>, componentType=<NamedTypes object, types <NamedType object, type name-type=<Int32 schema object, tagSet <TagSet object, tags 0:0:2-128:32:0>, subtypeSpec <ConstraintsIntersection object, consts <ValueRangeConstraint object, consts -2147483648, 2147483647>>>>, <NamedType object, type name-string=<SequenceOf schema object, tagSet=<TagSet object, tags 0:32:16-128:32:1>, subtypeSpec=<ConstraintsIntersection object>, componentType=<KerberosString schema object, tagSet <TagSet object, tags 0:0:27>, encoding iso-8859-1>, sizeSpec=<ConstraintsIntersection object>>>>, sizeSpec=<ConstraintsIntersection object>>>, <OptionalNamedType object, type caddr=<HostAddresses schema object, tagSet=<TagSet object, tags 0:32:16-128:32:11>, subtypeSpec=<ConstraintsIntersection object>, componentType=<HostAddress schema object, tagSet=<TagSet object, tags 0:32:16>, subtypeSpec=<ConstraintsIntersection object>, componentType=<NamedTypes object, types <NamedType object, type addr-type=<Int32 schema object, tagSet <TagSet object, tags 0:0:2-128:32:0>, subtypeSpec <ConstraintsIntersection object, consts <ValueRangeConstraint object, consts -2147483648, 2147483647>>>>, <NamedType object, type address=<OctetString schema object, tagSet <TagSet object, tags 0:0:4-128:32:1>, encoding iso-8859-1>>>, sizeSpec=<ConstraintsIntersection object>>, sizeSpec=<ConstraintsIntersection object>>>, <OptionalNamedType object, type encrypted_pa_data=<METHOD_DATA schema object, tagSet=<TagSet object, tags 0:32:16-128:32:12>, subtypeSpec=<ConstraintsIntersection object>, componentType=<PA_DATA schema object, tagSet=<TagSet object, tags 0:32:16>, subtypeSpec=<ConstraintsIntersection object>, componentType=<NamedTypes object, types <NamedType object, type padata-type=<Int32 schema object, tagSet <TagSet object, tags 0:0:2-128:32:1>, subtypeSpec <ConstraintsIntersection object, consts <ValueRangeConstraint object, consts -2147483648, 2147483647>>>>, <NamedType object, type padata-value=<OctetString schema object, tagSet <TagSet object, tags 0:0:4-128:32:2>, encoding iso-8859-1>>>, sizeSpec=<ConstraintsIntersection object>>, sizeSpec=<ConstraintsIntersection object>>>>, sizeSpec=<ConstraintsIntersection object>>

I am running it on clean, freshly installed deb10, with locally hosted krb5-kdc. Kerbrute was installed via pip3.

Got any idea what can be the problem and how to solve it?

UnicodeDecodeError on Kali

I'm unable to run kerbrute, neither with python3 or python3.9, i got:

Impacket v0.9.23 - Copyright 2021 SecureAuth Corporation

Traceback (most recent call last):
  File "/home/kali/kerbrute/kerbrute.py", line 4, in <module>
    kerbrute.main()
  File "/home/kali/kerbrute/kerbrute/main.py", line 100, in main
    args = parser.parse_args()
  File "/home/kali/kerbrute/kerbrute/main.py", line 80, in parse_args
    args.passwords = self._get_file_lines(args.passwords)
  File "/home/kali/kerbrute/kerbrute/main.py", line 92, in _get_file_lines
    return [line.strip('\r\n') for line in fi]
  File "/home/kali/kerbrute/kerbrute/main.py", line 92, in <listcomp>
    return [line.strip('\r\n') for line in fi]
  File "/usr/lib/python3.9/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 933: invalid continuation byte

Also installing through pip i get same error :-(

Wrong version

Hi,

i have installed Kerbrute on Kali Linux, but the version is old and thus does not work correctly, is the repository outdated?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.