Command Injection
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F3018635170-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FCtGnfY5n0YCGcWtBkgwe%252Fuploads%252Fgit-blob-78abb7891633b1e8147b4e743e4f00af375d3cd6%252Fimage%2520%2848%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=ec3d7753&sv=1)
Use Trickest to easily build and automate workflows powered by the world's most advanced community tools. Get Access Today:
What is command Injection?
A command injection inaruhusu utekelezaji wa amri za mfumo wa uendeshaji zisizo na mipaka na mshambuliaji kwenye seva inayohifadhi programu. Kama matokeo, programu na data zake zote zinaweza kuathiriwa kabisa. Utekelezaji wa amri hizi kawaida unamruhusu mshambuliaji kupata ufikiaji usioidhinishwa au kudhibiti mazingira ya programu na mfumo wa msingi.
Context
Kulingana na mahali ambapo ingizo lako linatolewa unaweza kuhitaji kukomesha muktadha ulioandikwa (ukitumia "
au '
) kabla ya amri.
Command Injection/Execution
Kikomo Bypasses
Ikiwa unajaribu kutekeleza amri zisizo na mpangilio ndani ya mashine ya linux utavutiwa kusoma kuhusu hii Bypasses:
Bypass Linux RestrictionsMifano
Parameters
Hapa kuna vigezo 25 bora ambavyo vinaweza kuwa na udhaifu wa kuingiza msimbo na udhaifu wa RCE unaofanana (kutoka link):
Time based data exfiltration
Kuchota data: herufi kwa herufi
DNS based data exfiltration
Kulingana na chombo kutoka https://github.com/HoLyVieR/dnsbin
pia kinachohifadhiwa kwenye dnsbin.zhack.ca
Vifaa vya mtandaoni kuangalia uhamishaji wa data unaotegemea DNS:
dnsbin.zhack.ca
pingb.in
Kupita kwa filtering
Windows
Linux
Bypass Linux RestrictionsOrodha ya Kugundua Brute-Force
Marejeleo
Jifunze na fanya mazoezi ya AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Jifunze na fanya mazoezi ya GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F3018635170-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FCtGnfY5n0YCGcWtBkgwe%252Fuploads%252Fgit-blob-78abb7891633b1e8147b4e743e4f00af375d3cd6%252Fimage%2520%2848%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=ec3d7753&sv=1)
Tumia Trickest kujenga na kujiendesha kiotomatiki kwa urahisi kwa kutumia zana za jamii zilizoendelea zaidi duniani. Pata Ufikiaji Leo:
Last updated