https://github.com/codervijo/luascope
https://github.com/codervijo/luascope
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/codervijo/luascope
- Owner: codervijo
- Created: 2019-11-24T06:03:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T19:04:29.000Z (over 5 years ago)
- Last Synced: 2024-11-25T01:33:34.560Z (over 1 year ago)
- Language: Lua
- Size: 343 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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)
...
....
```