GithubHelp home page GithubHelp logo

smartfinn / eve-ng-integration Goto Github PK

View Code? Open in Web Editor NEW
311.0 311.0 114.0 1.16 MB

integrates EVE-NG (aka UNetLab) with Linux desktop

Home Page: http://git.io/eve-ng-integration

License: MIT License

Makefile 19.39% Python 40.01% Shell 40.60%
eve-ng linux telnet unetlab url-handler

eve-ng-integration's People

Contributors

altoing avatar cybertinus avatar jmdilly avatar majidroodi avatar smartfinn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eve-ng-integration's Issues

SecureCRT integration doesn't work

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?

Making SecureCRT the default

Thank you for maintaining and developing this repo. Would you please guide me through on how to use SecureCRT (installed on linux) to be the default terminal that open when you click on device instead of default one?

Thanks

Ubuntu 22.04

I tried to install the eve-ng-integration on Ubuntu 22.04 but I get a few errors. The repo doesn't seem to be available and when cloning from git I get the following:

brad@gengar:~/git/eve-ng-integration$ sudo make install
mkdir -p "/usr/bin"
install -m 755 bin/eve-ng-integration /usr/bin/
install -m 755 bin/eni-rdp-wrapper /usr/bin/
mkdir -p "/usr/share/applications"
install -m 644 data/eve-ng-integration.desktop /usr/share/applications/
install -m 644 data/eni-rdp-wrapper.desktop /usr/share/applications/
mkdir -p "/usr/share/mime/packages"
install -m 644 data/eni-rdp-wrapper.xml /usr/share/mime/packages/
make post-install
make[1]: Entering directory '/home/brad/git/eve-ng-integration'

build cache database of MIME types handled by desktop files

update-desktop-database -q || true

build the Shared MIME-Info database cache

update-mime-database -n /usr/share/mime || true

When I try instead to just install using the install.sh file (like I've done previously) I get an error about Python

brad@gengar:~/git/eve-ng-integration$ sh install.sh
=> Detected distribution: ubuntu 22.04 (debian)
=> Install dependencies...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
python2-minimal:i386 python2:i386 python2-minimal python2 dh-python 2to3 python-is-python3

E: Package 'python' has no installation candidate

I've even created a global alias of python=python2.7 in case it just needs to find python to execute a script but it's still no good.

Unable to find a shell with Terminator

I'm running Terminator 1.91 and running in to the issue using both Firefox & Chrome. When starting a session on EVE-NG it just opens a Terminator screen showing Unable to find a shell

Please let me know if any additional information/logging should be provided

running issues on MAC

i am getting following issue while running it on MAC. could you please help?
RAJPPATH-M-V331:~ rajppath$ ls -l eve-ng-integration/
total 2480
-rw-r--r-- 1 rajppath staff 1082 Jul 13 18:48 LICENSE
-rw-r--r-- 1 rajppath staff 1656 Jul 13 18:48 Makefile
-rw-r--r-- 1 rajppath staff 3886 Jul 13 18:48 README.md
-rwxr-xr-x@ 1 rajppath staff 7680 Jul 14 12:12 Thumbs.db
drwxr-xr-x 5 rajppath staff 170 Jul 13 18:48 debian
-rw-r--r-- 1 rajppath staff 1236260 Jul 13 18:48 demo.gif
-rw-r--r-- 1 rajppath staff 3280 Jul 13 18:48 eve-ng-integration
-rw-r--r-- 1 rajppath staff 267 Jul 13 18:48 eve-ng-integration.desktop
-rw-r--r-- 1 rajppath staff 2946 Jul 13 18:48 install.sh
RAJPPATH-M-V331:~ rajppath$
RAJPPATH-M-V331:~ rajppath$
RAJPPATH-M-V331:~ rajppath$ cd eve-ng-integration/eve-ng-integration-master
-bash: cd: eve-ng-integration/eve-ng-integration-master: No such file or directory
RAJPPATH-M-V331:~ rajppath$
RAJPPATH-M-V331:~ rajppath$ sudo make install post-install
Password:
make: *** No rule to make target `install'. Stop.
RAJPPATH-M-V331:~ rajppath$

debian

how can i download and install on debian

no icon

where is the icon on linux ubuntu?

telnet session does not open

HI !
I'am using ubuntu 14.04.
Installing unetlab-x-integration_0.2.0_all.deb.
Click to R1 my unetlab, starts gnome-terminal, but telnet the session is not established.
I see clean window gnome-terminal.
VNC worked.

Packet capture not working on Fedora 27

Hello,
Packet capture with Wireshark is not working on Fedora 27.
Every time I click on "capture" Wireshark is loading fine but I only see a blank screen without any packet captures.

Add other terminal emulators to instructions?

You provided a bunch of help in a few issues for people using other terminal emulators like tilix. Any chance you could add those to the instructions on the main page so they're easy to find? I had to dig a little for them when trying to make Tilix work (which is does and I thank you for the instructions).

missing RDP handler

Hi latest version of EVE also support RDP...
Hope your project will handle this protocol as well....

Many thanks for your pack.. ( In the name of all Eve Users )

Alain

Terminator new window / new tab behaviour

I like opening new tabs for each of my Telnet sessions instead of starting a new window for each device connection.

To accomplish this i've modified the code slightly with 2 changes:

First off i check if the Terminator process is already running. If this is the case, start a new instance for this terminal session.
If there is a Terminator window then open a new tab on this window.

This behavior keeps my environment tidy and clean instead of having 7 different windows. Of course, we all have our preference but i would like to share my code on how I've modified this behavior. I can create a pull request as well but would like to know from the Dev's if this is beneficial to implement as the default for Terminator sessions.

All the next steps are edits in the eve-ng-integration file.

First off after all the imports, import the process_iter function.

from psutil import process_iter

Next up, modify the _terminal_emulator_cmd() function as so:

   def _terminal_emulator_cmd(self):
        if self.override_terminal:
            return self.override_terminal.split()
        elif self._is_command('x-terminal-emulator'):
            # go through a list of all processes
            for proc in process_iter():
                # If there's a match with the process name with Terminator
                if("terminator" in proc.name()):
                    # Start this terminal session with a new tab
                    return ['x-terminal-emulator', '--new-tab', '-e']
            else:
                # Start this terminal session with a new window
                return ['x-terminal-emulator', '-e']
        elif self._current_desktop('cinnamon', 'gnome', 'unity'):
           ...............

Don't work as expected with lxterminal

@k0ste wrote:

Hello.
One arg with 'command' not work with lxterminal, open lxtermianal without telnet session.

Not work:

['lxterminal', '-e', 'telnet 192.168.0.214 32769']

Work as expected:

['lxterminal', '-e', 'telnet', '192.168.0.214', '32769']
[k0ste@WorkStation ~]$ lxterminal --version
lxterminal 0.3.0
[k0ste@WorkStation ~]$ 

Moved from #10

gentoo deps

USE="qt5" emerge -avgk net-analyzer/wireshark net-misc/x11-ssh-askpass net-misc/inetutils net-misc/vinagre

(ask verbose , get binary use binary if available force builtwith qt enabled. ie USE="USE-feature -not-use-feature" )

app-arch/deb2targz, then unpack the tarball can just unpack (rootfs) ./

an ebuild coulld consume the deb or package the install much the same. 9999-ebuild , git clone/install latest dev version.

can do latter . an ebuild .

Capture with Wireshark stopped working after upgrade to Fedora 26

Hello,
Capture with wireshark is no longer working after upgrade to Fedora 26. Nothing happens when I select capture interface.

Wireshark is installed on the system and is working fine outside of EVE.

➜  ~ dnf list installed | grep -i wireshark
wireshark.x86_64                       2.2.7-1.fc26                @fedora      
wireshark-cli.x86_64                   2.2.7-1.fc26                @fedora      
wireshark-gtk.x86_64                   2.2.7-1.fc26                @fedora      
wireshark-qt.x86_64                    2.2.7-1.fc26                @fedora      
➜  ~ 

SSH/Telnet multitab

Thanks for the greate work, can you kindly implement telnet/ssh multitab instead of opening new window if you access new devices, if already addressed, on linux, how can i accomplish it.
Thanks in-advance.

помогите

можно ли установить eve-ng на дебиан систему?
хочу установить на физическую машину, все сделал как описано в eve-ng.net bare install, так же сделал по ваше описанию.
делаю ребут загружается ос без изменений, не могу понять как запустить, можете объяснить?
а есть веб версия eve-ng?, так же не пойму как она запускается?

Installation - working usage instructions from the point when it is installed missing

Hi.
First of all, thank you for this.

Yet, I can t get it to work. I don t know from where to get it to work. I ve installed everything. But how to make this work?
Usage instructions would be really helpful for nobs like me.

I hope you are well regarding the Russian/Ukrainian language as people there do not deserve the war.
Kind regards

Issues with wireshark-qt on Fedora 26

Made a symbolic link to point /usr/bin/Wireshark to /usr/bin/Wireshark-qt. So Wireshark launches when you start a capture, but I'm not seeing any data. Just an empty capture.

improvement suggestion

In the topic of known issues, in issue 1 Error Couldn't run /usr/bin/dumpcap in child process: Permission denied when starting Wireshark it would be interesting to add the command sudo chmod +x /usr/bin/dumpcap as a possible alternative to the problem. Because in my colleagues' test environment, the solutions didn't work for them, but this one did. It would help more people.

Click on a node does not open

Hello,

When I click on a node then choose Eve-NG Integration from the Launch application window does not open the shell either with Firefox or Google chrome.

I am using Linux Red Hat 8.3.

Thanks in advance

Capture handler not working

Running ubuntu and debian distros the capture handler didn't work for those distros.

When capture option is selected wireshark does open but does not ask for password and either capture packets flowing the link

I'm disposal to help troubleshoot with guidance

add ssh protocol support

This can be quite useful (one launcher handling all common protocols). Thanks for the great work.

Unable to install eve-ng-integration in Ubuntu 22 LTS show dependence error

** problem Installing eve-ng-integration (manual process) ubuntu 22 LTS **

  1. I was try to install eve-ng-integration both PPA & thru script but failed

github

  1. tried manual process
  • 1.download and extract the tarball
  • 2.Run make install as root
  • 3.Install dependencies (python 2.7)
    -after run the install.sh flle it show like this
xyz369@s-subuntu:~/App/eve-ng-integration-master$ python2 --version
Python 2.7.18
xyz369@s-subuntu:~/App/eve-ng-integration-master$ sudo ./install.sh 
=> Detected distribution: ubuntu 22.04 (debian)
=> Install dependencies...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python2-minimal:i386 python2:i386 python2-minimal python2 dh-python 2to3 python-is-python3
E: Package 'python' has no installation candidate

Plz let me know the how to slove this

telnet does not connect to host:port in pantheon-terminal

issue with: /usr/bin/eve-ng-integration

testing on command line show that command without single quotes only start telnet it does not initiate the connection to {host} {port} as intended.

pantheon-terminal -e telnet eveng.it-ninja.xyz 32897
telnet>

pantheon-terminal -e 'telnet eveng.it-ninja.xyz 32897'
Trying 172.22.1.59...
Connected to eveng.it-ninja.xyz.
Escape character is '^]'.

Router>

Wireshark capture to a remote server using port forwarding

Hi,

I am trying to setup the wireshark_wrapper for remote capture on my eve-ng server. My Server is behind a private network so I am using port forward to access it.
When I try to capture I get the following error:

image

I have tried to add the port by editing the wireshar_wrapper file but not succesfull.
Please let me know if there;s something to be modified here:
SET S=%1
SET S=%S:capture://=%
FOR /f "tokens=1,2 delims=/ " %%a IN ("%S%") DO SET HOST=%%a&SET INT=%%b
IF "%INT%" == "pnet0" SET FILTER=" not port 22"

ECHO "Connecting to %USERNAME%@%HOST%..."

"C:\Program Files\EVE-NG\plink.exe" -ssh -batch -pw %PASSWORD% %USERNAME%@%HOST% "tcpdump -U -i %INT% -s 0 -w - -%FILTER%" | "C:\Program Files\Wireshark\Wireshark.exe" -k -i -

Sorry but Not working on Manjaro...hope you can help me out!

Hi,

I already install eve-ng-integration v4.1 and now v5.0 released 2 day ago but no success :(
During installation i did not face any issues during the script.

Operating System: Manjaro Linux
Kernel: Linux 4.9.68-1-MANJARO
Architecture: x86-64

When i click on host to open the console, nothing comes up :(

I hope you can help me out .

Thanks in advance.
DJ

Doesn't work on Ubuntu 16.04, firefox 56

Installed eve-ng-integration 0.4.1-0 on Ubuntu 16.04.3 LTS with Firefox 56.
When accessing a running node I got this: "Firefox doesn’t know how to open this address, because one of the following protocols (telnet) isn’t associated with any program or is not allowed in this context."
Couldn't find telnet, capture or docker in Preferences → Applications.
Tried logout/login and reboot.
Chrome on the same machine is working fine.

UNetLab-X-Integration open telnet sessions in one terminal window

Hello,
first of all, thank you for your UNetLab-X-Integration!
By your installation guide and "Known issues" (3-4), it's work for Google Chrome on my Debian GNU/Linux 8 (3.16.0-4-amd64). But, one question. Is it possible to open all telnet sessions in one x-terminal? Not in many x-terminals.

access the app

installed the software on the ubuntu 22.04 desktop, now how can I access the app? I can not see any app and I cannot HTTP to any URL,, or port?? localhost??

Connecting problem

Здравствуйте, у меня была проблема как в таске #1 .
Решил её при помощи команды (из Вашего последнего поста):

xdg-mime default unetlab-x-integration.desktop x-scheme-handler/telnet

После этого произошло открытие через терминал.

Версия ОС:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

Просто хотел поделиться решением проблемы. Спасибо за тулзу.

Integration with urxvt

Hi,

I'm using urxvt as default terminal with zsh but your script didn't initialy work with my architecture.
To make it works I had to modify the python script line 49:

return ['urxvt', '-hold', '-e', 'zsh', '-c']

It creates a new terminal embedding a holding shell (was initialy closed immediately) session.
Then '-c' runs the command in it (only '-e' doesn't work).

Hope this will help for an update,
Regards,

iAdson

OS: Arch Linux x86_64
Shell: zsh 5.5.1
WM: i3
Terminal: urxvt

MAC eve-NG can not use wireshark

hi friend

i use MAC computer , want to use wireshark. folllow your document:
https://github.com/SmartFinn/eve-ng-integration#manual-install

MAC not support this command:
wget -qO- https://raw.githubusercontent.com/SmartFinn/eve-ng-integration/master/install.sh | sh

so i must manaul install. but follow manaul process , will display error:
cd eve-ng-integration/eve-ng-integration-master
sudo make install

after issue "sudo make install" display below error:
HAOZHAN3-M-Q4RP:eve-ng-integration-master root# sudo make install
mkdir -p "/usr/bin"
install -m 755 bin/eve-ng-integration /usr/bin/
install: /usr/bin//eve-ng-integration: Operation not permitted
make: *** [install] Error 71

please help check the issue , thanks.

my email: [email protected]

Making putty the default

You provided a bunch of help in a few issues for people using other tilix. Any chance you could do same for putty

OSX Support

Would be nifty to add OSX support (brew/port/etc) to this script

Error opening capture

Hi,
I'm running eve-ng (the latest version on Ubuntu 18.04.5 LTS server. A browser is firefox. When I click on node interface capture I get this:

eve-ng error

Choosing between wireshark QT vs GTK

Hi!

First of all thank you for fixing the installer for the fedora, it works like a charm!

Now i only have a request that when the script run it use wireshark QT, but in my case i use GTK because it looks better that the QT version. ( i'm totally a newbie with linux)

So i want to know if there is a way to choose which wireshark version i want to run?
Thank you.

improvement suggestion on readme

In the topic of known issues, in issue 1 Error Couldn't run /usr/bin/dumpcap in child process: Permission denied when starting Wireshark it would be interesting to add the command "sudo chmod +x /usr/bin/dumpcap" as a possible alternative to the problem.
Because in my colleagues' test environment, the solutions didn't work for them, but this one did. It would help more people.

No package x11-openssh-askpass available.

Hello

I've been looking for unetlab intergration on linux for awhile and this look great

I'm using Korora 25, and when run the scrip i have this problem

[11:34 rainy ~/Downloads]$ wget -qO- https://raw.githubusercontent.com/SmartFinn/unetlab-x-integration/master/install.sh | sh
=> Detected distribution: korora 25 (fedora)
=> Install dependencies...
Last metadata expiration check: 2:15:27 ago on Tue Dec 13 09:19:29 2016.
Package telnet-1:0.17-65.fc24.x86_64 is already installed, skipping.
Package wireshark-qt-2.2.2-2.fc25.x86_64 is already installed, skipping.
No package x11-openssh-askpass available.
Error: Unable to find a match.

Could you help me with this? thank you

Trying to install under OS X 11.6

ssh-askpass are available to OS X on https://github.com/theseal/ssh-askpass
but for vinagre,, it seems like a remote desktop program. I am still trying if its possible to replaced by other applications (from system's or 3rd parties VNC program).

And plus is there any intension for developing a client application under OS X environment?
Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.