i have to write a program that sniffs network packets (part1-the simple part).
and i have to update the program (part2) so that it will be able to terminate connections.
the specific requirements are:
construct raw packets by specifying data link layer and network layer information including appropriate source and destination MAC and IP addresses. These packets are intended to terminate the connection. To do so, you should used SOCK_RAW as the socket type to be able to set the header information by yourself.
can anybody give me some ideas on the second part?
should i hijack the session,apply a dos attack on one of the users??
all i need is some tips of how to terminate the connection. i am using c programming language. and this is a course assignment for the security course.