Hacking the vCloud Director browser support warning

June 11, 2013

Table of Contents

I came upon this article where some guy was explaining how to Hacking the vCloud Director to work on other browsers like chrome. So when he ran this:

Invoke-RestMethod “https://vcloud.example.com/cloud/org/jake” | Out-File C:usersjakedesktopvcloudindex.html -encoding UTF8

It dumps the HTML from the URL just like wget in linux, he then started changing out all the relative HTML links to absolutes, like in this example where he show s how he changed the first to demonstrate it:

 css/main.css” type=”text/css” rel=”stylesheet” />

<script type=”text/javascript” src=”support/<span class=”>// <![CDATA[

javascript</span>/jquery/jquery-1.3.2.min.js” type=”text/javascript”>

// ]]></script>

<script type=”text/javascript” src=”support/<span class=”>// <![CDATA[

javascript</span>/upload.js” type=”text/javascript”>

// ]]></script>

<script type=”text/javascript” src=”support/<span class=”>// <![CDATA[

javascript</span>/swfobject.js” type=”text/javascript”>

// ]]></script>

<script type=”text/javascript” src=”support/<span class=”>// <![CDATA[

javascript</span>/swfaddress.js” type=”text/javascript”>

// ]]></script>

 <script src=”support/javascript/associative-array.js” type=”text/javascript”></script>

 <script src=”support/javascript/VMRCConsoleController.js” type=”text/javascript”></script>

 <script src=”support/javascript/remoteaccess.js” type=”text/javascript”></script>

The next vtask was handling cookie errors which chrome does not load from local pages by default, the error is fixed by loading chrome with –enable-file-cookies, but you can just do this by uploading the file to your public dropbox folder and you get the URL for that file, you will be able to access the file over the internet,though the flash will not load, which when curious you will see this line:

{  wmode: “opaque”, allowScriptAccess: “sameDomain” },

The solution was to change “samedomain”  to “always” after that a reload and the flash will work just fine and you can login, the browser error can only be handled by first doing a find for the text error and backtracking to its function:

function onPageLoad() {

 if (isSupportedBrowser()) {

 initializeFlash();

 } else {

 $(“#browserWarning”).show();

 $(“#flashWarning”).hide();

 $(“#cookieWarning”).hide();

 }

 }

To fix this just by removing the logic of the onPageLoad() function to this:

function onPageLoad() {

 initializeFlash();

 }

All will be done and it will work well. Just ensure the URL you are connected to is correct and the ssl cert is for your domain. Bookmarking the link can also be a way to ensure you are not going to the wrong URL. Point to keep is that this does not add VMware remote console support for chrome it just removes the browser warnings,VMRC plugin is currently for firefox and IE only.

Share on
Facebook
Twitter
LinkedIn
Pinterest
More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

PowerCLI in the Cloud

Those who are active with PowerCLI sessions at VMWorld, you may still be having in your mind the mention of a vCloud snapin coming soon. It is going to be

cPanel 2-Factor Auth Bypass

2-Factor Authentication Bypass hole in WHM cPanel security has been Reported effected WHM resellers. cPanel, a software provider to manage web hosting/websites, has recently patched a security vulnerability that allowed

Latency is no longer a concern!!

No matter if your business require low or high bandwidth  network you definitely need a low latency network that will back you up in every angle and every application your

Get 90% Discount

First 3 People gets the Bonus!
Don't Miss Out Our Big Sale

Get 0-90% On All
247Rack Services

247Rack

The Sale Is Until The End Of March