Skip to content

Commit d6897f7

Browse files
committed
update: current user env
1 parent f80af3b commit d6897f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.vscode/env.zsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,15 @@ function auto_invoker() {
181181
auto_invoker
182182

183183
function current_status() {
184-
if [[ -z $CURRENT_HOST ]]; then
184+
if [[ -z $CURRENT_RHOST ]]; then
185185
echo "No current host set."
186186
else
187-
echo "Current Host: ${CURRENT_HOST} => ${CURRENT_HOSTNAME} (${CURRENT_IP}) ${DC_HOST} ${DC_IP}"
187+
echo "Current Host: ${TARGET} => ${DOMAIN} (${RHOST}) ${DC_HOST} ${DC_IP}"
188188
fi
189189
if [[ -z $CURRENT_USER ]]; then
190190
echo "No current user set."
191191
else
192-
echo "Current User: ${CURRENT_USER} => ${USER}:${PASS} (${CURRENT_NT_HASH})"
192+
echo "Current User: ${USER} => ${USER}:${PASS} (${NT_HASH})"
193193
fi
194194
}
195195
if [[ ! -z "$SHOW_CURRENT_STATUS" ]]; then

0 commit comments

Comments
 (0)