> For the complete documentation index, see [llms.txt](https://oklencodes.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oklencodes.gitbook.io/untitled/offensive-security/insekube/creating-a-reverse-shell.md).

# Creating a Reverse shell

I Have to establish a reverse shell with target machine in order to complete further tasks. There is no netcat or python available on machine for me to use. I have to use Command injection attack

Using reverse shell generator to create a connection with the Kubernetes service pod and my intended IP.

![](https://2022164620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtzurpgroDJSMn9AFVmQP%2Fuploads%2FO2q5V1POM5NigHJ7VuMT%2FReverse%20shell%20generator.PNG?alt=media\&token=57f7c259-879a-4da2-8014-ba5346cc5b5a)

The connection was successful and I was able to establish a reverse shell.&#x20;

![](https://2022164620-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtzurpgroDJSMn9AFVmQP%2Fuploads%2FAezWjVm4i4ekX7ymn0kq%2FEstablished%20netcat%20connection.PNG?alt=media\&token=da2efa65-2081-4736-9801-0b62e6da6d15)
