Do you want to improve your writing? Try our new evaluation service and get detailed feedback.
Check Your Text it's free

Simple packet sniffer written in C. supports UDP, TCP, HTTP, and DNS packets.

Simple packet sniffer written in C. supports UDP, TCP, HTTP, and DNS packets. okkWV
Sniffer is a simple packet sniffer that analyzes HTTP and DNS packets with details and also gives general information about TCP and UDP conversations. Sniffer is written in c and uses libpcap library to read and maybe filter packets coming from network interface controllers. To compile C files you must have libpcap installed, if you don't, this command do it for you. sudo apt install libpcap-dev # Debian and Ubuntu only After installing libpcap, you can simply(if GCC is installed) use Make using make, make normal, make separated to compile (difference of them is explained later) and make clean to delete the compiled file(It just removes Sniffer object file from directory). Now after compiling code, the code can run via running this command sudo. /sniffer [the device you want to sniff] If you don't know which device you want to sniff use sudo. /sniffer and then choose from the listed devices. If you still don't know your choice just let time pass, code will choose the first one automatically. Program won't show you outputs directly rather generates some logs using syslog which in ubuntu 20. 04 they are stored in /var/log/syslog/ but it differs from OS to OS. you can also use the flowing command to get logs that is cleaner than searching through thousands of logs to find program logs. tail -f /var/log/syslog | grep Sniffer
Sniffer
is a simple packet
sniffer
that analyzes HTTP and DNS packets with
details
and
also
gives general information about TCP and UDP conversations.
Sniffer
is written
in c and
uses
libpcap
library to read and maybe filter packets coming from network interface controllers.

To compile C files you
must
have
libpcap
installed, if you don't, this command do it for you.

sudo
apt install
libpcap-dev
# Debian and Ubuntu
only


After installing
libpcap
, you can
simply
(if GCC
is installed
)
use
Make
using
make
,
make
normal,
make
separated to compile (difference of them is
explained
later) and
make
clean to delete the compiled file(It
just
removes
Sniffer
object file from directory).

Now
after compiling code, the code can run via running this command

sudo
. /sniffer [the device you want to sniff]

If you don't know which device you want to sniff
use
sudo
. /sniffer and then choose from the listed devices. If you
still
don't know your choice
just
let
time pass, code will choose the
first
one
automatically
.

Program won't
show
you outputs
directly
rather
generates
some
logs using
syslog
which in
ubuntu
20. 04 they
are stored
in /var/log/
syslog
/
but
it differs from OS to OS. you can
also
use
the flowing command to
get
logs
that is
cleaner than searching through thousands of logs to find program logs.

tail
-f /var/log/
syslog
| grep
Sniffer
What do you think?
  • This is funny writingFunny
  • I love this writingLove
  • This writing has blown my mindWow
  • It made me angryAngry
  • It made me sadSad

IELTS essay Simple packet sniffer written in C. supports UDP, TCP, HTTP, and DNS packets.

Essay
  American English
7 paragraphs
226 words
This writing has been penalized,
text can't be
less than 250 words in Task 2
and less than 150 words in Task 1
5.0
Overall Band Score
Coherence and Cohesion: 5.5
  • Structure your answers in logical paragraphs
  • ?
    One main idea per paragraph
  • Include an introduction and conclusion
  • Support main points with an explanation and then an example
  • Use cohesive linking words accurately and appropriately
  • Vary your linking phrases using synonyms
Lexical Resource: 5.0
  • Try to vary your vocabulary using accurate synonyms
  • Use less common question specific words that accurately convey meaning
  • Check your work for spelling and word formation mistakes
Grammatical Range: 6.5
  • Use a variety of complex and simple sentences
  • Check your writing for errors
Task Achievement: 6.0
  • Answer all parts of the question
  • ?
    Present relevant ideas
  • Fully explain these ideas
  • Support ideas with relevant, specific examples
Labels Descriptions
  • ?
    Currently is not available
  • Meet the criteria
  • Doesn't meet the criteria
Recent posts