Posts

Showing posts from September, 2010

Determine script name behind a mod_rewrite

Qouted from here : http://ptresearch.blogspot.com/2010/09/fuzzing-of-modrewrite-protected-site.html?showComment=1284996551492#c3759944444184118630 0x32353031 said... determining the script name is pretty easy. just a lil trick to use: H=ha.ckers.org; echo -ne "POST /blog/category/webappsec/books/ HTTP/1.1\nHost: $H\nConnection: close\nContent-length: x\n\n" | nc $H 80 | less note the content-length field's value... its invalid :P This will produce a simple HTTP/1.1 413 Request Entity Too Large, with a common 413 error message/html followed by the site's code. take a closer look... HTTP/1.1 413 Request Entity Too Large Date: Mon, 20 Sep 2010 14:56:41 GMT Server: Apache Connection: close Content-Type: text/html; charset=iso-8859-1 !DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN" html head title 413 Request Entity Too Large /title head body h1 Request Entity Too Large /h1 The requested resou

Unable to set up mailbox quota for this domain: setDomainDiskQuota() failed: mailmng failed: Invalid index. (COM Error 8002000B)

Error while updating Limit for a spesific domain in PLESK 8.2.0 Windows Googled, and found this: http://forum.parallels.com/showthread.php?t=89683 Solution: cd %plesk_bin% mchk --all --fix=all BUTTTTTTTTT in my case, that was not the solutions actually.. what happen was, the domain has reached its expiry date, thus PELSK auto suspend. But when it suspends, it actually disabled the mail service as well, SOOOOO, what you have to do actually is, 1) Go to Mail > Enable 2) Limits > Set expiry date 3) Switch On. Done. //alak

Two domains, 1 hosting, domain alias, and $_SERVER['SERVER_NAME']

One hosting, and have two domain, one primary and one more alias. But the alias is only to be pointed into one of the subdirectory, and main domain hppy as it is. Example: public_html/ <- main domain take from here -- dir1/ -- dir2/ -- 2nddomain/ <-- domain alias from here --- index.html -- dir3/ - index.php So, in root directory, in this case public_html/ create index.php as below: <? if ( $_SERVER['SERVER_NAME'] == "number1.ac.com.my") header("Location: http://number1.ac.com.my/number1/"); else header("Location: http://anotherweb.com.my/index.php");; ?> Ok. Good luck. Thanks //alak