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
ccd2241c
Commit
ccd2241c
authored
Nov 03, 2020
by
yzddmr6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支持新增JSP编码器
parent
76047632
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
encoders.js
source/modules/settings/encoders.js
+16
-2
No files found.
source/modules/settings/encoders.js
View file @
ccd2241c
/**
* 中国蚁剑::编码器管理
* 创建:2017-05-30
* 更新:20
18-08-19
* 更新:20
20-11-03
* 作者:Virink <virink@outlook.com>
* 作者:Medici.Yan <Medici.Yan@gmail.com>
* 作者:yzddMr6 <yzddmr6@gmail.com>
*/
const
LANG
=
antSword
[
'language'
][
'settings'
][
'encoders'
];
...
...
@@ -59,6 +60,11 @@ class Encoders {
icon
:
'file-code-o'
,
type
:
'button'
,
text
:
"PHP"
},
{
id
:
'new_jsp'
,
icon
:
'file-code-o'
,
type
:
'button'
,
text
:
"JSP"
},
{
type
:
'separator'
},
{
...
...
@@ -129,6 +135,9 @@ class Encoders {
case
"new_aspx"
:
that
.
createEncoder
(
id
);
break
;
case
"new_jsp"
:
that
.
createEncoder
(
id
);
break
;
case
"new_php"
:
case
"new_php_rsa"
:
that
.
createEncoder
(
id
);
...
...
@@ -177,6 +186,7 @@ class Encoders {
combobox
.
put
(
"asp"
,
"ASP"
);
combobox
.
put
(
"aspx"
,
"ASPX"
);
combobox
.
put
(
"php"
,
"PHP"
);
combobox
.
put
(
"jsp"
,
"JSP"
);
combobox
.
put
(
"custom"
,
"CUSTOM"
);
grid
.
attachEvent
(
"onEditCell"
,
function
(
stage
,
rId
,
cInd
,
nValue
,
oValue
)
{
...
...
@@ -208,7 +218,7 @@ class Encoders {
break
case
2
:
// type
if
(
nValue
!=
"asp"
&&
nValue
!=
"aspx"
&&
nValue
!=
"php"
&&
nValue
!=
"custom"
)
{
if
(
nValue
!=
"asp"
&&
nValue
!=
"aspx"
&&
nValue
!=
"php"
&&
nValue
!=
"
jsp"
&&
nValue
!=
"
custom"
)
{
toastr
.
error
(
LANG
[
'message'
][
"etype_error"
],
LANG_T
[
'error'
]);
return
}
...
...
@@ -747,12 +757,14 @@ module.exports = {
asp
:
[],
aspx
:
[],
php
:
[],
jsp
:
[],
custom
:
[]
};
var
encoders_path
=
{
asp
:
[],
aspx
:
[],
php
:
[],
jsp
:
[],
custom
:
[]
};
let
userencoder_path
=
path
.
join
(
remote
.
process
.
env
.
AS_WORKDIR
,
'antData/encoders'
);
...
...
@@ -794,12 +806,14 @@ module.exports = {
asp
:
[],
aspx
:
[],
php
:
[],
jsp
:
[],
custom
:
[]
};
var
decoders_path
=
{
asp
:
[],
aspx
:
[],
php
:
[],
jsp
:
[],
custom
:
[]
};
let
userdecoder_path
=
path
.
join
(
remote
.
process
.
env
.
AS_WORKDIR
,
'antData/encoders'
);
...
...
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