Skip to content

Instantly share code, notes, and snippets.

@sebdraven
Last active May 9, 2019 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebdraven/5190656 to your computer and use it in GitHub Desktop.
Save sebdraven/5190656 to your computer and use it in GitHub Desktop.
Code exploitant une vulnérabilité d'Internet Explorer
(function(){try{var c=null,g=this,i=function(a){for(var a=a.split("."),b=g,d;d=a.shift();)if(b[d]!=c)b=b[d];else return c;return b},j=function(a,b,d){return a.call.apply(a.bind,arguments)},k=function(a,b,d){if(!a)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return a.apply(b,d)}}return function(){return a.apply(b,arguments)}},o=function(a,b,d){o=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?
j:k;return o.apply(c,arguments)};window.gbar.tev&&window.gbar.tev(3,"gc");var p=window.gbar;var q={a:1,h:2,g:3,c:4,b:5,e:6,d:7,f:8};var r=[],s=c,u=function(a,b){var d=c;b&&(d={m:b});p.tev&&p.tev(a,"gc",d)},v=function(){u(q.c);var a,b;for(a=0;(b=p.bnc[a])&&!("gc"==b[0]);++a);b&&!b[1].l&&(a=function(){for(var a=p.mdc,e=p.mdi||{},h=0,l;l=r[h];++h){var m=l[0],w=a[m],n=e[m],f;if(f=w){if(n=!n){var t;a:{n=m;if(f=p.mdd)try{if(!s){s={};var x=f.split(/;/);for(f=0;f<x.length;++f)s[x[f]]=!0}t=s[n];break a}catch(B){p.logger&&p.logger.ml(B)}t=!1}n=!t}f=n}if(f){u(q.e,m);try{l[1].init(w),e[m]=!0}catch(C){p.logger&&p.logger.ml(C)}u(q.d,m)}}if(a=
p.qd.gc){p.qd.gc=[];for(e=0;h=a[e];++e)try{h()}catch(D){p.logger&&p.logger.ml(D)}}b[1].l=!0;u(q.b);a:{for(a=0;e=p.bnc[a];++a)if((e[1].auto||"m"==e[0])&&!e[1].l){a=!1;break a}a=!0}a&&u(q.a)},!b[1].libs||p.agl&&p.agl(b[1].libs)?a():b[1].i=a)},y=function(){for(var a=[],b=0,d;d=r[b];++b)a.push(d[0]);return a.join(",")},z=["gbar","mddn"],A=g;!(z[0]in A)&&A.execScript&&A.execScript("var "+z[0]);for(var E;z.length&&(E=z.shift());)!z.length&&void 0!==y?A[E]=y:A=A[E]?A[E]:A[E]={};r.push(["gc",{init:function(a){var b=i("gbar.logger.il");window.gadgets.config.update({"googleapis.config":{gcv:a.version,sessionIndex:a.index,elog:function(a,b){var h=i("gbar.logger.ml");if(h){var l=b||{};l._sn="gc";h(a,l)}},ilog:b&&o(b,c,16)}});window.gapi.config.update({gwidget:{lang:a.lang}})}}]);u(q.f);window.gbar&&window.gbar.bnc&&v();}catch(e){window.gbar&&gbar.logger&&gbar.logger.ml(e,{"_sn":"gc.init","_mddn":(gbar.mddn?gbar.mddn():"0")});}})();
@ZaleeeR
Copy link

ZaleeeR commented May 9, 2019


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment