Uncover Reality Forum
 

Go Back   Uncover Reality Forum > General > Technical Stuff

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.
Reply
 
Thread Tools Display Modes
Old July 2nd, 2009, 12:53 AM   #1 (permalink)
Moderator
 
Curdled_Pus's Avatar
 
Join Date: May 2009
Location: In the Freezer with Your Dead EX
Posts: 3,253
Post Macro help

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
__________________
Quote:
Originally Posted by Lass From Oz View Post
We all started off somewhere. Stupid people don't ask questions. Asking questions makes you smart!
PC Questions or Problems? Ask anything Small or Big http://forum.uncoverreality.com/tech...r-support.html or http://forum.uncoverreality.com/technical-stuff/
Have You Talked to Your Kids About Their Jenkem Today?
Curdled_Pus is offline   Reply With Quote
Old July 2nd, 2009, 01:00 AM   #2 (permalink)
Freakin' Boob
 
mark_E's Avatar
 
Join Date: Dec 2008
Location: nz
Posts: 144
don't do anything with a macro
mark_E is offline   Reply With Quote
Old July 2nd, 2009, 03:08 AM   #3 (permalink)
Moderator
 
Curdled_Pus's Avatar
 
Join Date: May 2009
Location: In the Freezer with Your Dead EX
Posts: 3,253
Post

Quote:
Originally Posted by mark_E View Post
don't do anything with a macro
Any suggestions then? And why?
__________________
Quote:
Originally Posted by Lass From Oz View Post
We all started off somewhere. Stupid people don't ask questions. Asking questions makes you smart!
PC Questions or Problems? Ask anything Small or Big http://forum.uncoverreality.com/tech...r-support.html or http://forum.uncoverreality.com/technical-stuff/
Have You Talked to Your Kids About Their Jenkem Today?
Curdled_Pus is offline   Reply With Quote
Old July 2nd, 2009, 03:32 PM   #4 (permalink)
Freakin' Boob
 
mark_E's Avatar
 
Join Date: Dec 2008
Location: nz
Posts: 144
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
mark_E is offline   Reply With Quote
Old July 2nd, 2009, 10:54 PM   #5 (permalink)
Post Whore
 
wormboy's Avatar
 
Join Date: Nov 2008
Posts: 410
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
take note of subKeyPath variable

[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..
wormboy is offline   Reply With Quote
Old July 3rd, 2009, 01:34 AM   #6 (permalink)
Post Whore
 
wormboy's Avatar
 
Join Date: Nov 2008
Posts: 410
Quote:
Originally Posted by mark_E View Post
... and why r u wanting to do it?
I was wondering why, too. I think it has to do with some limitation concerning a file hosting service.
__________________
"Blow it out your ass U pathetic piece of shit." -- blah2
wormboy is offline   Reply With Quote
Old July 3rd, 2009, 01:57 AM   #7 (permalink)
Freakin' Boob
 
mark_E's Avatar
 
Join Date: Dec 2008
Location: nz
Posts: 144
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 . . .
mark_E is offline   Reply With Quote
Old July 3rd, 2009, 02:48 AM   #8 (permalink)
Moderator
 
Curdled_Pus's Avatar
 
Join Date: May 2009
Location: In the Freezer with Your Dead EX
Posts: 3,253
Post

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.
__________________
Quote:
Originally Posted by Lass From Oz View Post
We all started off somewhere. Stupid people don't ask questions. Asking questions makes you smart!
PC Questions or Problems? Ask anything Small or Big http://forum.uncoverreality.com/tech...r-support.html or http://forum.uncoverreality.com/technical-stuff/
Have You Talked to Your Kids About Their Jenkem Today?
Curdled_Pus is offline   Reply With Quote
Old July 3rd, 2009, 08:23 AM   #9 (permalink)
Post Whore
 
wormboy's Avatar
 
Join Date: Nov 2008
Posts: 410
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
I highlighted the stuff you might want to change.

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
wormboy is offline   Reply With Quote
Old July 3rd, 2009, 08:28 AM   #10 (permalink)
That's what she said...
 
Dixie Normous's Avatar
 
Join Date: Oct 2008
Posts: 1,082
^^ i agree...
Dixie Normous is offline   Reply With Quote
Old July 3rd, 2009, 08:54 AM   #11 (permalink)
Post Whore
 
wormboy's Avatar
 
Join Date: Nov 2008
Posts: 410
and if that doesn't work, there are always ferrets.
__________________
"Blow it out your ass U pathetic piece of shit." -- blah2
wormboy is offline   Reply With Quote
Reply

Bookmarks

Tags
macro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


Visit Recoveryandsupport.com

All times are GMT -4. The time now is 12:49 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.