{"id":17,"date":"2006-07-06T14:25:36","date_gmt":"2006-07-06T14:25:36","guid":{"rendered":"http:\/\/ramblingsofasysadmin.com\/blog\/?p=17"},"modified":"2006-07-06T14:25:36","modified_gmt":"2006-07-06T14:25:36","slug":"checking-for-exploits-on-a-server-my-first-bash-script","status":"publish","type":"post","link":"http:\/\/ramblingsofasysadmin.com\/?p=17","title":{"rendered":"checking for exploits on a server: my first bash script."},"content":{"rendered":"<p>well, this script was inspired by another script, but i&#8217;ve modified this to send email results and do a few other things, so i&#8217;m quite proud of the accomplishment.<br \/>\nthe script (exploitcheck.sh) appears below.  you can copy and paste this code snippet to a file with an .sh extension.<br \/>\n<a href=\"files\/exploitcheck.sh.txt\" target=\"_new\">click here for the code<\/a>.<br \/>\nthis is a good shell script for use with linux environments where apache or the www user stores a lot of files in the typical directories (e.g. <font face=\"courier\">\/tmp, \/dev\/shm<\/font>, etc.  it checks to see if anything abnormal is there and sends you the results when executed.<br \/>\ni&#8217;ve put this in my \/etc\/cron.daily to make sure that it runs on a regular basis.<br \/>\nmake sure to change the variables and <font face=\"courier\">chmod 755 exploitcheck.sh<\/font> when you store it on your server.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>well, this script was inspired by another script, but i&#8217;ve modified this to send email results and do a few other things, so i&#8217;m quite proud of the accomplishment. the script (exploitcheck.sh) appears below. you can copy and paste this code snippet to a file with an .sh extension. click here for the code. this is a good shell script for use with linux environments where apache or the www user stores a lot of <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"http:\/\/ramblingsofasysadmin.com\/?p=17\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-security"],"_links":{"self":[{"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":0,"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ramblingsofasysadmin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}