File size: 666 Bytes
32ff816
 
 
 
 
 
 
 
 
 
 
 
 
9b1247d
32ff816
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import ctypes
import os

def list_symbols(library_path):
    # Carregar a biblioteca
    lib = ctypes.CDLL(library_path)
    
    # Obter todos os símbolos da biblioteca
    symbols = [symbol for symbol in dir(lib) if not symbol.startswith('_')]
    return symbols

if __name__ == "__main__":
    current_dir = os.path.dirname(os.path.abspath(__file__))
    so_path = os.path.join(current_dir, "SynapseControl.cpython-310-x86_64-linux-gnu.so")
    if os.path.exists(so_path):
        symbols = list_symbols(so_path)
        print("Symbols in the library:")
        for symbol in symbols:
            print(symbol)
    else:
        print("Library file not found.")