Hi epvpers,
hab einen Ipchanger gefunden und wollte mal selber einen "nachbauen". Aber da ich das scipt nicht ganz verstehe bringt mir das nciht viel, also frage ich mal hier.
Was macht dieses Stück script?:
PHP Code:
$base = "HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}"
While 1
$i += 1
$key = RegEnumKey($base, $i)
If @error Then
ExitLoop
$name = RegRead($base & "\" & $key & "\Connection", "Name")
If StringLeft($key, 1) = "{" Then
$lan &= $name & "|"
endif
endif
WEnd
$lan = StringSplit(StringTrimRight($lan, 1), '|')
For $x = 1 To $lan[0]
Run(@ComSpec & " /c " & 'netsh interface set interface name="' & $lan[$x] &'" newname="ONO"', "", @SW_HIDE)
Next
Und was macht das?:
PHP Code:
Run(@ComSpec & " /c " & 'ipconfig /release', "", @SW_HIDE)
RunWait(@ComSpec & " /c " & 'netsh interface ip set address name="ONO" source=static 189.1.1.1 255.255.255.0 189.1.1.1 1', "", @SW_HIDE)
Hoffe ihr könnt mir darüber was erzählen
MfG Ludder231