Registry editor and batch files equivalent in OSX?

Hi all,


I need your help, this is my 2nd Mac Book pro and I am very happy with it!


Unfortunately I need to run a program much like esxi that can run multiple host system inside of it. I need to use wireshark and secure crt to open up those host machines from my mac.


the program is a linux program that is run via vmware fusion. and I need to be able to open up the devices using the following tools or programs.

Ultra VNC ( to remotely access the windows host inside the esxi/gns3/virl like program

Secure CRT (a telnet or ssh tool to access the host inside the esxi/gsn3/virl like program

Wireshark ( a sniffer tool that can monitor traffic between the host machines inside the esxi/gns3/virl like program.


Below is the sample scripts, I would like to know if there are experts in OSX or scripting that could guide me on what files to edit in my OSX maverick laptop.

[CODE]

@echo OFF

SET USERNAME="root"

SET PASSWORD="unl"


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"

[/CODE]

[CODE]

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\vnc\shell]


[HKEY_CLASSES_ROOT\vnc\shell\open]


[HKEY_CLASSES_ROOT\vnc\shell\open\command]

@="\"C:\\Program Files\\UNetLab\\ultravnc_wrapper.bat\" %1"

[/CODE]

[CODE]

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


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


@echo OFF

SET S=%1

SET S=###%S%###

SET S=%S:"###=%

SET S=%S:###"=%

SET S=%S:###=%

SET S=%S:vnc://=%

start "VNCViewer" "C:\Program Files\uvnc bvba\UltraVNC\vncviewer.exe" -connect %S% -shared

[/CODE]

[CODE]

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\telnet]

@="URL:Telnet Protocol"

"URL Protocol"=""


[HKEY_CLASSES_ROOT\telnet\shell]


[HKEY_CLASSES_ROOT\telnet\shell\open]


[HKEY_CLASSES_ROOT\telnet\shell\open\command]

@="\"C:\\Program Files\\VanDyke Software\\SecureCRT\\SecureCRT.exe\" %1 /T"


[HKEY_CLASSES_ROOT\ssh]

@="URL:SSH Protocol"

"URL Protocol"=""


[HKEY_CLASSES_ROOT\ssh\shell]


[HKEY_CLASSES_ROOT\ssh\shell\open]


[HKEY_CLASSES_ROOT\ssh\shell\open\command]

@="\"C:\\Program Files\\VanDyke Software\\SecureCRT\\SecureCRT.exe\" %1 /T"[/CODE][/QUOTE]

MacBook Pro, Mac OS X (10.7.4)

Posted on Sep 2, 2015 5:57 AM

Reply
6 replies

Sep 2, 2015 6:23 AM in response to bluephoenix71

As KiltedTim states there is no registry for OS X, only Windows uses a registry. The nearest equivalent for OS X are either various .conf files typically for Unix derived programmes, and various .plist files for OS X programs.


Again as KiltedTim states OS X is the Mac operating system and is on an underlying BSD style Unix system. You can for many things treat OS X and Linux as being very similar in how to configure at least the Unix style side of things.


Now getting back to VNC, WireShark, and SecureCRT. There are many different native Mac VNC applications available, there is even a partial one built-in to OS X. However more standard VNC implementations include RealVNC but there are many others as well. See https://www.realvnc.com/products/vnc/documentation/5.0/installing-removing/macos x


Note: As I said OS X even has a partial VNC program built-in. This can connect to other VNC 'servers' and it is also possible to turn on the ability for OS X to accept connections from other standard VNC clients. (This is not enabled as standard.) You need to go to System Preferences -> Sharing and enable Screen Sharing. You also need to click on Computer Settings and enable 'VNC viewers may control screen with password:'.


WireShark also exists for the Mac see https://www.wireshark.org/download.html this however needs X11 also installing which you can get here http://xquartz.macosforge.org/landing/


For SecureCRT then I don't think you need anything extra as the built-in Terminal.app does this and via Terminal.app and the also built-in tools of OS X you can also do SSH as well as telnet connections to other systems. If you want to do the reverse i.e. allow another system to SSH connect to a Mac then this requires turning on 'Remote Login' in System Preferences -> Sharing.


If your issue is allowing one virtual machine to talk to another, then this might be something either you need to configure in VMware Fusion - which you say you are using, or more likely a matter of configuring the firewalls in the various VMs.


Finally you can also use Microsoft Remote Desktop client (for Mac) to allow a Mac to remotely control a Windows computer even one running in a VM assuming you have set things up to enable this.

Sep 2, 2015 6:27 AM in response to bluephoenix71

Unfortunately I need to run a program much like esxi that can run multiple host system inside of it. I need to use wireshark and secure crt to open up those host machines from my mac.

On the Mac that is VMware Fusion, Parallels, or VirtualBox. Since you already mention VMware Fusion, you already have what you need, unless I am confusing esxi (I'm thinking it is a VMware hypervisor for intel based servers).

I am not going to try to untangle your .bat file. I can only say that you have a wealth of scripting languages you can use on OS X:


  • Applescript (we do not think the same, and it is difficult for me to grok)
  • Unix shell scripting (I'm most partial to this myself)
  • Perl (I've a few of these, but they do flow from my fingers like shell scripting does)
  • Python (never touched it)
  • Ruby (never touched it.)
  • awk (my first love, and I still use it from time to time)
  • Automator (I almost forgot; this Apple utility can be very useful for some tasks)


Ultra VNC ( to remotely access the windows host inside the esxi/gns3/virl like program

Microsoft provides "Microsoft Remote Desktop" for Mac via the Apple App Store. I use it all the time.

<https://itunes.apple.com/us/app/microsoft-remote-desktop/id715768417?mt=12>

CoRD is an other RDC capable client for connecting to Windows remote desktops (I've used it before Microsoft up'ed their game)

<http://cord.sourceforge.net>

There is the built-in OS X Screen Sharing (a VNC client). Finder -> Go -> Connect to server -> vnc://address.of.vnc.server:5900 (adjust the 5900 to be the correct VNC port the server is using).

Chicken is a very good VNC client

<http://sourceforge.net/projects/chicken/>


Secure CRT (a telnet or ssh tool to access the host inside the esxi/gsn3/virl like program

ssh does exists on OS X from an Applications -> Utilities -> Terminal session. I live in ssh sessions to Linux, Solaris, AIX and other Macs.

Telnet from a Terminal session also exists, but it is 'Not' secure. ssh, scp, and sftp are much better tools.

Wireshark ( a sniffer tool that can monitor traffic between the host machines inside the esxi/gns3/virl like program.

Wireshark does exist for OS X

<https://www.wireshark.org/download.html>

ALso see:

<http://jacobsalmela.com/os-x-yosemite-secret-packet-sniffer/>

<http://osxdaily.com/2015/04/23/sniff-packet-capture-packet-trace-mac-os-x-wirele ss-diagnostics/>

<Capture a packet trace using Terminal in OS X - Apple Support>

Sep 2, 2015 7:00 AM in response to BobHarris

Thanks, I just want someone who is in expert level of OSX scripting to convert the files from windows.... I am not an expert and I would just like for the GNS3 or UNL application program to run with ssh, and VNC.


I can run screen sharing or remote desktop on the host PC and accessing remote PC's on it's subnet. What I am saying is to acces the windows vm instance in the UNL program...


Anybody have some ideas?

Sep 2, 2015 7:24 AM in response to bluephoenix71

Here is a drawing on what should happen...Take note that all the devices have no IP addresses and it can be accessed via ssh that points to securecrt. I am asking to be able to open a windows OS vm instance inside the UNL program using VNC or screen sharing. I believe that there is some tweaking needs to be done on the OSX level or a script equivalent to registry editor or batch files. Can I attach the files I am talking about here? Can someone point me on how to?


User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Registry editor and batch files equivalent in OSX?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.