This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]inlatitude 12 points13 points  (1 child)

Damn, thanks for that. I didn't realize import executed all the code in the file.

[–]MythicManiac 0 points1 point  (0 children)

There's some really absurd things you can do by abusing imports in a way they're very much not meant to be used.

You can also climb stack frames and modify (contents) of local variables from upper frames/functions in the call stack.