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

SecureCRT integration doesn't work #32

Closed
horseinthesky opened this issue Apr 21, 2019 · 2 comments
Closed

SecureCRT integration doesn't work #32

horseinthesky opened this issue Apr 21, 2019 · 2 comments

Comments

@horseinthesky
Copy link

horseinthesky commented Apr 21, 2019

Hello.
I'm trying to change /usr/bin/eve-ng-integration script to be able to open new telnet sessions in SecureCRT tabs.

The correct shell command for this looks like this:

SecureCRT /T /telnet <host> <port>

So I've changed line 35 of the script to this:

       elif self._is_command('x-terminal-emulator'):
            return ['SecureCRT', '/T', '/telnet']

and line 90 to this:

        cmd = '{host} {port}'.format(**data)

So data for Popen on line 59 looks like this [' SecureCRT', '/T', '/telnet', '192.168.0.11 32769']

But it doesn't work though. It opens a new tab in SecureCRT with the name 192.168.0.11 32769 and Connection refused message.
But if I run it in the shell it works perfectly fine:

SecureCRT /T /telnet 192.168.0.11 32760

it opens new SecureCRT tab with R1 router from the lab.

Could you help me with this?

@SmartFinn
Copy link
Owner

Duplicate of #19

@SmartFinn SmartFinn marked this as a duplicate of #19 Apr 23, 2019
@fabriciomedina
Copy link

@horseinthesky thanks...! You give the missing tips for work:

you should edit "eve-ng-integration" script, in my case it is located in
/usr/bin/eve-ng-integration

elif self._is_command('x-terminal-emulator'):
return ['SecureCRT', '/T', '/telnet']

cmd = '{host}:{port}'.format(**data)

The : is necesary to work.

Thanks to you and all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants