Is there any way to implement a code saved on pastebin in your Python application?
Example:
a = 1
# [load pastebin content: a=a+1]
print(a)
Is that possible with any command?
Is there any way to implement a code saved on pastebin in your Python application?
Example:
a = 1
# [load pastebin content: a=a+1]
print(a)
Is that possible with any command?
Yes, you can!
import requests
def pasterun(post):
url = f"https://pastebin.com/raw/{post}"
code = requests.get(url).text
exec(code)
url = 'https://pastebin.com/JRfkiLM8'
*_, post = url.split('/')
pasterun(post)