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 raw packets on the windows ...

Tcp syn portscan code in C with Linux sockets

Port Scanning searches for open ports on a remote system. The basic logic for a portscanner would be to connect to the port we want to check. If the socket gives a valid connection without any error then the port is open , closed otherwise (or inaccessible, or filtered). This basic technique is called TCP Connect Port Scanning in which we ...

BSNL Broadband – Connecting 2 computers to the MT882 ADSL Modem

The Huawei MT882 ADSL Modem that you might have received with your BSNL Broadband connection can be used to connect 2 computers to the internet simultaneously since it is a router. It has a USB interface and an Ethernet interface both of which can be simultaneously used but with a few setting changes. First of all one PC must use the ...

Hack Bsnl Broadband Accounts

Hack bsnl broadband username and passwords Bsnl Broadband continues to grow as one the most popular broadband services in India with high speed facilities of upto 2 mpbs. But a large number of users of this service are vulnerable to hacker attacks because discovering and hacking the vulnerable victims of this network is shockingly simple. If you are a Bsnl broadband ...

BSNL Broadband Modem USB connection in RedHat 9.0

Huawei SmartAx MT882 is one of the ADSL modems BSNL provides with their broadband service. The modem/router comes with 2 options for interfacing an Ethernet RJ45 or a USB port. Connecting via an ethernet port isnt too much of a mess as long as the ethernet card is working fine with the OS under consideration. But for the USB connection ...

Dual boot windows xp + Fedora 5.0 and GRUB missing

Windows + Fedora dual boot I recently installed a new hard disk aside my existing one. So the new configuration was a 80GB + 40GB. I installed Windows xp on the first hard disk and Fedora Core 5.0 on the second one. And the simple problem that I faced , was that GRUB was simply not coming. The machine would simply ...

DNS Query Code in C with winsock

DNS Query Its no new fact that when we type a web address in our browser a dns request is immediately send by our browser to a DNS server to get the IP address of that web address.In winsock applications we achieve this by gethostbyname() and things are pretty simple.In this article we shall do this simple thing without the help ...

Packet Sniffer Code in C using Winsock

Winsock packet sniffer A packet sniffer is a program that can sniff the packets moving on the network. All applications communicate over the network with data packets where each packet contains part of the whole data being exchanged. A sniffer is able to pickup these individual packets and read them. In this post we are going to write a very simple packet ...

Raw socket programming on windows with winsock

Raw sockets using winsock Raw sockets or "Raw Packets", give you the facility 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 header, and then the actual ...

C Program to print permutations of a string

Permutations Permutations is the set of all different unique arrangements of the letters of the string. So for the string "ABC" there are 6 permutations - ABC, ACB, BAC, BCA, CAB, CBA. The permutations can also be taken on a smaller length. For example if we want to get permutations of ABC over only 2 places then the permutations are - ...



Connect with us