{"id":709,"date":"2016-07-14T12:15:43","date_gmt":"2016-07-14T11:15:43","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=709"},"modified":"2016-07-14T12:15:43","modified_gmt":"2016-07-14T11:15:43","slug":"709","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/07\/14\/709\/","title":{"rendered":""},"content":{"rendered":"<h2> Analyse the process ID&#8217;s and check their legitimacy<\/h2>\n<pre> for pid in $(ps aux | grep -v '\\[' | grep -v grep | awk '{print $2}' | grep -v PID); do SERVICE=$(ps aux | grep -v grep | grep \" $pid \" | awk '{print $11}' | egrep -v 'nimbus|delloma' | tr -d '-' | tr -d ':'); [ \"X$SERVICE\" != \"X\" ] && ls -lh \/proc\/$pid | grep ' exe ' | tr -d '-' | grep -v $SERVICE >\/dev\/null 2>&1 && echo \"$pid should be $SERVICE but it is actually $(ls -lh \/proc\/$pid | grep ' exe ' | awk '{print $11}')\"; done\r\n<\/pre>\n<h2> Check the netstat detail <\/h2>\n<pre>\r\nnetstat -np | awk '{print $7}' | awk -F\/ '{count[$2]++}END{for(j in count) print count[j],j}' | sort -nr\r\n<\/pre>\n<h2> Full process list and commands <\/h2>\n<pre>\r\nps auxfwww\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Analyse the process ID&#8217;s and check their legitimacy for pid in $(ps aux | grep -v &#8216;\\[&#8216; | grep -v grep | awk &#8216;{print $2}&#8217; | grep -v PID); do SERVICE=$(ps aux | grep -v grep | grep &#8221; $pid &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/07\/14\/709\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,7,3],"tags":[],"class_list":["post-709","post","type-post","status-publish","format-standard","hentry","category-bash","category-management-tools","category-security"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=709"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":710,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/709\/revisions\/710"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}