Jump to content

Help with dhcp options


DVM

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

#!/bin/bash
# custom 

function setup() {
    # Show SETUP LED
    LED SETUP

    # Set the network mode to NAT
    NETMODE 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
    LED ATTACK
}

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

Thanks for the suggestion. I have read that and made another test:

dhcp.lan.dhcp_option='224,172.16.60.64' '42,172.16.60.64'

Now I see option 42 in the DHCP Ack message but not 224

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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