sqlmap4burp-plus-plus icon indicating copy to clipboard operation
sqlmap4burp-plus-plus copied to clipboard

mac上能否支持默认调用iterm2,而不是默认terminal

Open qianzyGit opened this issue 6 years ago • 1 comments

因为配置了iterm2,所以默认terminal显示有点问题,能否增加一个输入iterm2路径的地方来手工填入

qianzyGit avatar Nov 09 '19 01:11 qianzyGit

适配iterm2的代码,可以将默认terminal替换为iterm2 else if(osType == Util.OS_MAC){ String optionCommand = Config.getSqlmapOptionsCommand(); //将参数数中的"转译为\" // optionCommand = optionCommand.replace("\"","\\\""); command = String.format("%s %s -r %s %s",Config.getPythonName(),Config.getSqlmapPath(),Config.getRequstFilePath(),optionCommand); cmds.add("osascript"); cmds.add("-e"); String cmd = "tell application \"iTerm2\" \n" + " create window with default profile\n" + " tell current session of current window\n" + " write text \"%s\"\n" + " end tell\n" + "end tell"; cmds.add(String.format(cmd,command)); BurpExtender.stdout.println(String.format(cmd,command)); }

langyayue avatar May 05 '23 11:05 langyayue