WordPress exploit: we been hit by hidden spam link injection

May 26th, 2008 mysurface

We been hit by hidden spam link injection (a modified version of goro spam injection), this crack injects spam links through wordpress wp_footer() or wp_head() hook. The spam links only reveal itself if crawled by search engine bot such as googlebot, and they are hidden from our eyes. We believe the cracker’s purpose is to [...]

Posted in curl, curlftpfs, file, find, Misc | Hits: 194498 | 88 Comments »

Discover user guides and manuals within your linux system

May 9th, 2008 mysurface

Do you realized that we can obtain a lots of user manuals and guideline documents from our system? There is a folder /usr/share/doc, you may find some useful docs already preinstalled by your distro. Those docs are in pdf or html format. I manage to find user manuals for valgrind, ipython, systemtap, boost etc. I [...]

Posted in Common, echo, find | Hits: 53266 | 2 Comments »

Simple use of find to search for files in command line

May 2nd, 2008 mysurface

Find is a very strong command to search for files and folders. You can search for files based on certain criteria besides filename, such as file types, atime, belongs to which groups, file modes, etc. Because find command support a lots of options, therefore sometimes find command line looks very complicated, but actually it is [...]

Posted in file, find, Misc | Hits: 52067 | No Comments »

rm complains argument list too long

October 20th, 2007 mysurface

There is a limitation of rm command, where you can’t delete a large groups of files with *. For examples, rm -rf something* If there are large amount of files initiate with something, rm will fails and complains /bin/rm: Argument list too long. The solution is to make use of find, xargs and rm. find [...]

Posted in Common, find, rm, xargs | Hits: 47891 | 5 Comments »

How to list just directories

September 19th, 2007 mysurface

There are no such direct ways to list only directories using the UNIX/ linux famous command ls. Anyway with command combo’s, we can achieve the goal in two ways shown as below. 1. use ls -l with grep 2. use find -type d ( The statement above is WRONG, check out the simple way to [...]

Posted in Bash, column, find, grep, ls, Text Manipulation | Hits: 98142 | 12 Comments »

Remove all .svn directories at once

January 19th, 2007 toydi

When you check out a project code base from a svn repository, each downloaded directory (from top to the deepest) contains a .svn hidden directory that keeps svn’s necessary metadata. If you want to remove them all at once, here’s one way to do it: ~/project_dir $> find -name .svn -print0 | xargs -0 rm [...]

Posted in Common, find, rm, xargs | Hits: 67755 | 8 Comments »

searching files with locate, find and grep

September 18th, 2006 mysurface

I am here to show you 3 ways to search for files in linux. locate is the most easilest way to search for files. To search for a file with filename hello.c locate hello.c You need to update the database in order to search for files completely, like this updatedb For security purpose, sometimes, it [...]

Posted in Common, find, grep, locate, Text Manipulation | Hits: 39725 | 2 Comments »