enterprise module

Class

Description

binaryninja.enterprise.LicenseCheckout

LicenseCheckout

class LicenseCheckout[source]

Bases: object

Helper class for scripts to make use of a license checkout in a scope.

Parameters:
  • duration – Duration between refreshes

  • _cache – Deprecated but left in for compatibility

  • release – If the license should be released at the end of scope. If False, you can either manually release it later or it will expire after duration.

Example:
>>> enterprise.connect()
>>> enterprise.authenticate_with_credentials("username", "password")
>>> with enterprise.LicenseCheckout():
...     # Do some operation
...     with load("/bin/ls") as bv: # e.g.
...             print(hex(bv.start))
# License is released at end of scope
__init__(duration=900, _cache=True, release=True)[source]

Get a new license checkout

Parameters:
  • duration – Duration between refreshes

  • _cache – Deprecated but left in for compatibility

  • release – If the license should be released at the end of scope. If False, you can either manually release it later or it will expire after duration.

acquire()[source]
release()[source]