1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 19:51:34 +01:00
Commit Graph

51 Commits

Author SHA1 Message Date
Matias Fontanini
2dff95700f Updated copyright notice. 2014-07-13 11:04:29 -03:00
Matias Fontanini
22e7c1d7c4 Fixed error compilations on windows. 2014-07-02 19:02:48 -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
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
01b2a9c7b2 Modified some examples fixed some doxygen documentation. 2013-10-06 23:00:20 -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
ec8374be60 Split dot11.h and dot11.cpp into several files. 2013-05-31 22:16:56 -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
759e92706f Sniffer::sniff_loop now catches malformed_packet and pdu_not_found, when thrown by the functor argument. 2013-04-21 13:21:47 -03:00
Matias Fontanini
2ea952d6ab Added PDU::rfind_pdu. 2013-04-19 22:27:48 -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
931a86eff9 Done minor modification, mostly on documentation. 2013-01-29 16:18:08 -03:00
Matias Fontanini
c7c56a610c Done some -pedantic modifications. 2013-01-24 13:44:30 -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
b74a353c17 Added packet.h and timestamp.h to tins.h 2012-11-23 18:56:39 -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
Matias Fontanini
688be1e1da Fixed the try/catch block in BaseSniffer::sniff_loop. It now only catches std::runtime_errors. 2012-11-20 16:33:26 -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
7cbd32361a Modified some PacketSender and BaseSniffer functions to take references instead of pointers. 2012-09-11 08:51:25 -03:00
Matias Fontanini
10681eee8f Added documentation to PacketWriter. 2012-09-06 20:57:32 -03:00
Matias Fontanini
3d2cbf349a Added FileSniffer class. 2012-09-06 00:37:12 -03:00
Matias Fontanini
3cb6603151 Improved compile time using forward declarations and removing useless includes. 2012-09-05 11:59:46 -03:00
Matias Fontanini
6fd0c14b45 Fixed Sniffer::sniff_loop argument types. 2012-08-15 08:36:37 -03:00
Matias Fontanini
87e9c4051e Refactored Sniffer class and fixed some bugs in HWAddress. 2012-08-10 12:30:41 -03:00
Matias Fontanini
383deb8641 Modified header guards so they don't use reserved names containing double underscores. 2012-08-02 16:00:56 -03:00
Matias Fontanini
45f4370301 Sniffer now can't be copied. 2012-06-19 12:00:17 -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
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