Archivo por meses: agosto 2013

Unpatched Mac bug gives attackers “super user” status by going back in time

Researchers have made it easier to exploit a five-month-old security flaw that allows penetration testers and less-ethical hackers to gain nearly unfettered «root» access to Macs over which they already have limited control. The authentication bypass vulnerability was reported in March and resides in a Unix component known as sudo. While the program is designed… Leer más: Unpatched Mac bug gives attackers “super user” status by going… »

Bash String Comparison: Find Out IF a Variable Contains a Substring

http://www.cyberciti.biz/faq/bash-find-out-if-variable-contains-substring/   How do I determine whether a variable called spath=»/srv/www/cyberciti.biz/https» contains a substring called «cyberciti.biz»? You can use the portable BourneShell syntax as follows: case «$var» in *pattern1* ) echo «do something #1»;; *pattern2* ) echo «do something # 2»;; * ) echo «Error…»;; esac Here is a sample code: #!/bin/bash spath=»/srv/www/cyberciti.biz/https» sync_root(){ echo… Leer más: Bash String Comparison: Find Out IF a Variable Contains a… »