{"id":129,"date":"2015-11-28T14:07:34","date_gmt":"2015-11-28T13:07:34","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=129"},"modified":"2016-11-27T00:53:46","modified_gmt":"2016-11-26T23:53:46","slug":"how-to-get-rid-of-adobe-flash","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=129","title":{"rendered":"How to get rid of Adobe Flash"},"content":{"rendered":"<h3>How to remove<\/h3>\n<p>It&#8217;s not as easy as it seems. First of all,\u00a0<strong>do not<\/strong> use the official Uninstaller from Adobe. I don&#8217;t know what it does other than showing a reverse progress bar, but it certainly\u00a0<strong>does not<\/strong> remove the Flash-Crap from your computer.<\/p>\n<p>To remove it for good, you have to jump through several hoops:<\/p>\n<ol>\n<li>Close every program using Flash, like IE (if you&#8217;re using this piece of shit) or Firefox. AFAIK Chrome has its own plugin, but it can&#8217;t hurt to close it, too<\/li>\n<li>Open the Explorer and go to\u00a0C:\\Windows\\System32. Select the\u00a0<em>Macromed<\/em>-Folder and take ownership. Then grant yourself full access including all subdirectories.<\/li>\n<li>Delete the Folder<\/li>\n<li>Do the same in\u00a0C:\\Windows\\SysWOW64.<\/li>\n<li>Take ownership of\u00a0C:\\Windows\\SysWOW64\\FlashPlayerApp.exe and C:\\Windows\\SysWOW64\\FlashPlayerCPLApp.cpl, grant yourself full access and delete the files<\/li>\n<li>Go to %appdata% and remove the Macromedia\\Flash directory<\/li>\n<li>Reboot (surprise!)<\/li>\n<li>Check that the Flash-Crap is gone from the control panel<\/li>\n<li>Open\u00a0<a href=\"https:\/\/helpx.adobe.com\/flash-player.html\ufffd\" target=\"_blank\">this link<\/a>\u00a0in Edge or IE to see if Flash is gone for good<\/li>\n<li>If you&#8217;re using Chrome, disable the plugin in about:plugins<\/li>\n<\/ol>\n<h3>What else can I do?<\/h3>\n<p>If you&#8217;re monitoring your Windows-Box with check_mk, you can use these scripts to check for Flash.<\/p>\n<p>Put this into\u00a0C:\\Program Files (x86)\\check_mk\\local\\check_flash.ps1 or wherever your check_mk agent is installed<\/p>\n<pre>$items = \"C:\\Windows\\System32\\Macromed\",`\r\n\"C:\\Windows\\SysWOW64\\Macromed\",`\r\n\"C:\\Windows\\SysWOW64\\FlashPlayerApp.exe\",`\r\n\"C:\\Windows\\SysWOW64\\FlashPlayerCPLApp.cpl\"\r\n\r\necho \"&lt;&lt;&lt;flash_gordon&gt;&gt;&gt;\"\r\n\r\nforeach ($i in $items){\r\n if(Test-Path $i){\r\n  echo (\"{0} 1\" -f $i)\r\n }else{\r\n  echo (\"{0} 0\" -f $i)\r\n }\r\n}<\/pre>\n<p>Now put this script into ~siteuser\/local\/share\/check_mk\/checks\/flash_gordon:<\/p>\n<pre>#!\/usr\/bin\/python \r\n \r\ndef inventory_flash_gordon(info): \r\n \u00a0\u00a0\u00a0inventory = [] \r\n \u00a0\u00a0\u00a0for line in info: \r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0inventory.append((line[0], line[1])) \r\n \r\n \u00a0\u00a0\u00a0return inventory \r\n \r\ndef check_flash_gordon(items, params, info): \r\n \u00a0\u00a0\u00a0retstring = \"Good, no Flash-Crap found!\" \r\n \u00a0\u00a0\u00a0found = [] \r\n \u00a0\u00a0\u00a0retval = 0 \r\n \u00a0\u00a0\u00a0for line in info: \r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if int(line[1]) &gt; 0: \r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0found.append(line[0]) \r\n \r\n \u00a0\u00a0\u00a0if found: \r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0retstring = \"Crap, found %s\" % ', '.join(found) \r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0retval = 2 \r\n \r\n \u00a0\u00a0\u00a0return (retval, retstring) \r\n \r\ncheck_info[\"flash_gordon\"] = { \r\n \u00a0\u00a0\u00a0\"check_function\": \u00a0\u00a0check_flash_gordon, \r\n \u00a0\u00a0\u00a0\"inventory_function\": \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0inventory_flash_gordon, \r\n \u00a0\u00a0\u00a0\"service_description\": \u00a0\u00a0\u00a0\u00a0\u00a0\"Check for Adobe Flash Crap\", \r\n \u00a0\u00a0\u00a0\"has_perfdata\": \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0False, \r\n}<\/pre>\n<p>Reinventorize. Now the host goes CRITICAL if any part of Flash is found.<\/p>\n<h3>[Update 2015-12-09]<\/h3>\n<p>I hate this crap! Windows Update decided that I need a security update for Flash, even though it isn&#8217;t installed any more. What the fuck? Of course the update fails, but in their wisdom they decided to remove the option to hide\u00a0updates from the Windows 10 dialog. Now you have to use\u00a0<a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/3073930\" target=\"_blank\">this program<\/a>\u00a0\ud83d\ude41<\/p>\n<p>Anyway, I only noticed it because of check_mk. At least now I know it works \ud83d\ude42 Let&#8217;s see when this bites my ass&#8230;<\/p>\n<h3>[Update 2015-12-30]<\/h3>\n<p>What a clusterfuck! Another Windows update for flash. Thanks to check_mk I noticed it right away. Shouldn&#8217;t be too difficult to check for this crap <em>before<\/em> installing the update, right?<\/p>\n<h3>[Update 2016-11-10]<\/h3>\n<p>Finally got tired of removing this crap manually again and again! Since you can&#8217;t prevent Windows Update from installing this shit, I wrote a script to put it where it belongs. You need the <a href=\"https:\/\/pscx.codeplex.com\">Powershell Community Extensions (PSCX)<\/a>\u00a0for it to work. Install then, download\u00a0<a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/wp-content\/uploads\/2015\/11\/Remove-FlashCrap.ps1_.txt\">the txt<\/a>, remove the txt-Extension and replace the owner with whatever is appropriate.<\/p>\n<p>Have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to remove It&#8217;s not as easy as it seems. First of all,\u00a0do not use the official Uninstaller from Adobe. I don&#8217;t know what it does other than showing a reverse progress bar, but it certainly\u00a0does not remove the Flash-Crap from your computer. To remove it for good, you have to jump through several hoops: &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=129\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to get rid of Adobe Flash<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,43],"tags":[44,27,87],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-check_mk","category-windows","tag-adobe-flash","tag-check_mk","tag-scripting"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129"}],"version-history":[{"count":6,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions"}],"predecessor-version":[{"id":269,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/129\/revisions\/269"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}