Nov
22
2011

Get http request headers in php

When a browser makes a request to a php script, the browser sends some http headers which can look like this : The php script under request , may want to access these http headers. PHP has a method getallheaders() which provides these headers. So the code should be like this : and the output should be like this : However the method getallheaders is available only when PHP is running as a Apache Module [...]

Nov
19
2011

Hack Bsnl websites easily

Disclaimer : The information provided below is for educational purpose only. The author is not responsible for any misuse of the information and discourages any illegal use of it. Yes , we shall hack bsnl website easily , easy enough for a nursery kid. We shall be using Google Hacking and SQL Injection techniques. So Lets begin. Search this in google : inurl:bsnl.co.in/admin In the search results page go to second page. You would see [...]

Nov
19
2011

Bsnl helpdesk application hacked

Disclaimer : The information provided below is for educational purpose only. The author is not responsible for any misuse of the information and discourages any illegal use of it. Bsnl hosts a helpdesk application at : http://dotsoft.bsnl.co.in/helpdesk Doing a search on google for : inurl:dotsoft.bsnl.co.in/helpdesk/moduser.asp reveals around 225 links of users of the system. Some urls are : http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=jalnadotsoft http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=review http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=sdebhr http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=DBASOL http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=pramarao http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=jmndba http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=dbcdotsoft http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=hacked%20by http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=aowl http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=ramanap http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=mbn http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=cpadma http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=dbatrich http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=chauhanak http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=BISHNOI http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=dbamr http://dotsoft.bsnl.co.in/helpdesk/moduser.asp?un=jrbarod [...]

Nov
10
2011

Writing a Script to Validate HTML/CSS of a Webpage in Ruby

In this post, I am going to write HTML and CSS Validators in Ruby and PHP. W3C HTML and CSS Validators basically check the validity of the URL supplied to it. It is always a good idea to write completely valid HTML and CSS for several reasons. The W3C HTML Validator checks the markup validity of Web Documents in HTML, XHTML, etc. while the W3C CSS Validator does the same for Web Documents in CSS. These validators [...]

Nov
9
2011

Service Tax for Indian freelancers and software firms

What is Service Tax In India service tax is applicable on certain businesses/firm if its annual revenue exceeds 10 Lakh Rupees. Current rate is 10.30% (at the time of writing this article). Its not applicable where VAT is applied. Service Tax is applicable in IT sector and on software firms and freelancers whose annual revenue exceeds the limit. The annual revenue includes both foreign and local income. So if the total of foreign revenue and [...]

Nov
9
2011

PHP get adsense earnings and reports

In this article we are going to login into Google Adsense and retrieve earnings. Google Adsense now has a new interface and so needs a different kind of coding. In this example we shall fetch “yesterday’s” earnings sitewise. Create a Report to be fetched : First open the sitewise report in the Performance Tab in the new interface of Google Adsense at www.adsense.com and save the report with a name say “tomato”. The php script [...]

Nov
9
2011

PHP get DNS Nameserver , Cname , MX , A records of a domain

PHP has a useful function called dns_get_record that can be used to get different types of records for a give domain , very easily. Nameserver – NS Records : A Record – IP address : Another simple method to get the A record or IP address of a domain name is to use the function gethostbyname : Another method gethostbynamel would give an array of IPs : MX Record – Mail Server : MX Records [...]

Nov
9
2011

Parse MVC style urls in PHP

If you have used codeigniter or some mvc php framework then you might be aware of urls like www.yoursite.com/index.php/class/method/param1/param2?a=b&c=d or www.yoursite.com/class/method/param1/param2?a=b&c=d if you use mod rewrite to add the index.php The htaccess code could be like this : The above kind of urls need to be parsed inside PHP to extract the class name , method name and parameters. The parsing approach could be different based on the Server API (sapi) PHP is using. 1. [...]

Nov
8
2011

Check Ubuntu version from command line

Here is a simple command to get your Ubuntu version from terminal / commandline. or or or Try any of them. Cheers!

Nov
8
2011

Choose between modphp , suphp , cgi , fastcgi , suexec

PHP Handlers PHP handlers are a link between a webserver(say Apache) and the PHP libraries. PHP handlers enable a webserver to load the PHP library in a certain manner and execute the PHP code and return the output to the webserver. There are many different kind of PHP handler setups available. Each has its own advantages and disadvantages. Mod_php (DSO) modphp or the Apache 2 Handler is a apache module for running PHP scripts. modphp [...]

Pages:«1234567...18»