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

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

Open
qianzyGit opened this issue Nov 9, 2019 · 1 comment
Open

Comments

@qianzyGit
Copy link

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

@langyayue
Copy link

适配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)); }

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