Ejemplo n.º 1
0
def core_set_license(licenseData):
	'''
		``core_set_license`` is used to initialize the core with a license file that doesn't necessarily reside on a file system. This is especially useful for headless environments such as docker where loading the license file via an environment variable allows for greater security of the license file itself.

		:param str licenseData: string containing the full contents of a license file
		:return:  user plugin path
		:rtype: None
		:Example:

			>>> import os
			>>> core_set_license(os.environ['BNLICENSE']) #Do this before creating any BinaryViews
			>>> with open_view("/bin/ls") as bv:
			...		print(len(bv.functions))
			128
	'''
	core.BNSetLicense(licenseData)
Ejemplo n.º 2
0
def core_set_license(licenseData):
    '''Set the Binary Ninja license data, an alternative to storing a ``license.dat`` file'''
    core.BNSetLicense(licenseData)