Category Archives: Coding

All kinds of Programming.

Code a TCP Connect port scanner in PHP

By | October 24, 2011

A port scanner is a software application designed to probe a server or host for open ports. We earlier made a TCP Connect port scanner in C here – and here – Now we shall try making the same in PHP. The code is very simple : Using fsockopen Output : The above… Read More »

Programming box2d in javascript – tutorial on basics

By | October 21, 2011

Box2d Box2d is a 2d physics simulation library written for C++ and ported to many languages including Javascript. From Box2d’s Website Box2D is a feature rich 2D rigid body physics engine, written in C++ by Erin Catto. It has been used in many games, including Crayon Physics Deluxe, winner of the 2008 Independant Game Festival… Read More »

DNS Query Code in C with linux sockets

By | October 21, 2011

This article is an extension of the article : The Linux version has some changes. On Linux the dns server ips are stored in a file called /etc/resolv.conf. So the get_dns_servers function will open this file and pickup the dns server ip addresses. A typical /etc/resolv.conf file can look like this : # Generated… Read More »