SkillAgentSearch skills...

LuaCapstone

Capstone Engine bindings for Lua

Install / Use

/learn @Dax89/LuaCapstone
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Lua Capstone

Capstone Binding for Lua.<br> All 8 architectures are supported

Lua Usage

Look in "tests" folder

C++ Usage

void runTest(lua_State* l, const char* filename)
{
    cout << "- Running: " << filename << endl;

    int err = luaL_dofile(l, filename);

    if(err)
        cout << "ERR: " << lua_tostring(l, -1) << endl;
}

int main()
{
    lua_State* l = luaL_newstate();
    luaL_openlibs(l);
    luaopen_capstone(l);

    runTest(l, "tests/test_x86.lua");
    runTest(l, "tests/test_mips.lua");
    runTest(l, "tests/test_iter.lua");

    lua_close(l);
    return 0;
}
View on GitHub
GitHub Stars18
CategoryDevelopment
Updated1y ago
Forks6

Languages

C++

Security Score

60/100

Audited on Dec 3, 2024

No findings