Python

Reading time: 1 minute

tip

Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks

Server using python

test a possible code execution, using the function str():

python
"+str(True)+" #If the string True is printed, then it is vulnerable

Tricks

{{#ref}} ../../generic-methodologies-and-resources/python/bypass-python-sandboxes/ {{#endref}}

{{#ref}} ../../pentesting-web/ssti-server-side-template-injection/ {{#endref}}

{{#ref}} ../../pentesting-web/deserialization/ {{#endref}}

tip

Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

Support HackTricks