Jump to content

DHCP Renew and Release question.


lgvlgv
 Share

Recommended Posts

Im looking for a script that can

1. send a "FAKE (the server would have a static ip)" DHCP request broadcast

2. then send a release.

The reason i would want to do this would be to see if there are adresses availeble. The DHCP servers could be my own as well as OTHER ISP providers,,,

Is it possible to make a fake request and then pic it up in autoIT?

Anyone have any idea how to approch that?

//Regards Lasse

PS.

it could also be dangerus if some one fake the MAC addresses and pick up every availeble addresses in the scope..

maybe its a stupid approtch

Edited by lgvlgv
Link to comment
Share on other sites

There's a good chance you'll get the same ip "depending on the dhcp server" but you'll also effectively reduce the ip pool by one for the duration of lease time (if not longer) even if you don't use it.

Looking at the DHCP process as explained on the wikipedia article it may be possible to send a discovery request and listen for a DHCP offer but not continue the process (request, retrieve ack), but I don't know how to script it myself.

If you come up with something i'd be interested in seeing it.

Link to comment
Share on other sites

Don't know if this is what you were looking for, but thought I would post and see if you can use it.

http://serverfault.com/questions/23724/any-way-to-find-unused-ip-addresses-on-my-network

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

A few years back I needed to get a new IP for some reason.

The only way which worked (with my ISP at least) was to change/spoof my NIC

MAC address with (smac I think it was), leave my modem off for a few hours (or until lease expired) and reconnect.

It never worked first time, but it did the second.

probably does not help you though.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

thx for the replys, think i found something interesting in this threed

just have to figure out all the right values in the broadcasts..

it working good for me to see request and server reply, just need to figure out the hole communication between server and client.

//Thx all

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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