question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey, great concept for a tool, going to be excellent doing this from kali with an ntlm hash.

However when i run it, it crashes due to one of the arguments being null? I can’t see where the nonetype would be coming from.

# bloodhound-python -u admin -p password -d target.domain.com
INFO: Found AD domain: target.domain.com
INFO: Connecting to LDAP server: xxxxx-targetdc52.target.domain.com
INFO: Found 1 domains
Traceback (most recent call last):
  File "/usr/local/bin/bloodhound-python", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/bloodhound/__init__.py", line 172, in main
    bloodhound.run(skip_groups=args.skip_groups, skip_computers=args.skip_computers)
  File "/usr/local/lib/python2.7/dist-packages/bloodhound/__init__.py", line 63, in run
    self.dc.fetch_all()
  File "/usr/local/lib/python2.7/dist-packages/bloodhound/ad/domain.py", line 613, in fetch_all
    self.get_computers()
  File "/usr/local/lib/python2.7/dist-packages/bloodhound/ad/domain.py", line 461, in get_computers
    for entry in entries:
  File "/usr/local/lib/python2.7/dist-packages/bloodhound/ad/domain.py", line 368, in search
    for e in result:
  File "/usr/local/lib/python2.7/dist-packages/ldap3/extend/standard/PagedSearch.py", line 63, in paged_search_generator
    None if cookie is True else cookie)
  File "/usr/local/lib/python2.7/dist-packages/ldap3/core/connection.py", line 762, in search
    self.server.schema if self.server else None)
  File "/usr/local/lib/python2.7/dist-packages/ldap3/operation/search.py", line 370, in search_operation
    request['filter'] = compile_filter(parse_filter(search_filter, schema, auto_escape, auto_encode).elements[0])  # parse the searchFilter string and compile it starting from the root node
  File "/usr/local/lib/python2.7/dist-packages/ldap3/operation/search.py", line 230, in compile_filter
    boolean_filter[pos] = compile_filter(element)
  File "/usr/local/lib/python2.7/dist-packages/ldap3/operation/search.py", line 242, in compile_filter
    boolean_filter['innerNotFilter'] = compile_filter(filter_node.elements[0])
  File "/usr/local/lib/python2.7/dist-packages/ldap3/operation/search.py", line 267, in compile_filter
    matching_filter['dnAttributes'] = DnAttributes(filter_node.assertion['dnAttributes'])
  File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/univ.py", line 103, in __init__
    base.AbstractSimpleAsn1Item.__init__(self, value, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/base.py", line 240, in __init__
    value = self.prettyIn(value)
  File "/usr/local/lib/python2.7/dist-packages/pyasn1/type/univ.py", line 254, in prettyIn
    return int(value)
TypeError: int() argument must be a string or a number, not 'NoneType'

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dirkjanmcommented, Apr 17, 2018

I’ve made the dependencies more explicit in v0.3.1, which should prevent this in the future.

0reactions
dirkjanmcommented, Jul 23, 2020

@robertjriga install it with pip3 or install dnspython 1.16.0 first manually

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Arguments Used by Auto Accident Defendants
Argument #1: “It wasn't all my fault!” In many cases, the defendant will claim that the accident was not his or her fault,...
Read more >
2-vehicle crash turns violent Sunday in St. Louis; 1 person shot
A 34-year-old man was shot Sunday afternoon during an argument after a car crash in St. Louis' Dutchtown neighborhood.
Read more >
Car Accident Argument - YouTube
141Two drivers arguing over a car accident during rush hour on a busy intersection. Do you want to send a clip?
Read more >
Thanksgiving Day tragedy after family argument turns violent ...
The driver eventually crashed head-on with multiple vehicles. They died from the collision. One neighbor said him and his family were eating ...
Read more >
Shots fired on Milwaukee's north side, argument after crash
Milwaukee police said someone fired shots after a crash near 60th and Silver Spring on the city's north side Thursday, Dec. 15.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found