Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote code execution #3

Open
TheHamkerCat opened this issue Aug 7, 2021 · 1 comment
Open

Remote code execution #3

TheHamkerCat opened this issue Aug 7, 2021 · 1 comment

Comments

@TheHamkerCat
Copy link

TheHamkerCat commented Aug 7, 2021

Why did you even think of doing this?

return float(eval(text))

It evaluates any python code that is passed in it, so using

@calcit_bot __import__('os').execvp("/bin/bash", ["/bin/bash"])

is enough to kill the bot.

@ghost
Copy link

ghost commented Aug 7, 2021

XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant