Installing Metasploit on CentOS/RHEL 6
All command in the guide need to be ran as root. To switch to root and have all the proper variables run
su
Installing Dependencies
We start by making sure that we have the latest packages by updating the system using yum:
yum update
yum upgrade
Now that we know that we are running an updated system we can install all the dependent packages that are needed by Metasploit;
yum...
Thứ Tư, 3 tháng 12, 2014
Thứ Hai, 22 tháng 9, 2014
Nghẽn mail trên kloxo
Nghẽn mail trên kloxo
Đăng nhập vào quản lý host kloxo, chọn menu Web - Mail - Database => Mail Queue => để xem những mail gửi đi spam -> click vào chi tiết để xem email spam -> disable host spam, sau đó ssh vào chạy những lệnh bên dưới để xóa mail bị nghẽn. nếu vào Mail Queue bị treo thỉ cũng phải xóa những lệnh bên dưới.
ssh vào server gõ lệnh sau:
/var/qmail/bin/qmail-qstat nhấn enter sẽ hiện...
Nhãn:
Kloxo,
Mail,
Mail Queues,
Qmail
Thứ Sáu, 5 tháng 9, 2014
Set File Attributes In Linux Using Chattr Command
Set File Attributes In Linux Using Chattr Command
Chattr is a command used to set / unset file attributes in Linux.
Using chattr it is possible to make a file immutable. That is, even a root user will be prohibited from deleting the file.
To prevent anyone - even a root user - from deleting a file, you set the immutable bit of the file using the chattr command as follows -# chattr +i filename
The immutable bit option...
Thứ Sáu, 18 tháng 7, 2014
MySQL Change root Password
How do I change MySQL root password under Linux, FreeBSD, OpenBSD and UNIX?
Method #1: Use mysqladmin command to change root password
If you have never set a root password for MySQL server, the server does not require a password at all for connecting as root.
To setup root password for first time, use mysqladmin command at shell prompt...
Thứ Sáu, 23 tháng 5, 2014
Cannot find registry resource for Application ID
Cannot find registry resource for Application ID
This error is shown when you access an application link in the 'Applications' tab in Parallels Plesk Panel:
Internal error: Can not find registry resource for Application ID fbea5fe0-7e00-42fb-9fa0-e4fd2e664f8b
Can not find registry resource for Application ID fbea5fe0-7e00-42fb-9fa0-e4fd2e664f8b
Resolution
1.Check there is an aps_registry_object record for this application...
Thứ Hai, 19 tháng 5, 2014
Exim Commands
Exim Commands
Debug a mail delivery:
/usr/sbin/exim -bt -d email@address.com
Retry message delivery:
/usr/sbin/exim -M messageID
Force delivery of all message:
/usr/sbin/exim -qf
Force delivery of all message and delete of frozen ones:
/usr/sbin/exim -qff
Shows log delivery for a message:
/usr/sbin/exim -Mvl messageID
Display message body:
/usr/sbin/exim -Mvb messageID
Display message...
Check how much memory your PHP script is using
Check how much memory your PHP script is using?
The answer is the memory_get_peak_usage() function.
At the end of your PHP script (footer script for a PHP site, you get the idea), put this line:
echo memory_get_peak_usage();
Or you can write the data down in a text file:
file_put_contents('mu.txt', memory_get_peak_usage());
The output is in bytes.More friendly output,Add to the footer of the templates:
<?phpfunction...
How to run a stored procedure in sql server every hour
How to run a stored procedure in sql server every hour
Following step bellow:
In SQL Server Management Studio navigate to SQL Server Agent-->Jobs Right click on the Job Folder and select new job
On the dialog that pops up, give the job a name click on steps, then on new, you will see a dialog like the following, pick correct DB and...
Chủ Nhật, 18 tháng 5, 2014
Mysql change the default character set and collation of a table
Mysql change the default character set and collation of a table
To change the default character set and collation of a table including those of existing columns (note the convert to clause):
alter table convert to character set utf8 collate utf8_general_ci;
Note: You can't alter multiple tables at once in mysql, just write a query file to alter all tables and execute that fil...
SQL SERVER – Find Row Count in Table – Find Largest Table in Database
SQL SERVER – Find Row Count in Table – Find Largest Table in Database
How many rows are there in any particular table?
This script will gives row number for every table in database.
USE AdventureWorks
GO
SELECT OBJECT_NAME(OBJECT_ID) TableName, st.row_count
FROM sys.dm_db_partition_stats st
WHERE index_id < 2
ORDER BY st.row_count...
Thứ Sáu, 16 tháng 5, 2014
Disable exim email on single cPanel Account
Disable exim email on single cPanel Account
A week ago one of our clients account been compromised and the attacker used the server to blast emails.
as a system administrator my task was to prevent any outgoing email from the account before I start to investigate the attack and remove any kind of scripts from the hosting account.
Studying cPanel files made me to come around following solution.
To disable email for one...
Thứ Tư, 16 tháng 4, 2014
Coupon Hawk Host 25% sale off April 2014
Coupon Hawk Host 25% sale off April 2014
Save up to 25% with Coupon Hawk Host sales off for April 2014.
Today's discount: 25% Shared Hosting, Reseller Hosting and VPS Hosting.
Shared Hosting Promotional Code: april2014
Reseller Hosting Promotional Code: rapril2014
VPS Hosting Promotional Code: vpsapril2014
Visit Hawk Host No...
Chủ Nhật, 13 tháng 4, 2014
Ethernetservers Coupon Save 75% Off your first invoice April 2014
Ethernetservers Coupon Save 75% Off your first invoice April 2014
There is Ethernet Servers promotions for April 2014.
Latest Ethernet Servers discount code gives 75% Off 1st Invoice for Shared Hosting Plans and VPS Hosting Plans
This promotion only applies to the first payment only, not a lifetime.
Just starting from $ 6 / year (0.5 $ / month) when using Shared Hosting packages and $ 17.85 / year (~ 1.5 $ / month) for...
Thứ Sáu, 11 tháng 4, 2014
Namecheap Coupons Shared Hosting 40% sales off for April 2014
Namecheap Coupons Shared Hosting 40% sales off for April 2014
Save up to 40% with 3 Namecheap coupons, promo codes or sales for April 2014.
Today's discount: 40% Shared Hosting, Reseller Hosting and VPS Hosting.
Shared Hosting Promotional Code: RAINDROPS
Reseller Hosting Promotional Code: EQUINOX
VPS Hosting Promotional Code: SPRINGTIME
Visit Namecheap No...
Thứ Tư, 9 tháng 4, 2014
Hướng dẫn trỏ domain tạm về IP không dùng DNS (sử dụng file host)

Hướng dẫn trỏ domain tạm về IP không dùng DNS
Khi bạn đăng ký hosting dùng thử mà bạn chưa có tên miền, hoặc tên miền đang trỏ vào IP khác mà bạn chưa thể trỏ về hosting vừa tạo. Bạn sẽ cần trỏ tạm tên miền về hosting mới để kiểm tra và chạy thử hosting mới. Các bước thực hiện trỏ tên miền tạm không dùng DNS như sau:
Ví...
QwertyLab Tool Run As System
QwertyLab Tool Run As System
It is a simple tool that enables you to start a program or run command and script under a local system account. Requires administrative privileges on the PC. This tool is fully compatible with Vista UAC .
For example, to launch an interactive command prompt as a system account simply type 'cmd'.
To run batch file use 'cmd /c [filepath]' command.
System Requirements:
Windows 2000/XP/Vista,...
OpenSSL Heartbleed vulnerability(CVE-2014-0160) allows hackers to leak 64k of memory
OpenSSL Heartbleed vulnerability(CVE-2014-0160) allows hackers to leak 64k of memory
The bug( CVE-2014-0160), dubbed as 'HeartBleed', was independently discovered by Neel Mehta from Google Security team and Codenomicon. The bug appropriately named HeartBleed because vulnerability is located in HeartBeat extension of OpenSSL and it leads to memory leak.
What versions of the OpenSSL are affected?
OpenSSL...
Thứ Bảy, 5 tháng 4, 2014
GoDaddy Coupon Domain .COM 2.95$ April 2014
GoDaddy Coupon Domain .COM 2.95$ April 2014
Save today with a GoDaddy coupon for your domain and website needs and feel safe with GoDaddy SSL certificates.
Domain .COM JUST 2.95$
Using Promotional Code: gtni14m026
Visit GoDaddy No...
Thứ Năm, 27 tháng 3, 2014
Calculating Maximum Connections for MySQL Server
Calculating Maximum Connections for MySQL Server
Backup your my.cnf file
The my.cnf file is the MySQL configuration file that needs to be modified to optimize the performance of MySQL database servers. Make sure you always backup a copy of this very important configuration before changing it.
Determine the advisable value for max_connections
How high should we set max_connections? Well, it depends on how much memory (RAM)...
Thứ Tư, 26 tháng 3, 2014
Delete IPTables Rules By Line Number
Delete IPTables Rules By Line Number
First off list all IPTable's rules by chain number:
iptables -vnL --line-numbers
Then delete the line you want:
iptables -D INPUT 22
This will delete chain line number ...
Thứ Hai, 24 tháng 3, 2014
Change MySQL Table Prefix Tools
Change MySQL Table Prefix Tools
Description
This script makes it possible for you to change table prefix for MySql databases.
Features
Add prefix to unprefixed tables
Rename/change prefix
Remove prefix
This is a quick modification of another script found at the below address.
http://www.nilpo.com/2009/01/web-development/mysql-table-prefix-changer-tool/.
Download
Change...
Find and Delete Duplicate Posts (Title) in WordPress
Find and Delete Duplicate Posts (Title) in WordPress
The first and fastest (in other words: simplest) thing to do is to
search for duplicate entries in the database. For example with the
following SQL query.
Find Duplicate Posts
SELECT a.ID, a.post_title, a.post_type, a.post_status
FROM wp_posts AS a
INNER JOIN (
SELECT post_title, MIN( id ) AS min_id
...
Thứ Bảy, 22 tháng 3, 2014
Backup and Restore a single table using mysqldump
Backup and Restore a single table using mysqldump
Backup a single table from a database
mysqldump -u -p database_one table_name1 table_name2 table_name3 > /var/www/backups/table_name.sql
Restore the table into another database
mysql -u -p database_two < /var/www/backups/table_name.sql
You can dump a query as csv like this:
SELECT * from myTableINTO OUTFILE '/tmp/querydump.csv'FIELDS TERMINATED BY ','ENCLOSED BY '"'LINES...
Thứ Sáu, 21 tháng 3, 2014
How to get $1/yr Exabytes Ebiz Power Hosting - Save 99%

Host your Business Email and Website and enjoy 99.9% OFF !
With $1 you get 1 YEAR Hosting
Using Promotional Code: POWER99
Visit Exabytes Now
When you order, maybe you can get error :
"We are placing an automated call to your phone number now. This is part of our fraud checking measures. You will be given a 4 digit security...
Thứ Tư, 19 tháng 3, 2014
How to Create/Restore Backup In Kloxo
How to Create/Restore Backup In Kloxo
Backup/Restore
is a core part of Kloxo. You can take backup of your entire hosting and
you can trivially restore it exactly on another server. In a cluster
setup, you can take backup in one cluster configuration, and when
restoring, you can tell Kloxo to re-arrange the resources on different
servers.
Backup/Restore
is also an extremely important aspect of web-hosting, and delivers...
Chủ Nhật, 16 tháng 3, 2014
[Step by step]Create a MySQL Database, Username, Password, and Privileges from the command line
Create a MySQL Database, Username, Password, and Privileges from the command line
Step 1: Login to MySQL ( you will need an account )
user@server:~$ mysql -u mysql_user -p
Enter password:
Step 2: Create the Database
mysql > create database db_name;
Step 3: Verify that it’s there
mysql > show databases;
Step 4: Create the User
mysql > create user db_user;
Step 5: Grant privileges while assigning the password
mysql...
Thứ Sáu, 14 tháng 3, 2014
Fix Cpanel Email Disk Space Usage show incorrectly
Fix Cpanel Email Disk Space Usage show incorrectly
By default , In Cpanel Email Disk space usage is recalculated every four hours.
To update Email Disk space usage, try running /scripts/generate_maildirsize on the affected account. The syntax would be:
# /scripts/generate_maildirsize --confirm --allaccounts --verbose $USER
Replace $USER with the actual cPanel account username (the cPanel user, not the domai...
Thứ Tư, 12 tháng 3, 2014
Fix Kloxo awstats 500 internal server error
If you get a 500 error when accessing awstats, then the fix is to reset permissions, NOT by using the permission fix tool within the admin console, but you will need root access to fix this. So if your host uses kloxo and you are getting 500 errors then chances are you wont be able to fix it from a client account.
Run command below:
#cd /home/kloxo/httpd/awstats/wwwroot/ #chmod 755 cgi-bin...
Update PHP 5.3 for Kloxo
Update PHP 5.3 for Kloxo
You can follow the steps below to update your php version to 5.3 for Kloxo.
Install repository
Creat file /etc/yum.repos.d/ius.repo
[ius]name=IUS Community Packages for Enterprise Linux 5 - $basearchbaseurl=http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/$basearchenabled=1gpgcheck=0
Creat file /etc/yum.repos.d/epel.repo
[epel]name=Extra Packages for Enterprise Linux 5 - $basearchbaseurl=http://download.fedoraproject.org/pub/epel/5/$basearchenabled=1gpgcheck=0exclude=nginx*...
Thứ Năm, 6 tháng 3, 2014
How to change Mysql data directory location?
How to change Mysql data directory location?
Mysql is most famous open source RDBMS (Relational database management system) software used by millions of websites.Most of website with very large Mysql database experience storage problem because /var partition is to small which holds Mysql data files and folder by default.If you are experiencing such a problem then you have to move your Mysql data directory to other linux partition...
Thứ Ba, 4 tháng 3, 2014
Mass convert a project to UTF-8 using Notepad++
Mass convert a project to UTF-8 using Notepad++
Lately, I had to convert the encoding of a multimodule maven project from our default Cp-1252 encoding to UTF-8.
The most dificult task however was converting all our source files from Cp-1252 to UTF-8 and preferably on Windows :) .
I’ve been looking into applications that would auto-convert...
Chủ Nhật, 23 tháng 2, 2014
Find The Largest Top 10 Files and Directories On a Linux / UNIX / BSD?
How Do I Find The Largest Top 10 Files and Directories On a Linux / UNIX / BSD?
Sometime it is necessary to find out what file(s) or directories are
eating up all your disk space. Further, it may be necessary to find out
it at the particular location such as /tmp or /var or /home.
Type the following command at the shell prompt to find out top 10 largest file/directories:
# du -a /var | sort -n -r | head -n 10
du -ah...
Cpanel Restart Services
Cpanel Restart Services
By default, you may restart the following services via WHM:
DNS nameserver (named/BIND or NSD)
FTP Server (ProFTPd or Pure-FTPd)
HTTP web server (Apache/httpd)
POP3/IMAP email server (Courier or Dovecot)
POP3 server (cPPOP)
Mail server (Exim)
SQL server (MySQL)
...
Nhãn:
Centos,
Cpanel,
Restart Services
Thứ Sáu, 21 tháng 2, 2014
.htaccess Rewriting CodeIgniter URLs on Apache 2.4 and mod_fastcgi_handler (FCGI)
.htaccess Rewriting CodeIgniter URLs on Apache 2.4 and mod_fastcgi_handler (FCGI)
CodeIgniter had some problems with mod_rewrite on a shared hosting account where the hoster runs
Apache + FCGI
When you tried to use CI’s SEO URLs, you'll get an error 'No input file specified'.
And the solution here:
Create an .htaccess file in the same directory with index.php and paste into it:
RewriteEngine On
# Existing files and directories...
Nhãn:
.htaccess,
apache,
CodeIgniter,
FCGI
Thứ Năm, 13 tháng 2, 2014
Download CentOS 6.5 x64 ISO DVD FULL
Download CentOS 6.5 x64 ISO DVD FULL
See More Version in here
DVD1
CentOS-6.5-x86_64-bin-DVD1.iso.001
CentOS-6.5-x86_64-bin-DVD1.iso.002
CentOS-6.5-x86_64-bin-DVD1.iso.003
CentOS-6.5-x86_64-bin-DVD1.iso.004
CentOS-6.5-x86_64-bin-DVD1.iso.005
CentOS-6.5-x86_64-bin-DVD1.iso.006
CentOS-6.5-x86_64-bin-DVD1.iso.007
CentOS-6.5-x8...
Download Ghost Windows 7 64bit FULL Driver and Software
Download Ghost Windows 7 64bit FULL Driver and Software
Who should use:
-The computer has 4GB of RAM or more
-You are a person who uses graphics programs, games
File include:
-Windows 7 64bit
-Full Driver and Software
Link download
Win7x64_FullSofts_songngoc.GHO.001
Win7x64_FullSofts_songngoc.GHO.002
Win7x64_FullS...
Đăng ký:
Bài đăng (Atom)