mac上能否支持默认调用iterm2,而不是默认terminal
因为配置了iterm2,所以默认terminal显示有点问题,能否增加一个输入iterm2路径的地方来手工填入
适配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)); }