Matias Fontanini
|
f5b0603799
|
CMake compilation now works on Windows.
|
2014-08-24 18:06:58 -03:00 |
|
Matias Fontanini
|
3ef85aae38
|
Added BaseSniffer::set_extract_raw_pdus.
|
2014-07-30 23:01:03 -03:00 |
|
Matias Fontanini
|
2dff95700f
|
Updated copyright notice.
|
2014-07-13 11:04:29 -03:00 |
|
Matias Fontanini
|
3d4f509a62
|
Added call to pcap_can_set_rfmon before calling pcap_set_rfmon.
|
2014-06-09 10:24:09 -03:00 |
|
Matias Fontanini
|
559c963d63
|
Fixed compilation errors on Windows.
|
2014-05-06 00:13:05 -03:00 |
|
Matias Fontanini
|
b2788fad63
|
Simplified error string generation on Sniffer::pcap_open_live_extended.
|
2014-05-05 08:32:45 -03:00 |
|
Kyle McDonald
|
5fe4ab0de8
|
added pcap_open_live_extended() shim to sniffer.cpp and set rfmon to true in beacon capture example
|
2014-05-03 12:48:35 -04:00 |
|
Matias Fontanini
|
cd2b9aab98
|
TCPStreamFollower now doesn't clear its state each time follow_streams is called.
|
2014-04-07 11:29:09 -03:00 |
|
Matias Fontanini
|
295ebb679c
|
Added 1000ms as the default read timeout used when calling pcap_open_live. Added BaseSniffer::set_timeout to modify this parameter.
|
2013-11-19 20:51:58 -03:00 |
|
Matias Fontanini
|
9962381fc7
|
Added the --disable-dot11 configure switch.
|
2013-11-09 14:41:08 -03:00 |
|
Matias Fontanini
|
b0868b5d60
|
Added another Sniffer constructor.
|
2013-10-21 23:31:07 -03:00 |
|
Matias Fontanini
|
bcfe26175a
|
BaseSniffer now uses pcap_loop instead of pcap_dispatch.
|
2013-09-24 08:59:46 -03:00 |
|
Matias Fontanini
|
9cbac6b044
|
BaseSniffer::next_packet now uses pcap_dispatch.
|
2013-09-23 22:55:18 -03:00 |
|
Matias Fontanini
|
1b4efc1520
|
Rolled the BaseSniffer changes since that was OK.
|
2013-09-20 12:37:21 -03:00 |
|
Matias Fontanini
|
96ecd054ab
|
Fixed issue with bpf_programs on BaseSniffer. Done some documentation changes.
|
2013-09-20 11:07:09 -03:00 |
|
Matias Fontanini
|
20f3911e12
|
BaseSniffer::sniff_loop now uses begin() and end() to process packets, making it around 8% faster. Also added BaseSniffer::link_type to retrieve the pcap handle link type.
|
2013-09-15 12:16:54 -03:00 |
|
Matias Fontanini
|
d393c1fbfc
|
Moved calls to pcap_loop and pcap_breakloop to sniffer.cpp.
|
2013-09-08 19:20:52 -03:00 |
|
Matias Fontanini
|
7d4222fb17
|
Added PPI PDU.
|
2013-09-05 00:49:11 -03:00 |
|
Matias Fontanini
|
21b80a7370
|
BaseSniffer is now iterable.
|
2013-07-24 23:32:33 -03:00 |
|
Matias Fontanini
|
fb8fb92ee6
|
BaseSniffer::next_packet now loops until either a valid packet is found or pcap_next fails.
|
2013-07-24 22:27:53 -03:00 |
|
Matias Fontanini
|
5197e7f5f1
|
Sniffer now differentiates between EthernetII and Dot3 when sniffing.
|
2013-04-23 22:55:32 -03:00 |
|
Matias Fontanini
|
5064a9255b
|
Fixed BSD notice. Updated AUTHORS file.
|
2013-04-23 20:33:00 -03:00 |
|
Matias Fontanini
|
0f2bc45059
|
Moved definitions inside TINS_IS_CXX11 into header files.
|
2013-04-23 13:04:57 -03:00 |
|
Matias Fontanini
|
91bdcca577
|
Dot11 now uses option_not_found. Sniffer catches malformed_packet rather than std::runtime_error while sniffing.
|
2013-04-19 14:06:59 -03:00 |
|
Bruno Nery
|
c6dc18d215
|
Added get_fd() to BaseSniffer.
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
|
2013-01-29 20:25:48 -03:00 |
|
Matias Fontanini
|
e712550cb8
|
Move constructors are now noexcept.
|
2013-01-20 00:22:21 -03:00 |
|
Matias Fontanini
|
02265061cc
|
Added SLL pseudo protocol header.
|
2013-01-16 00:05:28 -03:00 |
|
Matias Fontanini
|
75a4bbfed6
|
Added Timestamp conversion to std::chrono::microseconds. BaseSniffer is now movable.
|
2012-11-23 20:30:16 -03:00 |
|
Matias Fontanini
|
492fd611f9
|
Added Packet and some wrapper packet classes. Modified the return value of BaseSniffer::next_packet.
|
2012-11-23 18:10:51 -03:00 |
|
Matias Fontanini
|
bf6c086b3d
|
Added BaseSniffer::timestamp method.
|
2012-11-21 13:33:28 -03:00 |
|
Bruno Nery
|
28e5df3abc
|
Fixed BaseSniffer::next_packet() to return when error occurred. Updated its documentation.
Signed-off-by: Matias Fontanini <matias.fontanini@gmail.com>
|
2012-11-20 16:30:34 -03:00 |
|
Matias Fontanini
|
3139020df2
|
Done some fixes on Sniffer and Dot11Data.
|
2012-10-10 21:06:06 -03:00 |
|
Matias Fontanini
|
1c22dab2dc
|
libtins now uses a BSD license.
|
2012-10-07 20:33:45 -03:00 |
|
Matias Fontanini
|
153bcecc35
|
Removed the useless PDU::flag member. Added a PDU concatenation operator.
|
2012-10-07 18:51:06 -03:00 |
|
Matias Fontanini
|
3d2cbf349a
|
Added FileSniffer class.
|
2012-09-06 00:37:12 -03:00 |
|
Matias Fontanini
|
87e9c4051e
|
Refactored Sniffer class and fixed some bugs in HWAddress.
|
2012-08-10 12:30:41 -03:00 |
|
Matias Fontanini
|
333ec76fea
|
Added promisc flag on Sniffer to start the put interfaces into promiscuous mode.
|
2012-03-19 17:17:13 -03:00 |
|
Matias Fontanini
|
e9484209fc
|
Added timeout to Sniffer class.
|
2012-03-12 09:47:30 -03:00 |
|
Matias Fontanini
|
201d4b5daf
|
Modified Sniffer sniffing methods signature.
|
2011-09-07 09:51:51 -03:00 |
|
Matias Fontanini
|
ec380a5946
|
Fixed bug in Sniffer::next_packet.
|
2011-08-27 18:08:11 -03:00 |
|
Matias Fontanini
|
69d9bea655
|
Removed debug messages.
|
2011-08-25 00:36:44 -03:00 |
|
Matias Fontanini
|
b746451b75
|
Sniffing now returns a RadioTap PDU when performed on wireless interfaces.
|
2011-08-23 23:58:59 -03:00 |
|
Matias Fontanini
|
31358eca46
|
Done minor modifications over Sniffer.
|
2011-08-19 20:13:08 -03:00 |
|
Matias Fontanini
|
3e2168f6fc
|
Added DHCP and BootP constructors from uint8_t buffer. Normalized IP destination and source address getters/setters.
|
2011-08-19 10:13:35 -03:00 |
|
Matias Fontanini
|
3a751848a8
|
Added a portscan example. It's kind of nasty, but works.
|
2011-08-19 00:07:41 -03:00 |
|
Matias Fontanini
|
a690f0db98
|
Sniffer::sniff_loop now stops sniffing when handler return false.
|
2011-08-18 20:50:12 -03:00 |
|
Matias Fontanini
|
18750fe18a
|
Added Sniffer class. Added a constructor to eery PDU subclass which creates an instance of the PDU from a byte array.
|
2011-08-18 20:36:55 -03:00 |
|