Skip to main content
Glama
VERMAXVR

awsome_kali_MCPServers

actions.py1.66 kB
import asyncio from src.kali_mcps.base.kali_command import CommandRunner class ObjdumpCommand(CommandRunner): def __init__(self): super().__init__("objdump", network_enabled=False, memory_limit="1g", timeout=120) def file_headers_action(target: str) -> tuple[str, str]: """ Display file headers For example: objdump -f /path/to/file """ cmd = ObjdumpCommand() command = ["objdump", "-f", target] return cmd.execute(command) def disassemble_action(target: str, section: str = ".text") -> tuple[str, str]: """ Disassemble section (default: .text) For example: objdump -d -j .text /path/to/file """ cmd = ObjdumpCommand() command = ["objdump", "-d", "-j", section, target] return cmd.execute(command) def symbol_table_action(target: str) -> tuple[str, str]: """ Display symbol table For example: objdump -t /path/to/file """ cmd = ObjdumpCommand() command = ["objdump", "-t", target] return cmd.execute(command) def section_headers_action(target: str) -> tuple[str, str]: """ Display all section headers For example: objdump -h /path/to/file """ cmd = ObjdumpCommand() command = ["objdump", "-h", target] return cmd.execute(command) def full_contents_action(target: str) -> tuple[str, str]: """ Display all information including headers and disassembly For example: objdump -x /path/to/file """ cmd = ObjdumpCommand() command = ["objdump", "-x", target] return cmd.execute(command) if __name__ == "__main__": # Test example target_file = "/bin/ls" print(file_headers_action(target_file))

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/VERMAXVR/awsome_kali_MCPServers'

If you have feedback or need assistance with the MCP directory API, please join our Discord server