SoulA Posted June 30, 2008 Posted June 30, 2008 (edited) Update 10/16/2008Since this topic/program was brought back up for a while after being dead and I saw some of this code today which basically did the same thing mine did except better I decided to update my program. I used a lot of the functions posted by tm2148b in this postCode is still sloppy and bad for the most part it is just less so now.NOTE: I just noticed some of my network adapters disable with this and some do not. Not sure why it works sometimes and not others as wraithdu pointed out. Manually disabling and renabling your adapter should still change your MAC address however. Update 10/16/2008Small script I wrote to easily "spoof" a computer's MAC (media access control) address.My code for disabling and enabling the NIC cards on a xp machine was taken from Svenp who posted the code here so thanks to him. I am a novice at both programming and autoit so the code is probably terribly sloppy but I decided to show it off anyway for any comments suggestions improvements etc.MACDistro_v1.3.au3 Edited July 6, 2009 by SoulA
Ibrahim Posted June 30, 2008 Posted June 30, 2008 Truely nice work I needed it Keep up the good work and beware not to become a spammer like me [font="Arial Black"]My Stuff[/font]UPnP Port Forwarding Final.GateWay InformationThe GateWay Watcher(detect speeofing)Rightclick Any file --->Hide/UnhideThe Tip WatcherA PanelShare WatcherThe Arp WatcherThe Online License Checker
NELyon Posted July 1, 2008 Posted July 1, 2008 Truely nice work I needed it Keep up the good work and beware not to become a spammer like me Seriously, does anyone read the forum information?"Spammer" is the user tag that is defaulted to everyone with over 250 posts. Once you hit 300 (or something like that) you can make it whatever you want.
wraithdu Posted October 15, 2008 Posted October 15, 2008 Quick note on this. The .Disable method does not work on Vista (at least not on my laptop). Can anyone confirm it actually disables a network adapter? Example code - $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}") $netAdapterSet = $objWMIService.ExecQuery("select * from Win32_NetworkAdapter where Name like '%Wireless%'") For $Adapter In $netAdapterSet ConsoleWrite($Adapter.Name & @CRLF) ConsoleWrite($Adapter.Disable & @CRLF) Next The .Enable method works correctly to re-enable the adapter.
SoulA Posted October 15, 2008 Author Posted October 15, 2008 Just tested this again and it disabled my wireless net adapter. I'm running vista ultimate x64 if that makes a difference. Note that method only works on vista. To disable on XP different methods need to be taken to enable/disable net adapters.
jvanegmond Posted October 15, 2008 Posted October 15, 2008 lol internet sarcasm or no?No, honestly. This is good and has many uses. Thanks for the code! github.com/jvanegmond
wraithdu Posted October 16, 2008 Posted October 16, 2008 Hmm, darn. I've got Vista SP1 Ultimate 32-bit and the .Disable method does not work. I have UAC turned off, wonder if that makes a difference?
SoulA Posted October 16, 2008 Author Posted October 16, 2008 I have UAC turned off too seems kinda wierd I don't know why its not working.
wraithdu Posted October 16, 2008 Posted October 16, 2008 Me either. This morning I tried the same thing in PowerShell, VBScript, and VB .NET. None of them work. So somehow the .Disable method is broken on my system. Could be cause it's a laptop, could be the drivers I have installed, who knows. Googling was no help either. Oh well. The XP method works still.
SoulA Posted October 16, 2008 Author Posted October 16, 2008 If anyone else has this problem please let me know I am interested to see how many this affects.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now