2

i have implemented a c program where raw packets are received from the network and saved in a binary file. Thing is i cant open that binary file. i tried opening it using terminal,but i am getting permission denied.

I used

sudo ./sniff_data.bin 

and its displaying

sudo: ./sniff_data.bin: command not found
Rinzwind
  • 309,379

1 Answers1

4

Regarding

sudo ./sniff_data.bin 

A bin file is NOT an executable. You need software that can open a BIN file to view the BIN file.

What you want is probably

sudo hexdump sniff_data.bin 

Another method:

sudo strings sniff_data.bin 

This will show all the text strings inside the file.


For graphical methods viewing binaries see: What are some good GUI binary viewers/editors?

Rinzwind
  • 309,379