Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码出错 #3

Open
52dwl opened this issue Feb 15, 2022 · 2 comments
Open

代码出错 #3

52dwl opened this issue Feb 15, 2022 · 2 comments

Comments

@52dwl
Copy link

52dwl commented Feb 15, 2022

index.js:151
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? type:"custom",
写反啦,这样写是输出custom的,要反过来:
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? "custom":type,

另外,现版本一键需要额外参数,下面给出额外参数:index.js:145-160
grid.getAllRowIds().split(",").map((id) => {
let type = grid.cells(id, 3).getValue();
let data = {
base:{
'url': grid.cells(id, 4).getValue(),
'category': grid.cells(id, 1).getValue(),
'pwd': grid.cells(id, 2).getValue(),
'type': (type != "php" && type != "asp" && type != "aspx" && type != "custom") ? "custom":type,
'note': grid.cells(id, 0).getValue(),
"encoder":"default",
"decoder":"default"
},
"http": {},
"other": {},
}
let ret = antSword.ipcRenderer.sendSync('shell-add', data);

@qq7141775
Copy link

我昨天也发现了同样的问题 看了半天 你这里全给解决了 不知道额外增加的参数能不能解决导入后双击shell不能打开到目录的问题 我先试试

@qq7141775
Copy link

不行 我试了 他的这个插件还有一个问题没有完善 加上了你的代码也没有用 问题是:导入的webshell双击打开不了目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants