Tag Archives: network programming
Python socket programming Tutorial – How to Code Client and Server
Socket programming in C on Linux – The Ultimate Guide for Beginners
How to code a TCP Connect Port Scanner in C with Winsock
Tcp connect port scanning TCP connect() scanning is the most basic form of TCP scanning. The program performs a connect() command on those ports of the target machine which are to be checked. If the port is open then the connect() command will succeed and a connection will be established. If the port is closed… Read More »
How to Code a Port Scanner in C on Linux
Port scanning A port scanner is a program that checks for open network ports on a local or remote machine. For example, if a machine is running an http webserver then it has port 80 open. So by scanning for open ports on a machine, we can find what server applications are running on it…. Read More »
Raw socket programming on windows with Winpcap
Raw sockets with winpcap A previous post explains how to send on windows xp. However the winsock api has limited raw socket support in windows versions greater than windows xp+sp1. Therefore winpcap has to be used to send raw packets on higher windows versions. Winpcap is a packet driver useful for packet capturing and sending… Read More »
Raw socket programming on windows with winsock
Raw sockets using winsock Raw sockets or “Raw Packets”, enable a program to access the entire contents of a packet or datagram, both for reading and writing purpose. In other words, you can fabricate a whole packet according to your likes and dislikes. For example, a TCP packet would contain an IP header, a TCP… Read More »