|
All pages on one of our websites got infected by some browser exploit. Linux hosting!! I spent few minutes to write a micro antivirus, because the backup copy of the site was not at hand. The infection is a solid block of text after normal page contents so the task is easy: detect it via signature then truncate the file. #include <stdlib.h> #include <string.h> #include <unistd.h> void Check( const char *fn ) int main( int argc, char *argv[] )
Want to see more my posts about the subject? Just click a category:
Сетевая жизнь, Linux, Программирование, Programming, Linux.
Archives
|





