Jump to content
UBot Underground

[Tutorial]Example Code-How to change HOSTNAME (CPU name) and restart computer via cmd line


Recommended Posts

and a bit more...

 

plugins used are all free use your favorite search engine--- site:ubotstudio.com "plugin name"

 

if you have them then you are in the know

 

Current CPU name

set(#HOSTNAME$trim($plugin function("Advanced Shell.dll""$shell batch hidden""HOSTNAME")), "Global")
 

New CPU Name that you want

set(#New_name"test123""Global")

 

This does the change.
set(#change cpu name$plugin function("Advanced Shell.dll""$shell batch hidden""WMIC computersystem where caption=\'{#HOSTNAME}\' rename {#New_name}"), "Global")

 

You need to reboot and this is how that is done.

There are few parameters you can use here (/r, /a, /t) etc. just use a space in between them.

 

 /s         Shutdown the computer.
 /r         Shutdown and restart the computer.
 /g         Shutdown and restart the computer. After the system is
            rebooted, restart any registered applications.
 /a         Abort a system shutdown.
            This can only be used during the time-out period.
 /p         Turn off the local computer with no time-out or warning.
            Can be used with /d and /f options.

 

 

 

and there are more

plugin command("Advanced Shell.dll""shell batch hidden""shutdown /r")
 

 

this will shut down in 5 seconds without a prompt as above and shut down all programs.

plugin command("Advanced Shell.dll""shell batch hidden""shutdown /t 5")

 

 

stop script

 

 

These two will show a list of parameters/switches/flags. Read them carefully and some need to be before others.

 

load html($plugin function("StringManagementPlugin.dll""$SMP NewLine To Br"$plugin function("Advanced Shell.dll""$shell batch hidden""WMIC /?")))
load html($plugin function("StringManagementPlugin.dll""$SMP NewLine To Br"$plugin function("Advanced Shell.dll""$shell batch hidden""SHUTDOWN /?")))

 

 

 

CD

  • Like 4
Link to post
Share on other sites

@uniquebot this script does not change the MAC address. It changes the computer name, The first set node gets the original so you can use that to change it back.

 

If you are referring to TMAC that is third party software and it doesn't change original MAC address, comes with restore button

 

 

@jamestar  many reasons to change your computer name, it's mostly for anonymity across multiple web services (Social Media) and many others...just a unique identifier that can be changed.

 

 

HTH,

TC

Link to post
Share on other sites
  • 10 months later...
  • 4 months later...

Hey TC, I understand why you retired, it's just too hard waiting for updates to U know what to stay ahead of the curve, lol but any anyways, I really need

some help with this example, I'm trying to generate organic traffic and need to spoof all matrix, and could use a good explanation on what is happening in

this example. If you don't have time, then it sound like a new donation is in order (I need this!). Let me know.

  • Like 1
Link to post
Share on other sites
  • 5 months later...

@uniquebot this script does not change the MAC address. It changes the computer name, The first set node gets the original so you can use that to change it back.

 

If you are referring to TMAC that is third party software and it doesn't change original MAC address, comes with restore button

 

 

@jamestar  many reasons to change your computer name, it's mostly for anonymity across multiple web services (Social Media) and many others...just a unique identifier that can be changed.

 

 

HTH,

TC

 

Thanks for this. Can sites see your PC name when uploading text/pic files?

  • Like 1
Link to post
Share on other sites
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...