Showing posts with label OSX. Show all posts
Showing posts with label OSX. Show all posts

Wireshark integration with UNetLab on OSX

Why should those Windows users have all the fun? Wouldn't you like to be able to capture traffic in Wireshark on your Mac? Well, you have come to the right place!

So, the idea is that when you select Capture from the right-click pop-up menu, and select the interface in UNL, then Wireshark should launch.

The problem is that there is no handler for the "capture://" part of the URL. We can edit handlers if they already exist, but it's not easy to create them as and when we want them.

So, we need to create one, and the program to actually run Wireshark.

This can be done through AppleScript, and actually can perform both actions - launching Wireshark, and associating "capture://" with the program.

After a couple of hours digging around I came across a workable solution.

I created a script, and after a bit of testing, it's now turned into a workable solution.
To install it, you can download the app from the link below, just unzip it, and copy the app to your Applications directory.

Here is a video of it in action:


Download link:
https://sites.google.com/site/802101files/books/UNL_Wireshark.app.zip
Check this link for the updated file!

Changing URL handlers in OSX

A little background first, the default (native) OSX VNC program sucks when trying to use it with UNetLab.

Chicken of the VNC, on the other hand, works great. But there is nowhere in Chicken to set it as the default app.

There is a little program that will come to the rescue, and this is RCDefaultApp. It is a little download, and installs an app (Default Apps) in the System Preferences.

OSX System Preferences

From there you have a much more granular control over what gets launched. For example, I can now set Chicken to be the default app for VNC connections:

Default Apps VNC Chicken

Now when I click on a VNC node in UNL, it launches Chicken instead. I still need to click "Connect", but it launches Chicken:

UNetLab VNC Chicken OSX

ASA VNC UNetLab

Much easier!

This does not allow the addition of custom handlers though. So this means that we cant add one for Wireshark. But I have that solved, and once it's tidied up a bit, I'll do a post for it.