11
2011
Traceroute command not working on Ubuntu
The traceroute utility can be installed from synaptic : Some Information : Doing some test runs The traceroute command by default sends UDP packets. In the above output 5 network nodes remain undiscovered. The first impression would be that they did not repsond. However this is not the case. Wireshark reveals more : Wireshark clearly shows ICMP ttl expired reply from nodes : 203.171.242.33 203.171.240.17 But these nodes dont show up in the traceroute output. [...]
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 [...]
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 [...]
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 [...]
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. [...]
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 [...]
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 [...]
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 [...]
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 [...]
7
2011
Install suphp on Ubuntu Linux
suphp is an apache module (mod_suphp) that replaces mod_php and runs php scripts with a specific user. To install on Ubuntu : 1. Install libapache2-mod-suphp 2. Now disable the mod_php 3. Now restart Apache : This should install and enable suphp. mod_suphp is loaded here : and suphp is configured here : The above configuration make suphp the handler for php files. Suphp consists of two components: 1. mod_suphp – an Apache module that replaces [...]
Subscribe
Recent Posts
- C code to perform IP whois
- Turbotrace – a free multithreaded and visual traceroute utility for windows and linux
- Function pread for windows
- Quick Tip: Getting the Next and Previous Items or Posts
- Compile wxwebconnect on Ubuntu 11.04 64 bit
- Disqus Comments Importer Script in PHP
- Beginners’ guide to socket programming with winsock
- Handle multiple socket connections with fd_set and select on Linux
- Beginners guide to socket programming in C on Linux
- Gui whois client in python with wxpython
An article by Binary Tides