Skip to main content

All Questions

Tagged with
1 vote
1 answer
2k views

How raw sockets work?

Recently I developed a packet sniffer in python using socket module. In order to do that, I created a socket of type raw. Then I started receiving and parsing packets. My assumption was, by default, ...
Ssaf's user avatar
  • 25
2 votes
1 answer
2k views

How to search a raw disk for pattern and return its location?

How can one search a raw disk for a pattern and return its location? The disk is not formatted, or at least, it uses a format unknown to Linux, grep and similar tools would not be useful. A command ...
gsl's user avatar
  • 227