virink / as_plugin_import_shell_from_csv

A powerful AntSword plugin to import shells from CSV
MIT License
5 stars 4 forks source link

代码出错 #3

Open ainiwxyh opened 2 years ago

ainiwxyh commented 2 years ago

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 commented 1 year ago

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

qq7141775 commented 1 year ago

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