Skip to content

This may help #3

@SleepProgger

Description

@SleepProgger

First of all it is a great idea.
But as far as i see there is a problem with your approach.

The BOOT format ( http://www.tcpipguide.com/free/t_BOOTPMessageFormat.htm ) which dhcp uses requires an xid flag (4 byte) which is used as a kind of session id.
This means the best way to send dhcp-acks (or dhcp-offers) to the client (and get them accepted), is to wait till the client send an discover or request packet, and answer with the given xid,

Here a little dirty poc. You have to adjust the hard coded parameter.
You need to bee lucky, or assure the system running this script answers faster as the dhcpd.
https://gist.github.com/SleepProgger/53af448ffd77015ae5ea

I will definitely stick with this for some time now. Thank you for awaking my interest in scapy :), and sorry for spamming your issues (github need pms again)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions