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.

Easy File & Code Manager

Easy File Manager FileZilla Best Server Manager Tools Download FileZilla Client You can use FileZilla to manage websites and servers and edit code in real-time or for simple backup methods

Physical Memory Limits for Windows Releases

Physical Memory Limits: Windows 7 The following table specifies the limits on physical memory for Windows 7. Version Limit on X86 Limit on X64 Windows 7 Ultimate 4 GB 192 GB Windows 7 Enterprise

PowerShell your world cup

PowerShell This is something that is very exciting and if you are interested you should try it. I found the post and tried it. Here is a function and how

Windows Programmes with Linux

How do I run a Windows program on Linux? You probably ran into issues with running a windows application in Linux and now you have ended up here, what you

Dedicated SERVER Special
50% OFF for Life!

🔥 DELL Bare-metal Dedicated Server in New York

🔹  Intel Gold 80 Cores
🔹  23TB SSD Flash +
🔹1TB NVMe (W RAID)
🔹 1TB DDR4 RAM 
🔹 10Gbps Redundant Uplinks 
🔹 10 IPv4 + IPv6 Addresses Included 

💲 Just $699/month – 50% OFF FOR LIFE! (Reg $1399/month)
🚀 Zero Setup Costs | Flexible OS: Ubuntu, Proxmox, ESXi, Windows, etc.

✅ Reserve Risk-Free! 30-Day Money-Back Guarantee
💡 100% Uptime Assurance – Enterprise-Grade Hardware 

🖥 Ideal for Virtualization, Data-Intensive Apps, & High Traffic Sites

Use coupon code at checkout for the discount to apply FBHEO3023EJFB
⚡ Limited Availability – Don’t Miss Out!

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