GithubHelp home page GithubHelp logo

vurv78 / luapro Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 1.0 139 KB

Lua AST toolkit for formatting, deobfuscating*, and tweaking code, in pure lua.

Home Page: https://vurv78.github.io/LuaPro/web/index.html

License: GNU General Public License v3.0

Lua 90.92% HTML 1.46% JavaScript 5.93% CSS 1.70%
formatter lua luajit parser deobfuscation deobfuscator lexer toolkit ast

luapro's Introduction

๐Ÿง LuaPro CI Badge License github/Vurv78

Lua AST toolkit for formatting, deobfuscating*, and tweaking code, in pure lua.

Turns

print("abc")local a,b=55,21;do print("xyz")end;repeat break;repeat print("Hi")(function(a,b,c)a,b=b,c;local d=0x50;local e="\x70\x72\x69\x6e\x74\x28\x27\x65\x76\x69\x6c\x20\x6c\x75\x61\x20\x63\x6f\x64\x65\x27\x29"end)()until true;local f,g,h;for i=1,2,3 do _G["\x6c\x6f\x61\x64\x73\x74\x72\x69\x6e\x67"]=55 end until true

Into

print("abc")
local a, b = 55, 21
do
	print("xyz")
end
repeat
	break
	repeat
		print("Hi")
		(function(a, b, c)
			a, b = b, c
			local d = 80 --[[0x50]]
			local e = "print('evil lua code')"
		end)()
	until true
	local f, g, h
	for i = 1, 2, 3 do
		_G["loadstring"] = 55
	end
until true

Features

  • Written in pure version agnostic lua (5.1, 5.2, 5.3, 5.4, JIT) ๐ŸŒ”
  • Relatively fast, parses ~10MB of code in ~3 seconds
  • Formatting Lua 5.1 / LuaJIT code with proper indentation and spacing.
  • Code deobfuscation with methods such as constant folding and dead code elimination*

* Not yet (re)implemented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.