Dec
6
2011

Dns information tool on ipmango

Ipmango.com has dns information tool which provides various types of dns information about a domain name. The tool provides the following information about a domain name : Top level domain (TLD) nameservers TLD nameservers are those nameserver which provide the nameservers of a child domain name. For example the TLD nameserver of .com domains is A.GTLD-SERVERS.NET , B.GTLD-SERVERS.NET etc. So they can provide the nameserver of any .com domain TLD may also provide the IP [...]

Dec
6
2011

Convert simplexml object to array in php

The simplexml extension of php is quite simple and easy to use when it comes to parsing “well-formatted” xml files. Well formatted means , xml that is not broken or does not have too many errors. One of the most handy functions of this extension is simplexml_load_string. Here is an example : print_r or var_dump , whatever you like. The output should be : Nothing special over there. But one thing that many developers try [...]

Dec
6
2011

Make hanging style buttons with CSS3 transition

Here is a demo of hanging style buttons Please upgrade your browser Tested in latest versions of Firefox, Chrome and Opera. Code Html is minimal : CSS : The transition property applies to padding over a period of 0.5 seconds with the function of ease-out. Since the transition has been applied in the base style, it will have effect both when the padding increases and decreases. So when the mouse is moved out of the [...]

Dec
5
2011

Make rotating buttons with CSS3 transition and transform

CSS3 has lots of new properties which can be used to make much more complex ui elements on webpages. Here is the rotating button Demo : Please upgrade your browser Tested in latest versions of Firefox , Google Chrome , Opera. The above shown rotation effect is achieved using the transition and transform properties of CSS3. Code The html code is minimal : CSS : First comes the transition definition. The transition property is used [...]

Dec
1
2011

Packet Sniffer Code in C using Linux Sockets (BSD) – Part 2

In the previous part we made a simple sniffer which created a raw socket and started receiving on it. But it had few drawbacks : 1. Could sniff only incoming data. 2. Could sniff only TCP or UDP or ICMP or any one protocol packets at a time. 3. Provided IP frames , so ethernet headers were not available. In this article we are going to modify the same code to fix the above 3 [...]

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

Pages:«1234567...18»