Doing so will show you the name of the session you have. To access that session type :. As we know, wmic can execute any file or script remotely, so we will link an hta file within the XSL code. An XSL file will contain a link, to download and execute a malicious hta file via mshta. Now again we need to execute XSL file through wmic. Once the above command is executed you will have a session open. To access the session, type:. Contact here. Skip to content Hacking Articles.
Home » Red Teaming » Windows Exploitation: wmic ». Red Teaming. January 23, by Raj Chandel. Table of Content Introduction to Wmic. We can get the information about the Hard Disk Partitions using the logicaldisk alias.
From given below image you can read the description of the disk along with filesystem i. NTFS and available free space and many more details as per your requirement. We can get the information about the Memory Cache using Memcache alias.
We can get the name, block size, purpose and much more all using this command. From given below image you can observe here it is showing details of two cache memory.
We can get the information about the RAM using the memorychip alias. Here from given below image if you will observe the highlighted text when you see it showing VMware in the description. We can restrict a local user from using its account by using useraccount alias, here we are going to lock a User Account.
We can rename a local user by using useraccount alias. We can restrict a local user from changing its password by using useraccount alias. Wmic can be used to delete system logs using the nteventlog alias. It is a very simple command where we mention the name of the log and then using an option nteventlog and clear the log file.
It can be an effective command while cleaning up after hacking any system. The means that only messages sent to a channel will be caught. The if statement should be familiar from the alias created earlier. The kick command kicks a given user from the specified channel with an optional Kick message.
This example kicks the user from the channel, with the reason, "Bad phrase detected! Now try it out! Note that the on TEXT event will not trigger when you say something, so you will need to use another client or get a friend to help you test the script. Anybody caught saying words on the bad word list will be kick-banned from the channel.
Further information about scripting can be found in the mIRC help system. This is extremely detailed. Previous page. Table of content. Next page. Figure The list of bad words Save the bad words list and return to mIRC. The script is explained step-by-step: 4. Authors: Paul Mutton. Learn Advanced Internet Relay Chat.
0コメント