Skip to content

Instantly share code, notes, and snippets.

@axtrct
Last active December 29, 2022 13:30
Show Gist options
  • Save axtrct/f16a2160c42d380fd9cbb0dbc32fef2f to your computer and use it in GitHub Desktop.
Save axtrct/f16a2160c42d380fd9cbb0dbc32fef2f to your computer and use it in GitHub Desktop.
getfenv 101

intro

oh em gee this is such getfenv() gaming

crazy things

Ok first of all you can list all the available functions and children (don't take this out of context please) with it...

print(getfenv())

And uhhh you access the childrens and functions

getfenv()['hi']['sex']['doodlecock']
getfenv()['function']()

Not just that.... Let's review methods a bit..

(parent).function() (parent):function()
self definition manually define self automatically define self
getfenv() compatitbel??? cooler for getfenv() nahhhhhhhhhhhhhhhh

if you have a (parent).function() as the original method.... you can do this...

getfenv()['parent']['function']()

but if you have a (parent):function(), you can't do this...... (it is because self IS NOT DEFINED.. CRAZY IKR)

getfenv()['parent']['function']()

but don't worry... all you have to do is define self on the function itself...

getfenv()['parent']['function'](parent)
-- parent is the function's parent

now here's something fun with PRINT!!!!!! we LEARN PRINT!!!!

print('Hello, world!') -- your local average print
print 'Hello, world!' -- HUH!!!! Where BRACKETZ...
print'Hello, world!' -- Wwo stop killing spaces...
-- since you can do funny semicolon at the end like c, you can do this...
print'Hello, world!';
-- wowo..... also... [[]] is a multiline string... so basically you can do this
print[[Hello, world!]];
-- now let's mix it with GETFENV!!!!
getfenv()['print'][[Hello, world!]];

isn't that funny...
anyway guys time to move back to getfenv and here's a trick.. you CAN CHAIN GETFENV?? NO WAY,,,,,,,,

getfenv()['getfenv']() -- works
getfenv()['getfenv']()['getfenv']()['getfenv']()['getfenv']()['getfenv']()['getfenv']()['getfenv']()['getfenv']() -- also works

i know this is awesome.........
but but but!!! how about you uhh make variable

-- there is like ummm 2 types of variable... local and global
local fart = 'xd' -- local variable
cock = 'xd' -- global variable
-- you can also define globals like this...
getfenv()['cock'] = 'what'
-- and access it later

soooooooooo yeah............... but im not done.
you can escape STRINGS!!! and MAKE IT WORSE!!!! For example: lil text -> \x6C\x69\x6C\x20\x74\x65\x78\x74 or \108\105\108\32\116\101\120\116
when you use funny functions that need string, do it and it will UNESCAPE ITSELF!!!!
BUT how DO I UNESCAPE NUMBER IF I DO THAT.... GREAT QUESTION!

-- just tonumber it smh
tonumber('your thing here')

idk about boolean and shit but like yeah weird syntax exist too i can make a gist about it if i feel like it hHujiakhfdaisjohasfdohiasf
also you can do uh getfenv(number here) to probably select the function that called the function that called the function that called the what the ifsgdfikosgdshjoikgfdjipogdjopigjpsgdhjigopjpsgodpjogphjogsdoj

tHATS IT..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment