1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00
Commit Graph

1272 Commits

Author SHA1 Message Date
Santiago Alessandri
dbd2acc040 Added parsing of options to IP 2011-08-19 11:23:38 -03:00
Matias Fontanini
03aa49428c Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-19 10:13:57 -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
Santiago Alessandri
4fa5607fed Fixed merge conflics 2011-08-19 09:43:49 -03:00
Santiago Alessandri
33931365c7 Renamed some names from EthernetII PDU 2011-08-19 09:41:45 -03:00
Matias Fontanini
bb3ea10209 Fixed Makefile.in to link with libpcap. 2011-08-19 00:15:09 -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
Matias Fontanini
d6ae9d498d Added some arguments to ARP::ARP. 2011-08-18 15:43:53 -03:00
Matias Fontanini
23978343da Added arp spoofing example. 2011-08-18 12:29:15 -03:00
Matias Fontanini
c4bb187505 Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-18 11:04:40 -03:00
Matias Fontanini
9efee446f0 Added more DHCP options. 2011-08-18 11:04:22 -03:00
Santiago Alessandri
305a0a6b14 Added some getters and setter to ARP and refactored some methods 2011-08-18 10:58:20 -03:00
Santiago Alessandri
4532d8d236 Fixed IP PDU Options leaks. 2011-08-18 10:26:42 -03:00
Matias Fontanini
24e314283f Added some helper functions to set options to DHCP PDU. Added LGPL notice to dhcp.cpp 2011-08-17 16:20:02 -03:00
Matias Fontanini
4dfa4d70eb DHCP is working. Fixed ip checksum problem. 2011-08-17 15:12:29 -03:00
Matias Fontanini
729a0296ac Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-17 12:17:01 -03:00
Matias Fontanini
c49806603b Added DHCP class. It's now working yet. 2011-08-17 12:16:48 -03:00
Santiago Alessandri
00a34dc20d Fixed endianess in TCP PDU. Added getters and setters. Getters and Setters use little endian 2011-08-17 11:15:51 -03:00
Santiago Alessandri
54584d4cd7 Fixed endianess in ICMP PDU. Added getters and setters. Getters and setters use little endian 2011-08-17 10:42:16 -03:00
Santiago Alessandri
9a4c847e6b Fixed endianess in ARP PDU. Getters and Setters use little endian 2011-08-17 10:11:41 -03:00
Matias Fontanini
bdadcbb47d Added BootP class. 2011-08-17 10:10:36 -03:00
Santiago Alessandri
b844eb84c8 Fixed endianess in IP PDU. Getters and setters use little endian 2011-08-17 10:04:08 -03:00
Matias Fontanini
0d2b6a507b Documented all functions in header files. 2011-08-16 23:10:22 -03:00
Matias Fontanini
3feb2fdeae RawPDU now can copy the payload. Modified PDU::clone_inner_pdu to use this. 2011-08-16 21:11:42 -03:00
Matias Fontanini
e587d18796 Documented many header files. Done some minor code refactoring over PDU::clone_packet. 2011-08-16 20:53:55 -03:00
Matias Fontanini
9b897db21f Utils::resolve_hwaddr is not working. 2011-08-16 18:11:47 -03:00
Santiago Alessandri
9734510cbd Added BootP PDU header file. Still needs filling and implementation 2011-08-16 13:54:09 -03:00
Santiago Alessandri
d549585de5 Added BootP PDU header file. Still needs filling and implementation 2011-08-16 13:53:08 -03:00
Matias Fontanini
80705ac249 Fixed compilation issues. 2011-08-16 13:50:32 -03:00
Matias Fontanini
ee0b934b20 Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-16 13:49:03 -03:00
Matias Fontanini
0989027f3d Documented PacketSender. Added Utils::resolve_hwaddr, it's not working yet. 2011-08-16 13:48:49 -03:00
Santiago Alessandri
cb647d1642 Added wrappers to build ARP requests and replies. Defined BROADCAST in EthernetII 2011-08-16 13:21:25 -03:00
Matias Fontanini
7bf8bd6ee7 Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-16 12:50:36 -03:00
Matias Fontanini
37926f0b9f Fixed recv mechanism. Added timeout. 2011-08-16 12:12:43 -03:00
Santiago Alessandri
cef0b55b77 Removed uml class diagram 2011-08-16 10:44:42 -03:00
matias
a489eab8b9 Added PacketSender::recv_l2. Ethernet packets can now expect a response packet. ARP response is working now. 2011-08-16 00:36:59 -03:00
Santiago Alessandri
5b851a9142 Added getters and setters to ARP PDU 2011-08-15 20:51:06 -03:00
Santiago Alessandri
cc7f1f6761 Added license to some files. 2011-08-15 20:08:23 -03:00
Santiago Alessandri
49712c34be Removed Debug printing code 2011-08-15 19:18:07 -03:00
Santiago Alessandri
6e801011c2 Added enum to identify PDU type. ARP is being sent but not well implemented 2011-08-15 19:14:31 -03:00
Matias Fontanini
835229f104 Added ARP class. It's not working yet. 2011-08-15 18:17:28 -03:00
Santiago Alessandri
b76c9d0525 Working ethernet II PDU. Fixed bugs in IP and added checksum calculation. Added layer2 sending to PacketSender 2011-08-15 18:16:48 -03:00
Matias Fontanini
5c412208f9 Added recv mechanism on PacketSender. 2011-08-15 12:39:46 -03:00
Matias Fontanini
c803e25db4 Added Utils::interface_id. 2011-08-15 00:10:02 -03:00
Matias Fontanini
89b04a1238 Added util functions to handle network interfaces. Documented Utils namespace. 2011-08-14 15:50:57 -03:00
Matias
1215ae135c Added ICMP class. It was tested and it's working. 2011-08-14 11:17:38 -03:00
Matias
a49a88d636 Merge branch 'master' of ssh://git.code.sf.net/p/libtins/code 2011-08-13 17:22:16 -03:00
Matias
759139da3f Added RawPDU class. Removed payload member from TCP and UDP. They're not represented by RawPDUs. 2011-08-13 17:22:01 -03:00