My website hacked by w0LF Gh4m3D

Today one of my website which hosted in a shared hosting environment got suspended because it’s running many malicious script and attacking the server.

My website name is www.webhostingkudus.com, and maybe many Moslem Hacker miss represented this as a Non-Moslem website. As all of you should know, it’s created under the name www.webhostingkudus.com, because I’m living in Kudus, a nice Moslem City in Central Java, Indonesia.

The City founder, Sunan Kudus or Syeikh Raden Ja’far Shodiq, decided to name the City as Kudus, because he want to create the City as beautifull as the Al-Quds or Baitul Maqdis, a City where Masjidil Aqso located in Jerussallem / Palestina .

It’s hacked by w0LF Gh4m3D. And altough the hacker have been removing the log files, they still left some logs for me.

In the error_log, I found the latest IP of the visitor :

87.109.59.213
188.51.121.30
188.52.52.191

If you want to add more security, just add those three IP’s to your blocklist. Or you can banned the whole Middle East from accessing your website.


Review – EvoRack VPS128

I am moving this blog to the Evorack VPS128  since January 12,2012.

While using the Coupons “WHTIPV6″, it comes with :

  • 128 MB Guaranteed Memory / 512 MB Swap Memory
  • 20 GB Storage
  • 250 GB Monthly Bandwidth
  • 1 IPv4
  • /64 IPv6 Subnet
  • Normal Price £5.99 / Discounted Price £2.34

 

CPU Information :

# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 30
model name      : Intel(R) Xeon(R) CPU           X3470  @ 2.93GHz
stepping        : 5
cpu MHz         : 2925.982
cache size      : 8192 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 11
wp              : yes
flags           : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni ssse3 sse4_1 sse4_2 popcnt
bogomips        : 5856.17
clflush size    : 64
power management:

 Memory Info :

debian:~# cat /proc/meminfo
MemTotal:       131268 kB
MemFree:         49808 kB
Buffers:          3580 kB
Cached:          58520 kB
SwapCached:        364 kB
Active:          37784 kB
Inactive:        30436 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       131268 kB
LowFree:         49808 kB
SwapTotal:      524280 kB
SwapFree:       522428 kB
Dirty:              36 kB
Writeback:           0 kB
AnonPages:        5884 kB
Mapped:           8608 kB
Slab:             5628 kB
SReclaimable:     3436 kB
SUnreclaim:       2192 kB
PageTables:          0 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
WritebackTmp:        0 kB
CommitLimit:    589912 kB
Committed_AS:    59124 kB
VmallocTotal:   720888 kB
VmallocUsed:       872 kB
VmallocChunk:   719516 kB

IO Test :

debian:~# dd if=/dev/zero of=iotest bs=64k count=16k conv=fdatasync && rm -rf io                                                                             test
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 9.61476 s, 112 MB/s

Network Test :

debian:~# wget cachefly.cachefly.net/100mb.bin
--2012-01-17 11:34:10--  http://cachefly.cachefly.net/100mb.bin
Resolving cachefly.cachefly.net... 205.234.175.175
Connecting to cachefly.cachefly.net|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: `100mb.bin'

100%[===================================================================================================================>] 104,857,600 29.0M/s   in 3.6s

2012-01-17 11:34:13 (27.7 MB/s) - `100mb.bin' saved [104857600/104857600]

Tutorial – Adding SSL to this Lighttpd Blog

Today I am using SSL to add more securities in this Blog, and the SSL is the Free one, provided by StartCom / StartSSL.

And now, let’s go trough the tutorial for installing SSL in a Lighttpd VPS

How to get Free SSL :

  1. Go to StartSSL
  2. Click the StartSSL Free
  3. Choose the Express Lane, fill the required data, and also make sure you are using valid phone number. We use the phone number for verification.

 

Preparing the Lighttpd VPS for SSL installation :

  1. Generate a CSR ( Certificate Signing Request ), and in this example we are using domain www.erawanarifnugroho.com
    # mkdir -p /etc/lighttpd/ssl
    # cd /etc/lighttpd/ssl/Create the Private Key :
    # openssl genrsa -des3 -out ssl.key 2048

    Create the CSR :

    # openssl req -new -key ssl.key -out ssl.csr

    You will be prompted to enter domain name and another data. At the “Common Name”, use your domain name, for example www.erawanarifnugroho.com

    Next you will need to submit the csr key to the Certificate Authority, in this case StartCom/StartSSL. Once your order have been validated, you can download the certificate to be used for the Lighttpd VPS.

    Save the Certificate as “certificate.crt” and upload the Certificate to the /etc/lighttpd/ssl

  2. Preparing the CertificateIf we use the encrypted Private Key, Lighttpd will ask the password when restarted. Therefore, we need to decrypt the key so the Lighttpd will not ask the password.
    # openssl rsa -in ssl.key -out no.pwd.key

    You will be prompted to enter the password for the Private Key.

    Create the .pem file :

    # cat no.pwd.key certificate.crt > ssl.pem
  3. Configuring the Lighttpd.conf
    # nano /etc/lighttpd/lighttpd.conf

    Add config section :

    $SERVER["socket"] == "vps.ip.address:443" {
    ssl.engine = "enable"
    ssl.pemfile = "/etc/lighttpd/ssl/ssl.pem"
    ssl.ca-file = "/etc/lighttpd/ssl/certificate.crt"
    server.name = "www.erawanarifnugroho.com"
    server.document-root = "/var/www/www.erawanarifnugroho.com/"
    server.errorlog = "/var/log/lighttpd/serror.log"
    accesslog.filename = "/var/log/lighttpd/saccess.log"
    # The following code is used to secure the SSL from attack
    ssl.use-sslv2 = "disable"
    ssl.cipher-list = "TLSv1+HIGH !SSLv2 RC4+MEDIUM !aNULL !eNULL !3DES @STRENGTH"
    }
  4. Restart the Lighttpd, and all done
    # service lighttpd restart

Copyright 2008 - 2012 by Erawan Arif Nugroho
Performance Optimization WordPress Plugins by W3 EDGE