scapy.modules.ldaphero

LDAP Hero: a LDAP browser based on the Scapy LDAP client

class scapy.modules.ldaphero.AutoHideScrollbar(*args, **kwargs)[source]

Bases: Scrollbar

set(first, last)[source]
class scapy.modules.ldaphero.BasePopup(parent)[source]

Bases: object

A tkinter wrapper used to have a popup window with basic controls

cancel() None[source]

Cancel the popup

dismiss(*_) None[source]

Close the popup

run() False[source]

Show the popup. Returns True if cancelled, False otherwise.

class scapy.modules.ldaphero.LDAPHero(ssp: SSP = None, mech: LDAP_BIND_MECHS = None, simple_username: str = None, simple_password: str = None, encrypt: bool = False, host: str = None, port: int = None, ssl: bool = False)[source]

Bases: object

LDAP Hero - LDAP GUI browser over Scapy’s LDAP_Client

Parameters:
  • ssp – the SSP object to use when binding.

  • mech – the LDAP_BIND_MECHS to use when binding.

  • simple_username – if provided, used for Simple binding (instead of the ‘ssp’)

  • simple_password

  • encrypt – request encryption by default (useful when using ‘ssp’)

  • host – auto-connect to a specific host

  • port – the port to connect to (default: 389/636) (This is only in use when using ‘host’)

  • ssl – whether to use SSL to connect or not (This is only in use when using ‘host’)

addchild(*args)[source]
bind(*args)[source]

Bind command.

connect()[source]

Connect command.

disconnect()[source]

Disconnect command.

duplicate(*args)[source]
edit(*args)[source]

Edit popup

editmemberof(*_)[source]

Edit popup for “Member Of”

load_guids()[source]

Load the various guids: - schemaIDguid - propset

This cache is used to resolve the GUIDs of objects in ACEs.

main()[source]

Main loop: start the GUI.

modifydn(*args)[source]

Modify the DN of an item

new(mode)[source]

New popup. Called by both ‘Add child’ and ‘Duplicate’ popups

resolvesids(sids)[source]

Queue a list of SIDs for resolution. They are then added to self.sids if successful.

search(*args)[source]

Search popup

tprint(x, tags=[], flush=False)[source]

Print to text pane

tree(*args)[source]

Tree command.

treedoubleclick(_)[source]

Action done on tree double-click.

viewsec(*args)[source]

View security descriptor