Skip to content

Commit

Permalink
(Fix:Core/CMDLINUX) 修正 filemanager hex to string payload 转义字符数量问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Medicean committed Jun 29, 2021
1 parent 3f96ab8 commit 71fce91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/core/cmdlinux/template/filemanager.js
Expand Up @@ -20,7 +20,7 @@ module.exports = (arg1, arg2, arg3) => ({
elif command_exists python3; then
echo -n $ACONTENT|python3 -c "import sys, binascii; sys.stdout.buffer.write(binascii.unhexlify(input().strip()))">$ADSTPATH && echo -n 1||echo -n 0;
else
echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>$ADSTPATH && echo -n 1||echo -n 0;
echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>$ADSTPATH && echo -n 1||echo -n 0;
fi;`.replace(/\n\s+/g, '')
},

Expand All @@ -45,7 +45,7 @@ module.exports = (arg1, arg2, arg3) => ({
elif command_exists python3; then
echo -n $ACONTENT|python3 -c "import sys, binascii; sys.stdout.buffer.write(binascii.unhexlify(input().strip()))">>$ADSTPATH && echo -n 1||echo -n 0;
else
echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>>$ADSTPATH && echo -n 1||echo -n 0;
echo -n $ACONTENT|sed 's/\\([0-9A-F]\\{2\\}\\)/\\\\\\\\\\\\x\\1/gI'|xargs printf>>$ADSTPATH && echo -n 1||echo -n 0;
fi;`.replace(/\n\s+/g, '')
},

Expand Down

0 comments on commit 71fce91

Please sign in to comment.