Reset WordPress admin password using database: Â 1. Find the database name in “wp-config.php” for the corresponding WP domain. 2. cd /var/lib/mysql 3. Take backupÂ Â mysqldump databasename > databasename.sql 4. Enter into MySQL prompt.Â Â mysql root@hostname# mysqlWelcome to the MySQL monitor.Â Commands end with ; or \g.Your MySQL connection id is… Continue Reading Reset WordPress admin password
Â Art of Port ScanningÂ — namp We can find custom SSH port number usingÂ nmap: command: Â nmap -P0 -T4 -sV -p- “IP address” Â Â Â Â Â Â Â Â Â Â -PO[protocol list]:Â IP Protocol PingÂ Â Â Â Â Â Â Â Â Â -T: Set timing template (higher is faster). By default it will be in milliseconds.Â Â Â Â Â Â Â Â Â Â -sV: Probe open ports to determine service/version… Continue Reading Find custom SSH port number
Simple difference b/w Sub domain, Parked, and Add-On domain. Sub domain * Lets say your domain is mysite.com. * You install a Message Board and put in in a directory called mysite.com/board/. * You can turn the directory board into a sub-domain by adding it as a sub-domain from your… Continue Reading Simple difference b/w Sub domain, Parked, and Add-On domain.
Modules install with Apache to avoid DDOS attacks: To mitigate DDoS attacks, you can install : Mod_securityMod_dosevasiveMod_limitipconnDoS-Deflate ***************1) “Mod_security” : “Mod_security” is a module which helps us to protect our server from exploits that are passed though apache. Mod_security does this by inspecting the information send in apache and filtering… Continue Reading Modules install with Apache to avoid DDOS attacks.
Few steps to be taken when you feel that the server is under DDOS attack: Step 1: Check the load using the command “w”. Step 2: Check which service is utilizing maximum CPU by “nice top”. Step 3: Check which IP address is taking maximum connection using the command: netstat… Continue Reading Few steps to be taken when you feel that the server is under DDOS attack:
How to find the bandwidth utilized by individual users via SSH? 1)Create a new file with following code.2) chmod +x bandwidth3) Then execute the file with 2 parameters viz. month and year. vi bandwidth #!/bin/bash cd /var/cpanel/bandwidth/ls | grep -v “\.” | xargs -n 1 -izzz sh -c “echo -n… Continue Reading Find user Bandwidth via SSH shell (CPanel/WHM)
>> Hi. This is the qmail-send program at smtpgate2.pacific.net.sg.>> I’m afraid I wasn’t able to deliver your message to the following >> addresses.>> This is a permanent error; I’ve given up. Sorry it didn’t work out.>>>> :>> Connected to 184.108.40.206 but greeting failed.>> Remote host said: 554 5.7.2 Service denied,… Continue Reading Remote host said: 554 5.7.2 Service denied, closing transmission channel
How to check if the server is hacked or not? These are the simple steps to check if your server got hacked or free from hack. security – Check your server is hacked or notSteps to investigate hacked linux server Steps to investigate hacked linux server Check your server is… Continue Reading Check if the server is hacked or not
How to install Zend module via RPM? These are the steps to install zend module via RPM. 1) Downloadrpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpmorrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm2)Install Zend Framework 1.11.3yum –enablerepo=remi install php-ZendFramework3)Install Zend Framework Full setupyum –enablerepo=remi install php-ZendFramework* –exclude php-ZendFramework-Db-Adapter-Oracle4)Custom setupyum –enablerepo=remi install php-ZendFramework \ php-ZendFramework-Cache-Backend-Memcached php-ZendFramework-Db-Adapter-Mysqli \ php-ZendFramework-Dojo php-ZendFramework-Feed \ php-ZendFramework-Gdata… Continue Reading Install Zend module via RPM
How to remove the IP address from cPHulk bruteforce attack via cPanel database? ——— This account is currently locked out because a brute force attempt was detected. Please wait 10 minutes and try again. Attempting to login again will only increase this delay. If you frequently experience this problem, we… Continue Reading cPHulk bruteforce attack + remove IP address from database