(self, edit, shell)
| 487 | # Reserve shell tool |
| 488 | class ReverseShellToolsCommand(sublime_plugin.TextCommand): |
| 489 | def run(self, edit, shell): |
| 490 | ip_port = get_buffer_text(self.view) |
| 491 | if shell == 'bash': |
| 492 | text = reverse_shell_tools('bash',ip_port) |
| 493 | if shell == 'sh': |
| 494 | text = reverse_shell_tools('sh',ip_port) |
| 495 | if shell == 'other': |
| 496 | text = reverse_shell_tools('other',ip_port) |
| 497 | |
| 498 | if len(text) > 0: |
| 499 | new_view(self.view, edit, text, 'Bash.sublime-syntax') |
| 500 | |
| 501 | |
| 502 | # Input text |
nothing calls this directly
no test coverage detected