GitHub
github.com › sethsec › PyCodeInjection
GitHub - sethsec/PyCodeInjection: Automated Python Code Injection Tool · GitHub
root@playground:/opt/PyCodeInjection# python PyCodeInjectionShell.py -h Usage: python PyCodeInjectionShell.py -c command -p param -u URL python PyCodeInjectionShell.py -c command -p param -r request.file Options: -h, --help show this help message and exit -c CMD Enter the OS command you want to run at the command line -i Interactivly enter OS commands until finished -u URL Specify the URL. URLs can use * or -p to set injection point -p PARAMETER Specify injection parameter.
Starred by 86 users
Forked by 22 users
Languages Python 96.8% | HTML 2.1% | Shell 1.1%
Amazon S3
0xn3va.gitbook.io › cheat-sheets › web-application › command-injection
Command Injection | Application Security Cheat Sheet - GitBook
It is not possible to supply arguments to the process in the environment variable and the xkcd comic URL is the one hard-coded argument for the command: One way to execute arbitrary commands is to leverage Perl which is commonly installed on systems and is even available in the standard Python docker image.
Glasgowned
glasgowned.github.io › PenTesting › Exploits_and_Code_Execution › command_injection
Command Injection - Pentesting
```python tab="Python2 input()" # input is equivalent to eval(raw_input(prompt)) sys.stdout.write(open("/etc/passwd").readline()) execfile("/PATH/TO/SCRIPT") open('/tmp/passwd', 'w').write(open('/etc/passwd').readline().strip()) eval(compile('import os; os.system("id")', 'foobar.py', 'exec')) eval(compile('import os; os.system("/bin/bash -p")', 'f', 'exec')) # redefine script functions: eval(compile('def youLose():\n print passwd','foobar.py','exec')) # redefine builtin functions: eval(compile('int = __builtins__.__dict__["print"]','foobar.py','exec')) __import__('os').system('/bin/bash -p') __import__('os').execl('/bin/sh','sh') # set PYTHONINSPECT before executing the python script to enter interactive # mode after executing the script or the command declare -x PYTHONINSPECT=’1’ ;
Pequalsnp-team
pequalsnp-team.github.io › cheatsheet › flask-jinja2-ssti
Cheatsheet - Flask & Jinja2 SSTI
September 3, 2018 - This cheatsheet will introduce the basics of SSTI, along with some evasion techniques we gathered along the way from talks, blog posts, hackerone reports and direct experience. As everything in this field, explore the docs of Jinja, Flask & Python and learn them by heart.
GitHub
github.com › topics › code-injection
code-injection · GitHub Topics · GitHub
art android compiler instrumentation artist code-injection dex2oat ... A proper approach to pentest a Web application with the mixture of all useful payloads and complete testing guidance of attacks. Designed as a quick reference cheat sheet for your pentesting and bug bounty engagement.
HackTricks
book.hacktricks.xyz › home › pentesting web › command injection
Command Injection - HackTricks
6 days ago - https://github.com/swisskyrepo/PayloadsAllTheThings/tree/master/Command Injection
GitHub
github.com › OWASP › CheatSheetSeries
GitHub - OWASP/CheatSheetSeries: The OWASP Cheat Sheet Series was created to provide a concise collection of high value information on specific application security topics. · GitHub
Starred by 32.6K users
Forked by 4.5K users
Languages Python 43.8% | Shell 32.1% | HTML 14.0% | Java 6.4% | Makefile 2.6% | Dockerfile 1.1%
GitHub
github.com › topics › html-injection
html-injection · GitHub Topics · GitHub
Javascript helper library to assist in injecting scripts, styles and html from userscripts.
GitHub
github.com › riramar › Web-Attack-Cheat-Sheet
GitHub - riramar/Web-Attack-Cheat-Sheet: Web Attack Cheat Sheet · GitHub
Building on 4ra1n's original AccessLogValve injection technique, this chain adds docBase-based arbitrary file read, WAF/CDN bypass via relaxedQueryChars manipulation, and EL expression injection to evade scriptlet detection - making the full chain work through Cloudflare and enterprise WAFs. Affected: Apache Tomcat 8.5.x through 11.0.x. https://github.com/defparam/smuggler # An HTTP Request Smuggling / Desync testing tool written in Python 3.
Starred by 4.4K users
Forked by 672 users
GitHub
github.com › swisskyrepo › PayloadsAllTheThings › blob › master › Command Injection › README.md
PayloadsAllTheThings/Command Injection/README.md at master · swisskyrepo/PayloadsAllTheThings
Command injection, also known as shell injection, is a type of attack in which the attacker can execute arbitrary commands on the host operating system via a vulnerable application.
Author swisskyrepo
GitHub
github.com › topics › sql-injection
sql-injection · GitHub Topics · GitHub
couchdb redis security-audit mongodb ... · Feb 20, 2026 · Python · Sponsor · Star 3.2k · A cheat sheet that contains advanced queries for SQL Injection of all types....
Semgrep
semgrep.dev › secure coding › python › prevent code injection for python
Prevent Code Injection for Python - Semgrep
1 week ago - Instead of scrutinizing code for ... in this cheat sheet pave a safe road for developers that mitigate the possibility of code injection in your code. By following these recommendations, you can be reasonably sure your code is free of code injection. Learn more about Code Injection vulnerability concepts. ... The exec() function supports the dynamic execution of Python ...
Techbrunch
techbrunch.github.io › patt-mkdocs › Command Injection
Command Injection - Payloads All The Things
Command injection is a security vulnerability that allows an attacker to execute arbitrary commands inside a vulnerable application · Execute the command and voila :p
StackHawk
stackhawk.com › stackhawk, inc. › vulnerabilities and remediation › preventing command injection in python: a guide to security
Preventing Command Injection in Python: A Guide to Security
January 13, 2025 - An overview of command injection in python with examples and best security practices including tips on how to find & fix this vulnerability.