Skip to content

codervijo/luascope

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

luascope

Lua Scope is for looking into Lua chunk, or IOW, decode lua chunks. A Lua 5.1/5.2/5.3 binary chunk disassembler. LuaScope was inspired by Jein-Hong Man's ChunkSpy. LuaScope attempts to be lua version agnostic.

  • Based on ChunkSpy on Lua 5.1
  • Works as ChunkSpy on Lua 5.2
  • Works also as ChunkSpy on Lua 5.3

Dockerfile and shell scripts are provided for you to run 5.1/5.2/5.3 inside a container.

Compatibility

This was tested only on Ubuntu, but should work on any Unix-based system.

Steps to get started

  1. Make sure b2b directory has git submodule by running either git clone --recurse-submodules https://github.com/codervijo/luascope or git submodule update --init
  2. Make sure docker is installed
  3. Run ./lua53dock.sh to run luascope with Lua-5.3

If you do not have docker for any reason, do the following instead of 3 steps above: lua ./scope.lua

How to use luascope

$ ./lua53dock.sh 
Found Lua Version	Lua 5.3
>print "hi"
hi
Pos   Hex Data   Description or Code
------------------------------------------------------------------------
0000                     ** source chunk: (interactive mode)
                         ** global header start **
0000  1B4C7561           header signature: "\27Lua"
0004  53                 version (major:minor hex digits)
0005  00                 format (0=official)
...
....

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published