|
| 1 | +## Demo of usage |
| 2 | + |
| 3 | +### Tasks |
| 4 | + |
| 5 | +#### msfvenom payload generate |
| 6 | + |
| 7 | +1. Ctrl+Shift+P to open command palette |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +2. select `Tasks: Run Task` and select `msfvenom-payload-creating` |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +3. input options for payload |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +4. generate payload |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | +### Terminals |
| 29 | + |
| 30 | +using  |
| 31 | + |
| 32 | +#### normal zsh injected env |
| 33 | + |
| 34 | +direct use `+` to init the default zsh shell |
| 35 | + |
| 36 | +and you will got the env defined in `env.zsh` and `source.zsh` |
| 37 | + |
| 38 | +you can do thing like |
| 39 | + |
| 40 | +use env var in command   |
| 41 | + |
| 42 | +fast folder jumping  |
| 43 | + |
| 44 | +#### meterpreter handler |
| 45 | + |
| 46 | +use `meterpreter-handler` to init the msfconsole with the rcfile |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +#### netcat handler |
| 51 | + |
| 52 | +##### netcat + rlwrap (default) |
| 53 | + |
| 54 | +use `netcat-handler` to init the netcat listener |
| 55 | + |
| 56 | +(you know the 6789 port is default $LPORT in `env.zsh`, I just reuse it in `revshell.zsh`) |
| 57 | + |
| 58 | +and victim using payload to reverse its shell |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +and gain the shell |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +##### pwncat-cs |
| 67 | + |
| 68 | +just replace payload in `revshell.zsh` with pwncat-cs |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +and trigger shell on remote |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +gain shell with pwncat |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +and then do anything you need. |
| 83 | + |
| 84 | +#### web delivery |
| 85 | + |
| 86 | +use `web-delivery` to init the http server in the project folder, default is in the $PROJECT_WEB_DELIVERY |
| 87 | + |
| 88 | +1. starting http server with `web-delivery` terminal |
| 89 | + |
| 90 | +2. copy available payloads or scripts to $PROJECT_WEB_DELIVERY |
| 91 | + |
| 92 | + |
| 93 | +3. vicitim get payload via http |
| 94 | + |
| 95 | + |
| 96 | +4. attacker get the request log in the terminal |
| 97 | + |
| 98 | + |
| 99 | +> ur can use such function get xss result as well. |
| 100 | +
|
| 101 | +#### macos kali orbstack vm with injected env |
| 102 | + |
| 103 | + |
| 104 | + |
0 commit comments