Jump to content

Help with dhcp options


Recommended Posts

I'm trying to setup a NAT with a DHCP server on the LAN side that will deliver a custom custom DHCP option to my victim. I have tried adding the dhcp_option list to dnsmasq

# custom 

function setup() {
    # Show SETUP LED

    # Set the network mode to NAT
    sleep 5

    uci add_list dhcp.@dnsmasq[-1].dhcp_option='224,"my_payload_string"'

    # Restart dnsmasq with the new configuration
    /etc/init.d/dnsmasq restart	

function run() {
    # Show  ATTACK LED

or replacing dnsmasq with lan

    #uci add_list dhcp.@dnsmasq[-1].dhcp_option='224,"my_payload_string"'
    uci add_list dhcp.lan.dhcp_option='224,"my_payload_string"'

Neither approach works as I don't see option 224 in the DHCP Ack

Can anyone help?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...