Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP ciaddr unable to set to 0 for DHCPDECLINE #83

Open
soxrok2212 opened this issue Sep 14, 2023 · 1 comment
Open

DHCP ciaddr unable to set to 0 for DHCPDECLINE #83

soxrok2212 opened this issue Sep 14, 2023 · 1 comment

Comments

@soxrok2212
Copy link

According to RFC 2131 page 36, DHCP ciaddr should be set to the client's MAC address in the case of a DHCPRELEASE message. However, for a DHCPDECLINE, it should be set to 0. However, the parser requires it be set to an IP address.

https://github.com/tomac/yersinia/blob/master/src/dhcp.h#L269-L270

@soxrok2212
Copy link
Author

This can be reproduced on the CLI with the -ci arg, e.g.
yersinia dhcp -source xx:xx:xx:xx:xx:xx -interface eth0 -attack 0 -dest yy:yy:yy:yy:yy:yy -htype 1 -hlen 6 -hops 0 -xid 12345678 -ch xx:xx:xx:xx:xx:xx -ci 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant