|
8 | 8 |
|
9 | 9 | > like `vscode setting.json tasks.json` and metasploit workspace rcfile `workspace_metasploit.rc` |
10 | 10 |
|
| 11 | +3. Check [LaunchOrder.md](./LaunchOrder.md) for the launch order of zsh files and it will explain how they works. |
| 12 | + |
11 | 13 | ### How to customize it? |
12 | 14 |
|
13 | 15 | #### in disk temporary |
|
55 | 57 | > `tasks.json` defines commands which will run just once. |
56 | 58 | > |
57 | 59 | > current task is msfvenom payload fast generate task. |
| 60 | + > |
| 61 | + > `extension.json` defines the extension you'd better to install in vscode. |
| 62 | + > |
| 63 | + > it extends vscode with other strong features like code analysis, code completion, etc. |
58 | 64 |
|
59 | | -- `env.zsh` for environments variables you want to set. it should be sourced at first line in `source_*.zsh` and `source.zsh`. (recommended to source it in every .zsh file under .vscode folder) |
| 65 | +- `env.zsh` for environments variables you want to set. it should be sourced `source*.zsh`. (recommended to source it in every .zsh file under .vscode folder) |
60 | 66 |
|
61 | 67 | > e.g. `export RHOST=11.45.1.4` |
62 | 68 | > |
|
67 | 73 | > e.g. `cd $PROJECT_FOLDER` switch the pwd back to the project |
68 | 74 | > |
69 | 75 |
|
70 | | -- `source_*.zsh` files for you to source your own scripts |
| 76 | +- `source.zsh` file will control the zsh shell behavior in vscode terminal with mode |
71 | 77 |
|
72 | | - > e.g. `source_web-delivery.zsh` will be used when you use `web-delivery` mode in your new vscode terminal. |
| 78 | + > e.g. `source.zsh` will be used when you set env varoiable `WEB_DELIVERY_MODE` in your new vscode terminal. |
73 | 79 | > |
74 | | - > and you can put your own script in it |
| 80 | + > you will launched a new zsh shell and execute the WEB_DELIVERY_MODE command in the block |
75 | 81 |
|
76 | | - |
77 | | - > `zsh-shell` will create a new zsh shell with sourcing `source.zsh` file |
78 | | - > |
79 | 82 | > `meterpreter-handler` will launch up a new msfconsole with the metasploit rcfile |
80 | 83 | > this terminal will called with msfconsole command in `source source_metasploit.zsh` file |
81 | 84 | > |
|
84 | 87 | > `web-delivery` will cd into the $PROJECT_WEB_DELIVERY folder and start a python http server for you to delivery web files. It based on `source source_web-delivery.zsh` file. |
85 | 88 | > > you can use pdteam's simplehttpserver to replace it. |
86 | 89 | > |
87 | | - > `kali-orbstack` will launch orbstack virtual machine - kalilinx, source `source _kali-orbstack.zsh` and process env variables in `env.zsh` file inside env. |
88 | | - > |
| 90 | +
|
| 91 | +- `kali-orbstack` file will launch orbstack virtual machine - kalilinx, source `source_kali-orbstack.zsh` and process env variables in `env.zsh` file inside env. it will also control the zsh behavior but in kali vm. |
| 92 | + |
89 | 93 | > > you can easily inject environment variables into the kali vm with this mode. and reuse command outside. |
90 | 94 | > > |
91 | 95 | > > like `evil-winrm -i $RHOST -u $RUSER -p $RPASS` will work in kali vm and host machine. and you just need set the env variables in `env.zsh` file once. |
92 | 96 |
|
93 | | - |
94 | 97 | - metasploit rcfile `metasploit_handler.rc` for you to use in vscode terminal (meterpreter-handler mode) |
95 | 98 |
|
96 | 99 | > it launched as `msfconsole -r this.rc` |
|
0 commit comments