/Prison-Architect-Execution

Basic Prison Architect Lua Execution

Primary LanguageCGNU General Public License v3.0GPL-3.0

GitHub Windows 10 GitLab


Information

  • How to use:

    • Compile the DLL then inject it in Prison Architect with a DLL Injector. Make sure you compile it in x32. Make sure to run Windows 10 Do not run Windows 10 . My favorite DLL Injector is Extreme Injector. To download: Click Here
  • Wiki:

  • Information:

    • x32
    • Loadstring Execution
    • Command Line
  • LuaC Functions Using:

  • Language Used:

  • Project I'm Working on:

    • Going Green
  • Done:

    • 1.04
  • OS:


What does it do?

It uses the game "Lua Engine" to execute lua on it by using the loadstring address. there are alternative ways that you can do instead of using the games loadstring to execute Lua into the game. I just chosed the easier way of doing it.


Script to test the exploit:

Game.AdviserSay("CEO", "This is a test")
Game.GameOver()

You can start coding your own script if one of those work, I also listed 3 wiki that you can use. If you do not know Lua you can go here: www.lua.org to learn.


  • Todo:

    • Add script decompiler (it's done i just haven't released it yet)
    • Make a UI
    • Auto Grab Addy's
    • Update to the latest version of Prison Architect (Working on it)
    • Lua Execution
  • Done:

    • In game execution
    • Clean Code & easy to understand
    • Command line
    • Detach the DLL from the game
    • Work's on 1.04

It does not work on 1.05 (Going Green)[Pack] I got to fix it but if you want you can do it on your own here's the addresses [Might want to change somethings up]. More addresses here: Click Here

1.05 Addresses (NEW)

Function Address Calling Convention
gettop 0x9917E0 CDECL
loadstring 0x993390 CDECL
pcall 0x991B20 CDECL

1.04 Addresses (OLD)

Function Address Calling Convention
gettop 0x955CA0 CDECL
loadstring 0x957850 CDECL
pcall 0x955FE0 CDECL
Prison Architect [Going Green] Full Addresses
Going Green
Windows 10
Function Address Calling Convention
LOADSTRING 0x993390 CDECL
LOAD 0x995F20 CDECL
PCALL 0x991B20 CDECL
GETTOP 0x9917E0 CDECL
RAWGETI 0x991ED0 CDECL
PUSHVALUE 0x991DF0 CDECL
CALL 0x9913B0 CDECL
TYPE 0x992610 CDECL
ISSTRING 0x991910 CDECL
REPLACE 0x992040 CDECL
TOLSTRING 0x992490 CDECL
ISNUMBER 0x9918D0 CDECL
TONUMBER 0x992510 CDECL
PUSHTHREAD 0x991DC0 CDECL
INSERT 0x991850 CDECL
SETFENV 0x992110 CDECL
GETSTACK 0x994750 CDECL
GETINFO 0x994650 CDECL
PUSHVFSTRING 0x991E20 CDECL
CONCAT 0x991460 CDECL
ERROR 0x991560 CDECL
SETTOP 0x992300 CDECL
SETMETATABLE 0x992220 CDECL
GETMETATABLE 0x991750 CDECL
PUSHNIL 0x991D50 CDECL
PUSHSTRING 0x991D50 CDECL
RAWGET 0x991E90 CDECL
REMOVE 0x991FF0 CDECL
CHECKSTACK 0x9913F0 CDECL
XMOVE 0x992660 CDECL
SETLEVEL 0x992200 CDECL
RESUME 0x9961C0 CDECL
NEWTHREAD 0x9919D0 CDECL
ISCFUNCTION 0x9918A0 CDECL
TOUSERDATA 0x9925E0 CDECL
GETFIELD 0x9916F0 CDECL
RAWEQUAL 0x991E50 CDECL
PUSHNUMBER 0x991D30 CDECL
TOBOOLEAN 0x992E20 CDECL
GETFENV 0x9912A0 CDECL
TOCFUNCTION 0x53111470 CDECL
TOTHREAD 0x9925C0 CDECL
TOPOINTER 0x992550 CDECL
TYPENAME 0x992640 CDECL
PUSHINTEGER 0x992940 CDECL
CREATETABLE 0x9914E0 CDECL
PUSHCCLOSURE 0x991BB0 CDECL
NEWUSERDATA 0x991A10 CDECL
RAWSET 0x991F10 CDECL

Current project working i'm on:

Prison Architect [Going Green Executor]

Going Green