smartfinn / eve-ng-integration Goto Github PK
View Code? Open in Web Editor NEWintegrates EVE-NG (aka UNetLab) with Linux desktop
Home Page: http://git.io/eve-ng-integration
License: MIT License
integrates EVE-NG (aka UNetLab) with Linux desktop
Home Page: http://git.io/eve-ng-integration
License: MIT License
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?
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
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-python3E: 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.
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
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$
how can i download and install on debian
where is the icon on linux ubuntu?
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.
Please do Linux distribution supported ClearLinux
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.
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).
Is there a way to choose my default terminal application?
Also, how can I get eve-ng to open tabs instead of new terminal windows when I console to a device?
Thanks for your help.
Fernando
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
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'):
...............
@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
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 .
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
➜ ~
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?, так же не пойму как она запускается?
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
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.
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.
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
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
This can be quite useful (one launcher handling all common protocols). Thanks for the great work.
** problem Installing eve-ng-integration (manual process) ubuntu 22 LTS **
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
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>
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:
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 -
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
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.
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.
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??
Здравствуйте, у меня была проблема как в таске #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
Просто хотел поделиться решением проблемы. Спасибо за тулзу.
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
Please help me install the linux client side on centos 6
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]
You provided a bunch of help in a few issues for people using other tilix. Any chance you could do same for putty
Would be nifty to add OSX support (brew/port/etc) to this script
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.
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.
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
Привет!
Можете сделать подобное для Arch Linux?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.