Category Archives: Coding

All kinds of Programming.

Python program to fetch domain whois data using sockets

By | October 17, 2012

Whois The whois information of a domain name provides various details like registrar, owner, registration date, expiry date etc. The whois information is provided by the corresponding whois servers of the registrars. The first step is to contact which provides the actual whois server of a domain name. Next the particular whois server is… Read More »

Programming udp sockets in python

By | October 16, 2012

UDP sockets UDP or user datagram protocol is an alternative protocol to its more common counterpart TCP. UDP like TCP is a protocol for packet transfer from 1 host to another, but has some important differences. UDP is a connectionless and non-stream oriented protocol. It means a UDP server just catches incoming packets from any… Read More »

Raw socket programming in python (Linux)

By | October 9, 2012

Raw sockets allow a program or application to provide custom headers for the specific protocol(tcp ip) which are otherwise provided by the kernel/os network stack. In more simple terms its for adding custom headers instead of headers provided by the underlying operating system. Raw socket support is available natively in the socket api in linux…. Read More »

Syn flood program in perl using raw sockets (Linux)

By | October 8, 2012

Syn flood program sends out a large number of syn packets to a destination host such that the destination host gets under heavy pressure to reply to all of them and hence consumes huge amount of memory/cpu resources without any real purpose. This causes the services of the remote host to become unavailable to legitimate… Read More »

Fill text templates using arrays in php

By | September 22, 2012

Text templates are often used to generate content like notification emails, invoices filled with the details of a customer or user. The best example would be a bulk email program that sends out emails to multiple users filling the details of the particular user in every individual mail. Text templates have place holders for fields… Read More »