mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-14 05:02:36 +08:00
更新于 07-17 09:28
This commit is contained in:
6
jd.sh
6
jd.sh
@ -389,10 +389,10 @@ SecureJs() {
|
|||||||
file=$1
|
file=$1
|
||||||
|
|
||||||
if [[ -z $(grep -w "该请求url不合法" $file) ]]; then
|
if [[ -z $(grep -w "该请求url不合法" $file) ]]; then
|
||||||
startLine=$(sed -n '/function Env(t,e)/=' $file)
|
startLine=$(sed -n '/function Env(t,e)/=' $file) && echo 1
|
||||||
endLine=$(sed -n 'done(t)}}(t,e)}' $file)
|
endLine=$(sed -n 'done(t)}}(t,e)}' $file) && echo 2
|
||||||
|
|
||||||
sed -i $startLine','$endLine'd' $file
|
sed -i $startLine','$endLine'd' $file && echo 3
|
||||||
cat $file_env_sys >>$file
|
cat $file_env_sys >>$file
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user