Politics

Adobe Pops Above Google to Flash Apple (and Opera) Users

May 14, 2010 in Business, Politics, Technology

Jesse Stay, brought to my attention earlier, with the screenshot below the code, that Adobe was activating pop-ups through Google Adsense; of course this shouldn’t happen, since Google doesn’t allow such actions, in their ads. I went to check in out for myself, and got nil. I immediately assumed that it was limited to Mac, and went in search of the User-Agent check, and found it after about 5 minutes.

Update: The rest of this article is a bit technical, if you would like a less technical description, you should go read Adobe and Google Sitting in a Tree.

Below is the source of the issue:


document.write('<!-- Template Id = 2,593 Template Name = Banner Creative (Flash) - In Page --><!-- Copyright 2006 DoubleClick Inc., All rights reserved. --><script src=\"http://s0.2mdn.net/879366/flashwrite_1_2.js\"><\/script>');document.write('\n');

function DCFlash(id,pVM){
var swf = "http://s0.2mdn.net/1295336/Adobe_Flash_WeLoveTechStandAlone_300x250_std.swf";
var gif = "http://s0.2mdn.net/1295336/Adobe_Flash_WeLoveTechTandem_300x250_img.gif";
var minV = 8;
var FWH = ' width="300" height="250" ';
var url = escape("http://ad.doubleclick.net/click%3Bh%3Dv8/399a/f/16c/%2a/z%3B224918296%3B0-0%3B0%3B48697163%3B4307-300/250%3B36759992/36777870/1%3B%3B%7Esscs%3D%3fhttp://adclick.g.doubleclick.net/aclk?sa=l&ai=B7rXGceHsS9PODOThlQfNrvjSDe_sysIBAAAAEAEgr86-CjgAWM_pofIUYMnO7Y2ApfgRsgEOdGVjaGNydW5jaC5jb23IAQnaATRodHRwOi8vdGVjaGNydW5jaC5jb20vMjAxMC8wNS8xMy9jaHJvbWUtb3MtcHJvZ3Jlc3MvmAJkwAIC4AIA6gISVGVjaGNydW5jaF8zMDB4MjUw-AL00R6QA-ADmAOsAqgDAeAEAQ&num=0&sig=AGiWqtxB0NIJCJR5KJ5OngVkuvd_Qw20Dw&client=ca-pub-6181816114362650&adurl=http%3a%2f%2fwww.adobe.com/choice%3Fsdid%3DGXRVD");
var wmode = "opaque";
var bg = "same as SWF";
var dcallowscriptaccess = "never";

var openWindow = "false";
var winW = 600;
var winH = 400;
var winL = 0;
var winT = 0;

if(typeof(encodeURIComponent)=="function"){url=encodeURIComponent(unescape(url));}
var fv='"clickTag='+url+'&clickTAG='+url+'&clicktag='+url+'"';
var bgo=(bg=="same as SWF")?"":'<param name="bgcolor" value="#'+bg+'">';
var bge=(bg=="same as SWF")?"":' bgcolor="#'+bg+'"';

function FSWin(){
 if((openWindow=="false")&&(id=="DCF0"))alert('openWindow is wrong.');
 if((openWindow=="center")&&window.screen)
 {winL=Math.floor((screen.availWidth-winW)/2);winT=Math.floor((screen.availHeight-winH)/2);}
 window.open(unescape(url),id,"width="+winW+",height="+winH+",top="+winT+",left="+winL+",status=no,toolbar=no,menubar=no,location=no");}this.FSWin = FSWin;

ua=navigator.userAgent;
if(minV<=pVM&&(openWindow=="false"||(ua.indexOf("Mac")<0&&ua.indexOf("Opera")<0))){
 var adcode='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="'+id+'"'+FWH+'>'+
 '<param name="movie" value="'+swf+'"><param name="flashvars" value='+fv+'><param name="quality" value="high"><param name="wmode" value="'+wmode+'"><param name="base" value="'+swf.substring(0,swf.lastIndexOf("/"))+'"><PARAM NAME="AllowScriptAccess" VALUE="'+dcallowscriptaccess+'">'+bgo+
 '<embed src="'+swf+'" flashvars='+fv+bge+FWH+' type="application/x-shockwave-flash" quality="high" swliveconnect="true" wmode="'+wmode+'" name="'+id+'" base="'+swf.substring(0,swf.lastIndexOf("/"))+'" AllowScriptAccess="'+dcallowscriptaccess+'"></embed></object>';
 if(('j'!="j")&&(typeof dclkFlashWrite!="undefined")){dclkFlashWrite(adcode);}else{document.write(adcode);}
}else{
 document.write('<a target="_blank" href="'+unescape(url)+'"><img src="'+gif+'"'+FWH+'border="0" alt="" galleryimg="no"></a>');
}}

var pVM=0;
var DCid=(isNaN("224918296"))?"DCF0":"DCF224918296";
if(navigator.plugins && navigator.mimeTypes.length){
 var x=navigator.plugins["Shockwave Flash"];if(x && x.description){var pVF=x.description;var y=pVF.indexOf("Flash ")+6;pVM=pVF.substring(y,pVF.indexOf(".",y));}}
else if (window.ActiveXObject && window.execScript){
 window.execScript('on error resume next\npVM=2\ndo\npVM=pVM+1\nset swControl = CreateObject("ShockwaveFlash.ShockwaveFlash."&pVM)\nloop while Err = 0\nOn Error Resume Next\npVM=pVM-1\nSub '+DCid+'_FSCommand(ByVal command, ByVal args)\nCall '+DCid+'_DoFSCommand(command, args)\nEnd Sub\n',"VBScript");}
eval("function "+DCid+"_DoFSCommand(c,a){if(c=='openWindow')o"+DCid+".FSWin();}o"+DCid+"=new DCFlash('"+DCid+"',pVM);");
//-->

document.write('\n<noscript><a target=\"_blank\" href=\"http://ad.doubleclick.net/click%3Bh%3Dv8/399a/f/16c/%2a/z%3B224918296%3B0-0%3B0%3B48697163%3B4307-300/250%3B36759992/36777870/1%3B%3B%7Esscs%3D%3fhttp://adclick.g.doubleclick.net/aclk?sa=l&ai=B7rXGceHsS9PODOThlQfNrvjSDe_sysIBAAAAEAEgr86-CjgAWM_pofIUYMnO7Y2ApfgRsgEOdGVjaGNydW5jaC5jb23IAQnaATRodHRwOi8vdGVjaGNydW5jaC5jb20vMjAxMC8wNS8xMy9jaHJvbWUtb3MtcHJvZ3Jlc3MvmAJkwAIC4AIA6gISVGVjaGNydW5jaF8zMDB4MjUw-AL00R6QA-ADmAOsAqgDAeAEAQ&num=0&sig=AGiWqtxB0NIJCJR5KJ5OngVkuvd_Qw20Dw&client=ca-pub-6181816114362650&adurl=http%3a%2f%2fwww.adobe.com/choice%3Fsdid%3DGXRVD\"><img src=\"http://s0.2mdn.net/1295336/Adobe_Flash_WeLoveTechTandem_300x250_img.gif\" width=\"300\" height=\"250\" border=\"0\" alt=\"\" galleryimg=\"no\"></a></noscript>\n');
</script>

<script src="http://s0.2mdn.net/879366/flashwrite_1_2.js">
function dclkToObject(id) {
 if(document.layers){
 return (document.layers[id])?eval(document.layers[id]):null;
 }
 else if(document.all && !document.getElementById){
 return (eval("window."+id))?eval("window."+id):null;
 }
 else if(document.getElementById && document.body.style) {
 return (document.getElementById(id))?eval(document.getElementById(id)):null;
 }
 }

function dclkFlashWrite(string){
 document.write(string);
}

function dclkFlashInnerHTML(htmlElementId,code){
 var x=dclkToObject(htmlElementId);
 if(x){
 if(document.getElementById||document.all){
 x.innerHTML='';
 x.innerHTML=code;
 }
 else if(document.layers){
 x.document.open();
 x.document.write(code);
 x.document.close();
 }
 }
}
</script>
Adobe Ad

Adobe pops up on a Mac

The interesting thing I spotted quite quickly is that it is also going after Opera, don’t ask me why, that’s pretty obscure. I immediately tested it out, just to see, and ended up getting the pop-up.

After looking at the code for about a half hour, I still don’t know what everything is, and exactly how it’s getting past Google, I also don’t know how ad’s are created, because I’ve never bothered to look at it.  So I’m not sure, if this is something anyone could execute, or if Google is allowing it. So it’s possible that there is a vulnerability in Adsense.

What I can tell after looking at the code, is that they are targeting Apple, and Opera, users, as well as using javascript to activate flash, in the background.

First they are setting the DCid as either DCF0 or DCF224198296, this should always validate as false and the will set DCid as DCF224198296. Then, it goes on to check if the browser uses plugins and has at least any values, if it results in true it attempts to setup ShockwaveFlash and perform a version check on it, setting the variable pVM to the version number. If that statement failed, it assumes you are using IE and initializes using ActiveX.

I don’t understand exactly what is going on in the eval, so I can’t say much about it, besides it calls DCFlash with the DCid(“DCF224198296″) and the pVM(“Flash Version”).

I apologize if the rest of this is rushed for now, I’m getting a bit tired.

The DCFlash function then initializes an assortment of variables, before setting up the FSWin function.
FSWin checks to see if the window is already open or the DCid was set in error to DCF0, it then checks to see if the window is centered and gather your screen size for offsets on the window border. Following FSWin is the window initialization, which disables all navigation, in that window.

Next,  is the User-Agent analysis, which first check to make sure that your current Flash version is at minimum Vers. 8, it then checks to see if you are using either a Mac or Opera, if you aren’t the value is less than 0, returning true, this then compares in with window==”false”, which is true, in an or statement, which will return false, if both are set. If this test of the browser conditions fail, either using an old version of Flash, or using a Mac, or Opera it will default to just the default hyperlinked gif. Otherwise, it sets up Flash to be displayed in the window pain.

During the course, of writing this the test ad I was using has disappeared, but I’ll see if I can gather any more of the code. One thing I found odd, is that the ad was stored within an iFrame, which I couldn’t find with any of Google’s other Adsense ads, I managed to find a representation of using an iFrame, after I woke up.

(Social Media) Experts vs. Masters

January 10, 2010 in Politics, Socialization

I’m sick of all these damn “Social Media Experts”, but at least they have their name right. They are “experts” and I’m fine with that even if there are thousands of them. Maybe they should be a little bit more humble about their position, and we wouldn’t dislike the terminology as much.

You don’t have to know everything about a category to be an expert. You just need to be more experienced and knowledgeable than the person who is looking for an expert. If they don’t really know what they are looking for, besides maybe a few buzzwords. You can be an expert to those people, because they know considerably less than you.

To be an expert though, you have to know who you’re talking too, and if they actually know more than yourself. Never call yourself an expert in front of someone who knows more than yourself, unless you’re an amazing bluffer. Of course, even a bluffer will be found out a fool if he continues to talk about the topic, and the person discovers this. The best thing to do, is not self-label yourself an expert, unless you’re truly or near being a master.

A master knows the ins and outs of the system in which he works. The master’s knowledge of the system allows him to do things that regular people and even the majority of experts wouldn’t be able to understand it. The master is efficient with his work, he has the answers or knows exactly where they can be found rapidly. The master is at the top of his art along with very few.

If you seek a master for help, quality is guaranteed, but an actual response is not. A master will teach you everything, but he will always hold one kernel of knowledge back. The master is not fooled by experts, even if he trained them; he knows that they might try to take his claim. The master uses his withheld knowledge as a way to maintain the upper hand.

The truth is I’m just sick of “Social Media Experts”, self-labeling themselves, but I’m also sick of people bitching about it. The reason the people are bitching however, is because they are just as or more capable of discussing social media, than the people that are self-labeled. Some of these people, may even be very close to being a Social Media Master, but they choose to be named by their peers and not by themselves. Of course, the “Social Media Experts” are experts, we just aren’t their audience, so stop bitching.

Some Inspiration From The Web Oct. 20 – Nov.7

November 11, 2008 in Link Dump, Philosophy, Politics

Several articles that are all quite connected in that they are pushing the basic concepts to fight fear and become an idea generator. These articles all can help you be more innovative, insightful, better business person, or just a better person, apply the knowledge where you can in your life.

Last week, The Next Web published an article entitled The Era of Entrepreneur!, in which they discuss 5 defining elements of an entrepreneur. These 5 elements don’t just apply to an entrepreneur but, anyone wishing to change something. The discussion won’t help too much if you’re not interested in business so, I provided the list below.

  1. Be Independent
  2. Think Different
  3. Be Prepared
  4. Be Patient
  5. Ignore Everyone

Over at theBridgeMaker, they have written 7 Must -Have Personal Growth Strategies. This article has a more focused thought into Thinking Different and Being Independent in order to grow as a person.

The NYT has an article on Pursuing Big Ideas that has 10 items that will help anyone seeking to get the creative juices flowing. These different approaches will provide you with plenty of ways to think differently or “not think at all “.

Spiritual Blog provides 2 articles, the first is 10 Paths to Individualism. The article analyzes 10 Socratic quotations into finding ones Individuality.  The second is a set of 10 Insightful quotes from Plato, no analysis.

That is all of the inspiration and now I’d like to take a moment to point out another element of economic stupidity, in the secondary-education’s foundation. The NYT has posted a story that states the Downturn is driving tuition UP. The fact that multiple stories have been written on the subject of tight lenders even to students means that the majority of this money will be coming from the government. I’ve already done several articles, College is Taxing Our System and Education pt 2. on the shear absurdity that is government subsidization in this sector

The 50 Who Now Stand Under the 44th As 1

November 5, 2008 in Philosophy, Politics, Spirituality

As everyone should know by now we have a president-elect that will be inaugurated January 20, 2009:

Barack Obama

Over the last year, we have seen such a division between the parties. We have faced the trials of separation on many levels, belief, color, sex, and age. This was a plague that swept our land and it was going to be hard to repair.

Tuesday Night, November 4 2008

We had two men stand up and destroy these divisions with their speeches, McCain, with his Concession Speech, and Barack Obama, with his Acceptance Speech. It does not matter any longer who you wanted to win, because with these speeches they have UNITED us as the American people. We are now 50 states standing under Barack Obama, as the 44th President of the United States, as one UNITED country.

Barack Obama’s  Acceptance Speech

Acceptance Speech Part 1, Part 2

McCain’s Concession Speech

Concession Speech

One phrase is ringing with a deafing roar in my head, right now.

“I am proud to be an American!”

As I was editing this I came across from52to48withlove, an Idea from Ze Frank.

Get Out And Vote! 3 Choices Pirate, Zombie, Ninja

October 30, 2008 in Politics

So the elections are now less than a week a way and I’m still confused so I have decided to make a chart with possible candidates. Now I just have to decide which I’d rather have leading the country. Also this will be my last post until after the election. I’m trying not to offend anyone as I opine about who I want. Don’t worry I have plenty of stuff in the wings it just needs editing to be done. Enjoy!

Powered by WordPress.org - WordPress Theme deZine by ThemeShift.com