• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

IP Ping of hosts (enumeration) when running as a proxy DHCP server

Scheduled Pinned Locked Moved
Feature Request
1
1
976
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Charles L. Athey III
    last edited by Mar 6, 2015, 12:57 AM

    When running fog as a proxy DHCP server, that is there is another DHCP server that is providing IP addresses, enumerating systems by IP fails on every machine. This is partly caused by the primary DHCP server not reserving IP addresses for specific MAC addresses.

    It is relatively easy to get the IP by doing the following, on ubuntu at least,

    • flush the arp cache
      for arpentry in arp | grep "eth3" | cut -d " " -f1 # Obviously, set the correct interface
      do
      arp -d $arpentry
      done
    • send a ping to the broadcast address
      ping -b -c1 -w1 255.255.255.255 > /dev/null 2>&1 # Could substitute broadcast for local LAN only
    • wait for the arp table to populate
      sleep 60 # Or whatever is reasonable for the speed of your systems

    The Feature Request I am making is to have a switch to have FOG do this before trying to enumerate the hosts. Along with doing this task I would like FOG to add the determined IP address to the DB. This would of course make it so the enumeration task would not have to be modified other than adding this functionality prior to doing the enumeration.

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post

    179

    Online

    12.0k

    Users

    17.3k

    Topics

    155.2k

    Posts
    Copyright © 2012-2024 FOG Project