Skip to content

Commit dee852c

Browse files
committed
update: more convience for using projected environment variable in tasks
1 parent bb8fbf2 commit dee852c

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.vscode/env.zsh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,16 @@ export HASH_SHA512=1800
104104
export HASH_BCRYPT=3200
105105
export HASH_NETNTLMv2=5600
106106
export HASH_SHA256CRYPT=7400
107-
export HASH_KRB5_PREAUTH=7500
107+
export HASH_KRB5_PA_23=7500
108+
export HASH_KRB5_PA_17=19800
109+
export HASH_KRB5_PA_18=19900
108110
export HASH_DJANGO_PBKDF2_SHA256=10000
109111
export HASH_PBKDF2_HMAC_SHA256=10900
110-
export HASH_KRB5_TGS=13100
112+
export HASH_KRB5_TGS_23=13100
113+
export HASH_KRB5_TGS_17=19600
114+
export HASH_KRB5_TGS_18=19700
111115
export HASH_JWT=16500
116+
export HASH_KRB5_AS_REP_23=18200
112117

113118

114119
# utils functions

.vscode/tasks.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
{
22
"version": "2.0.0",
3+
"options": {
4+
"env": {
5+
"PROJECT_FOLDER": "${workspaceFolder}",
6+
}
7+
},
38
"tasks": [
49
{
510
"label": "msfvenom payload creating",
611
"type": "shell",
712
"detail": "msfvenom payload creating task",
813
"problemMatcher": [],
914
"command": [
15+
"source ${workspaceFolder}/.vscode/.zshrc;", // source shell config
1016
"msfvenom",
1117
"-p",
1218
"${input:msfvenom-payload}",
@@ -49,6 +55,10 @@
4955
"type": "shell",
5056
"detail": "edit /etc/hosts task",
5157
"command": [
58+
"source ${workspaceFolder}/.vscode/.zshrc;",
59+
"echo '================ ADDING THIS LINE IN FILE ========';",
60+
"echo ${RHOST} ${DOMAIN};",
61+
"echo '================================================';",
5262
"sudo",
5363
"vim",
5464
"/etc/hosts"
@@ -150,8 +160,8 @@
150160
{
151161
"id": "msfvenom-lhost",
152162
"type": "promptString",
153-
"description": "Enter the LHOST",
154-
"default": "10.10.",
163+
"description": "Enter the LHOST, default will read the env.zsh configurated variable $LHOST",
164+
"default": "$LHOST",
155165
},
156166
{
157167
"id": "msfvenom-lport",

0 commit comments

Comments
 (0)