Posts

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/ -- dir1/ -- dir2/ -- 2nddomain/ --- 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

Tomcat 6 and JDK 1.6

Installing Tomcat 6 =================== yum only gives tomcat5. So, yum remove tomcat5 -y cd /usr/share wget http://lawyersdb.com/mirrors/apache/ant/binaries/apache-ant-1.8.1-bin.tar.gz tar xvzf apache-ant-1.8.1-bin.tar.gz ln -s /usr/share/apache-ant-1.7.1/bin/ant /usr/local/bin mkdir /usr/local/tomcat wget http://lawyersdb.com/mirrors/apache/tomcat/tomcat-6/v6.0.28/bin/apache-tomcat-6.0.28.tar.gz tar xvzf apache-tomcat-6.0.28.tar.gz mv apache-tomcat-6.0.28/* ./ rm -rf apache-tomcat-6.0.28 Go get /etc/init.d/tomcatd startup script frm ns38 or google around. chown -R root:tomcat /usr/local/tomcat/ chown -R tomcat:tomcat /usr/local/tomcat/temp/ chown -R tomcat:tomcat /usr/local/tomcat/logs/ chown -R root:root /usr/local/tomcat/bin/ Next, test, maybe cannot start. Why? make sure this details are acordingly in /etc/init.d/tomcatd # chkconfig: 345 84 16 # description: Tomcat jakarta JSP server TOMCAT_HOME=/usr/local/tomcat TOMCAT_START=$TOMCAT_HOME/bin/startup.sh TOMCAT_STOP=$TOMCAT_HOME/bi...

Checking .NET framework Version installed on Server

Method 1: <%@ Page Language="VB" %> <html lang="en"> <head> <title>.NET version</title> </head> <body> <p>.NET version is: <%= System.Environment.Version.ToString() %> </p></body> </html> And save it to ayam.aspx Method 2: Go remote the server, and Open my computer, and paste this on url bar: %systemroot%\Microsoft.NET\Framework and see whats folder is there? Ref: http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/3076a78d-da31-4f3c-8c8d-cdbc33f29041 http://support.microsoft.com/kb/318785 http://en.wikipedia.org/wiki/.NET_Framework http://www.west-wind.com/weblog/posts/289139.aspx http://stackoverflow.com/questions/212896/how-do-the-net-framework-clr-and-visual-studio-version-numbers-relate-to-each-o //alak

DotNetNuke : Checking DNN version

The easiest way is listed first, thought alternatives are provided as well. Checking the version with "Super User" access If the site in question is up and running and you have a super-user login (typically the "host" user), the version information is displayed at the top of the "Host Settings" page under the "Host" menu. Checking the version from the database If the site isn't running properly, or you don't have a login, and you can access the database, you can query the "Version" table to find out the version. The following query will return the proper version number, assuming an objectQualifier was not used when DotNetNuke was installed. If it was, you'll want to look up the table name, which may be dnn_Version. select top 1 * from version order by createddate desc Checking the version from the file system Alternatively, you can find the DotNetNuke.dll in the website's bin directory and inspect its version. Right clic...

SquirrelMail : "The requested URL /src/right_main.php was not found on this server."

This happens very oddly. The sitation is that you login to webmail, then can view, edit, delet move, read everything Okie, except when after you compose, then click on "Send" button, the error came out. it first asks for https verification, then the error. Further reading: http://sourceforge.net/tracker/index.php?func=detail&aid=1521299&group_id=311&atid=100311 http://readlist.com/lists/lists.sourceforge.net/squirrelmail-users/0/1876.html Seems the self-guess bu SquirelMail is wrong, as in requesting http://you.webmail.com/src/configtest.php You will see whats the requested URL. The fix? Im not sure whether its the fix, i believe its a config thingy. 1) vi to config/config.php 2) search for "config_location_base" 3) If you notice, on line 126, theres : $domain = $_SERVER['SERVER_NAME']; So, i have set my $config_location_base to like this: $config_location_base = 'http://'.$domain; then? Gao Dim! kudos jwchai hmlee google /alak