{"id":113,"date":"2007-08-07T00:58:17","date_gmt":"2007-08-07T05:58:17","guid":{"rendered":"http:\/\/raffy.ch\/blog\/2007\/08\/07\/turning-off-mdsnresponder\/"},"modified":"2007-08-07T01:01:10","modified_gmt":"2007-08-07T06:01:10","slug":"turning-off-mdsnresponder","status":"publish","type":"post","link":"https:\/\/raffy.ch\/blog\/2007\/08\/07\/turning-off-mdsnresponder\/","title":{"rendered":"Turning off mDSNResponder"},"content":{"rendered":"<p>I thought I&#8217;d already disabled mDNSResponder when I did some basic hardening of my Laptop. Turns out that when Marty (no, I am not refereing to myself in the third person) asked me whether I disabled it and I checked again, it was really not. Maybe I just killed the process, but here is how to really disable that service:<\/p>\n<p>Launch the following command<\/p>\n<p><code>sudo launchctl unload \/System\/Library\/LaunchDaemons\/com.apple.mDNSResponder.plist<br \/>\n<\/code><br \/>\nThe next step is turning off the mDNSResponder at startup. And where do you do that? As I am not really confident getting online here at BlackHat, I decided to just look around on the hard drive and what I found was that you could probably just change an entry in the <strong>\/System\/Library\/LaunchDaemons\/com.apple.mDNSResponder.plist<\/strong> file:<br \/>\n<code><\/code><\/p>\n<p><code>&lt;key&gt;OnDemand&lt;\/key&gt;<br \/>\n&lt;false&gt;&lt;\/false&gt;<br \/>\n<\/code><br \/>\nReplace false with true. Do you notice something? Someone really knew XML. Darn it. Two elements. One being the key, the other one being the value. Ever heard of attributes in XML? To whoever built this, this is how I would write the entry:<br \/>\n<code><\/code><br \/>\nOr even better, re-architect the entire XML file to actually make sense!<\/p>\n<p>I just now found the real way to actually disable the service by using the -w flag on the launchctl command from above. That will turn the process off permanently. A good reference is here.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I thought I&#8217;d already disabled mDNSResponder when I did some basic hardening of my Laptop. Turns out that when Marty (no, I am not refereing to myself in the third person) asked me whether I disabled it and I checked again, it was really not. Maybe I just killed the process, but here is how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,7],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-unix-security"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":0,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"wp:attachment":[{"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raffy.ch\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}