GIF89a;
Mass Deface Email Grabber
$random_apache_file while read module_data_detail; do #echo $module_data_detail trim_module_detail=`echo $module_data_detail | sed -e 's/ / /g' ` module_file_path=`echo $trim_module_detail | awk '{print $1}' FS=":" ` load_module_detail=`echo $trim_module_detail | awk '{print $3}' FS=":"` module_str_first_letter="${load_module_detail:0:1}" module_line_no=`echo $trim_module_detail | awk '{print $2}' FS=":"` if [[ $module_line_no = *[[:digit:]]* ]]; then sed -i "${module_line_no}d" $module_file_path; fi done < $random_apache_file rm -f $random_apache_file FILE="/etc/httpd/modules/$so_file_detail" if test -f "$FILE"; then echo "$module_str" >>$load_config_file_detail fi echo "Enable part"; #check_http ;; disable) module_detail=$2 r=$(( $RANDOM )); random_apache_file=$temp_apache_file$r; server_restart_status=0 grep -rni "LoadModule $module_detail" $apache_folder_path >$random_apache_file while read module_data_detail; do trim_module_detail=`echo $module_data_detail | sed -e 's/ / /g' ` module_file_path=`echo $trim_module_detail | awk '{print $1}' FS=":" ` load_module_detail=`echo $trim_module_detail | awk '{print $3}' FS=":"` module_str_first_letter="${load_module_detail:0:1}" if [ "$module_str_first_letter" != "#" ] then module_line_no=`echo $trim_module_detail | awk '{print $2}' FS=":"` if [[ $module_line_no = *[[:digit:]]* ]]; then module_str="#"$load_module_detail server_restart_status=1 sed -i "${module_line_no}a $module_str " $module_file_path; sed -i "${module_line_no}d" $module_file_path; fi fi #echo $module_file_path; #echo -e "$load_module_detail\n" done < $random_apache_file rm -f $random_apache_file check_http echo "disable part"; ;; getmodule) file_path=$2 /usr/sbin/httpd -M >$file_path ;; *) echo "Other part"; ;; esac else echo "Execute script like this sh /scripts/httpmodule.sh status modulename"; echo "status :- enable or disable"; fi