Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Bug in ip_tos.c use of libnet_build_ethernet() |
|---|---|
| Date: | Fri, 22 Oct 2004 14:25:12 -0400 |
As I struggled with libnet_build_ethernet(), I found that it's used incorrectly
in sample/ip_tos.c. That file includes:
char *hwdst = "22:22:22:22:22:22" ...;
...
eth_ptag = libnet_build_ethernet(
hwdst,
...);
but the first two arguments to libnet_build_ethernet() aren't strings, they are
arrays of 6 bytes. The above code leads to a packet that has a destination MAC
address of 32:32:3a:32:32:3a because '2' is 0x32 and ':' is 0x3a and
libnet_build_ethernet() looks at the first 6 bytes ( "22:22:") and treats them
as uint8_t, not characters.
Is there somewhere I can log this error besides this mailing list?
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | tcp reassembly for multiple connections simultaneously help needed, muhammad alqama |
|---|---|
| Next by Date: | igmp_host program, cnelson |
| Previous by Thread: | tcp reassembly for multiple connections simultaneously help needed, muhammad alqama |
| Next by Thread: | igmp_host program, cnelson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |