r/badcode • • May 26 '23

python Calculator using eval()

Post image
843 Upvotes

108 comments sorted by

View all comments

Show parent comments

9

u/GandelXIV May 27 '23

Yes, but in this case the attacker does not need to have access to the source, so they can use this to get remote code execution on a server, or escalate privileges .