MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / authentication_methods

Function authentication_methods

python/enterprise.py:86–102  ·  view source on GitHub ↗

Get a list of authentication methods accepted by the Enterprise Server. :return: List of ( , ) tuples

()

Source from the content-addressed store, hash-verified

84
85
86def authentication_methods() -> List[Tuple[str, str]]:
87 """
88 Get a list of authentication methods accepted by the Enterprise Server.
89
90 :return: List of (<method name>, <method display name>) tuples
91 """
92 if not is_connected():
93 connect()
94 methods = ctypes.POINTER(ctypes.c_char_p)()
95 names = ctypes.POINTER(ctypes.c_char_p)()
96 count = core.BNGetEnterpriseServerAuthenticationMethods(methods, names)
97 results = []
98 for i in range(count):
99 results.append((core.pyNativeStr(methods[i]), core.pyNativeStr(names[i])))
100 core.BNFreeStringList(methods, count)
101 core.BNFreeStringList(names, count)
102 return results
103
104
105def deauthenticate():

Callers

nothing calls this directly

Calls 3

is_connectedFunction · 0.85
connectFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected