Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

ssh - Linux server, locating files containing nothing but 4 specific lines -


i'm dealing compromised website, in hackers injected htaccess instruction redirect traffic. can locate .htaccess files contain forwarding hack, in cases directory contained htaccess file, appended dangerous instructions, cannot deleted htaccess file or harm site letting formerly pw-protected directories wide open, or urlrewrite instructions (wordpress) deleted, etc. not find way locate files contain 4 lines of redirect hack, shed light ? far, using

find . -type f -exec grep -q targetpiratedomain {} \; -exec echo rm {} \;

thanks !

use 1 of .htaccess files template. issue following command:

find . -type f -name .htaccess -exec cmp -s <template> {} \; -exec rm {} \; 

cmp compare file template file , if returns true, rm executed. might want test first echo or cat instead of rm.

be sure rename or move template file before starting command, else template removed during process.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -