Browsing articles from "November, 2011"
Nov
30
2011

Visual traceroute tool on ipmango

Traceroute is an application that shows all the network points/hosts between 2 hosts on a certain network. For example , between you and www.google.com To perform a traceroute on Windows simply open your terminal/console and use the tracert command : On Ubuntu use the traceroute command : So the traceroute command shows the ip of all network hosts between our computer and www.google.com server Plot on world map Now that we have all the ips [...]

Nov
29
2011

Code a network packet sniffer in python for Linux

The most basic form of a sniffer would be : Run this with root privileges or sudo on ubuntu : sudo python sniffer.py The above sniffer works on the principle that a raw socket is capable of receiving all (of its type , like AF_INET) incoming traffic in Linux. The output could look like this : The above is a dump of the network packets in hex. They can be parsed using the unpack function. [...]

Nov
27
2011

Php create pdf documents from html using mpdf

Many php applications need to create pdf of documents like invoice , receipt and even id card etc. In this article we shall create a pdf invoice using the mpdf pdf creation library. mpdf is made in php without any other external library. mpdf parses css much better than any other free pdf libraries like tcpdf and creates pdf files which resemble the original html file to a large extent. Mpdf can be downloaded from [...]

Nov
24
2011

Code a network packet sniffer in PHP

Example of a packet sniffer is Wireshark. Packet sniffers pick up the packets going in and out of a system and analyse them and present them to user for further analysis. In this post we are going to code a simple packet sniffer in php. The basic theory this packet sniffer is that , raw packets can sniff without much effort if they are put into receiving mode. This will work only on a Linux [...]

Nov
24
2011

Php get zip error message from error number

Php functions like zip_open return an error number if they fail. To get the corresponding error message from the error number , use the following function. The list of Zip constants is available here : http://php.net/manual/en/zip.constants.php

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 [...]

Pages:123»