|
|
|||||||
| Technical Stuff Help, tips and advice about all things technical. |
|
Welcome to the Uncover Reality Forum . You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. As a guest you are able to view thumbnails but you will need to register to view the full size images. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features, such as viewing the images posted on the site . Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Moderator
Join Date: May 2009
Location: In the Freezer with Your Dead EX
Posts: 3,447
|
This is a new venture for me & am wanting to make a macro to change my Mac address instead of going through 17 steps, clicks & scrolls. I already have have a batch file for ipconfig/release which is one of the 17 steps. It takes about 30 seconds to do this by hand but when you go through this time & time again it gets old real fast. I thought now is a good time to advance.
I've tried NetTools 5 & can't get it to go all the way through. It starts clicking in mid air where the last box was. I've also Googled help but nothing specific on how or what to do to make it. Like what steps, what to type, how to type it out etc. I am a loss & know hardly nothing about Macros. Your guidance would be Greatly appreciated. Thank You
__________________
Are your programs up to date? Check out this freebie * FileHippo Update Checker Quote:
|
|
|
|
|
|
|
#3 (permalink) | |
|
Moderator
Join Date: May 2009
Location: In the Freezer with Your Dead EX
Posts: 3,447
|
__________________
Are your programs up to date? Check out this freebie * FileHippo Update Checker Quote:
|
|
|
|
|
|
|
#4 (permalink) |
|
Freakin' Boob
Join Date: Dec 2008
Location: nz
Posts: 158
|
The macros i used to use/create were notorious 4 doing exactly what ur discovering so i really wouldn't recommend them 4 anything - pretty bloody useless. Unsure if things have improved 'recently' (gave up on them many years ago) but sounds like they haven't.
i'm not sure what to suggest to do it. How do u do it manually? (and why r u wanting to do it?) I used to do RAD programming (i.e.delphi) and would b tempted to use that if i couldn't find something free on the net or couldn't do it with something simple like (java) script (?). . . . i'm outa touch with any of this kinda stuff tho tbh for the last 5 or 6 years. let me know if u come up with something useful. also let me know how u do it manually and mayb i can come up with something to help |
|
|
|
|
|
#5 (permalink) |
|
Post Whore
Join Date: Nov 2008
Posts: 412
|
usage: cscript spoof.vbs <spoof address>
Code:
Const HIVE = &H80000002
Const networkSubKey = "NetworkAddress"
'Const newAddress = "000C41ADD697"
Dim regObj, arrSubKeys, str, subKeyPath, newAddress
'newAddress = InputBox("addr:", "Spoof MAC address")
If WScript.Arguments.Count = 0 Then
Wscript.Echo "usage: cscript spoof.vbs <spoof address>"
WScript.Quit
Else
newAddress = Wscript.Arguments.Item(0)
End If
Set regObj = GetObject("WinMgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
subKeyPath = "SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002bE10318}\0010"
Function RegistryKeyExists(LNGHKEY, strKey, subKey)
RegistryKeyExists = False
regObj.EnumValues LNGHKEY, strKey, arrSubKeys
If Not IsNull(arrSubKeys) Then
For Each str In arrSubKeys
If lcase(str) = lcase(subKey) Then
RegistryKeyExists = True
Exit Function
End If
Next
End If
End Function
If RegistryKeyExists(HIVE, subKeyPath, networkSubKey) = True Then
If (regObj.SetStringValue(HIVE, subKeyPath, networkSubKey, newAddress) <> 0) And (Err.Number <> 0) Then
Wscript.Echo "SetStringValue error: " & Err.Number
End If
Else
If (regObj.CreateKey(HIVE, subKeyPath) = 0) And (Err.Number = 0) Then
If (regObj.SetStringValue(HIVE, subKeyPath, networkSubKey, newAddress) <> 0) And (Err.Number <> 0) Then
Wscript.Echo "SetStringValue error: " & Err.Number
End If
Else
Wscript.Echo "CreateKey error: " & Err.Number
End If
End If
[edit] don't add "-", " ", or "." to the address [edit] the subkey 0010 of {4D36E972-E325-11CE-BFC1-08002bE10318} pertains to my Wireless-G notebook adapter. forgot to mention i was using my own stuff as an example. sorry about that.
__________________
"Blow it out your ass U pathetic piece of shit." -- blah2 Last edited by wormboy; July 3rd, 2009 at 01:19 AM.. |
|
|
|
|
|
#7 (permalink) |
|
Freakin' Boob
Join Date: Dec 2008
Location: nz
Posts: 158
|
good shit wormboy.
yes i'd assume the reason to b something similar. i thought there were freely available utilities to change the addresses tho' and ways of getting premium (or equivalent) accounts. use torrents myself so could b talking out a hole in my arse . . . |
|
|
|
|
|
#8 (permalink) | |
|
Moderator
Join Date: May 2009
Location: In the Freezer with Your Dead EX
Posts: 3,447
|
Yeah, it's for file hosting limits when I come across something large I want & it's on one of them. I've tried a number of those tools that are supposed to do the same thing & they all fail in different ways. For me at least. I've quit trying them even. Love to find one that works like it supposed to though. The last 9 mo or so I've gotten more into torrents.
__________________
Are your programs up to date? Check out this freebie * FileHippo Update Checker Quote:
|
|
|
|
|
|
|
#9 (permalink) |
|
Post Whore
Join Date: Nov 2008
Posts: 412
|
My dad had once tried to block my internet access when I was younger, but I fucking owned him using a similar technique.
I wasn't familiar with how these popular file hosting services operate. So, I did the research. Now I see where the user IP comes into the picture. This will change the IP: usage: cmd.exe cscript changemyip.vbs <computer name> <ip address> examples: cmd.exe cscript changemyip.vbs . 192.168.1.104 cmd.exe cscript changemyip.vbs wormboy 192.168.1.104 cmd.exe cscript changemyip.vbs "daves computer" 192.168.1.104 note: in the first example, a period(.) is used as the computer name, which means root, or local computer Code:
Dim subnetMask, matchValue, sql, arguments(2)
If Wscript.Arguments.Count <> 2 Then
Wscript.Quit
End If
arguments(0) = Wscript.Arguments.Item(0)
arguments(1) = Array(Wscript.Arguments.Item(1))
matchValue = "IPEnabled = TRUE"
subnetMask = Array("255.255.255.0")
sql = "Select * from Win32_NetworkAdapterConfiguration Where " & matchValue
Set objWMIService = GetObject("winmgmts:\\" & arguments(0) & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery(sql)
For Each objNetAdapter In colNetAdapters
objNetAdapter.EnableStatic(arguments(1), subnetMask)
Next
To change the IP of all network adapters that have TCP/IP bound and enabled, use: matchValue = "IPEnabled = TRUE" Or you might want to change the IP of a particular adapter, in which case you'd use: matchValue = "Description = 'Wireless-G Notebook Adapter'" Shoot back if you need any more info. Good luck.
__________________
"Blow it out your ass U pathetic piece of shit." -- blah2 |
|
|
|
![]() |
| Bookmarks |
| Tags |
| macro |
| Thread Tools | |
| Display Modes | |
|
|