Several Methods to disable IPC $

Source: Internet
Author: User

Some old friends asked this question. I will post an article.

Definition of IPC $: IPC $ is a resource that shares "named pipes" and is important for inter-program communication. Used to remotely manage computers and view shared resources of computers.
IPC $: Using IPC $, we can establish an empty connection with the target host (without the user name and password), and use this empty connection, the user list on the target host is displayed.

However, others will use this function to find our user list and use dictionary tools to attack our host.

Method 1:

If you want to disable the default share of % DriveLetter % $, you can

HKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanmanServerParameters
New name: AutoShareServer
Type: REG_DWORD
Value: 0

  
If you want to disable the default share of Admin $, you can
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanmanServerParameters
New name: autoscaling wks
Type: REG_DWORD
Value: 0


Method 2:

Create a delshare. bat file under drive C.
The content is as follows:
Net share c $/del
Net share d $/del
Net share admin $/del
Net share ipc $/del

All your drive letters are listed here. Similar format!

Modify the registry:
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun]
"Delshare" = "c: \ delshare. bat



Appendix:
IPC $ Common commands:

Net share ipc $ (Open IPC $)

Net share ipc $/del (delete IPC $)

Net share c = c: (default share of the drive c of the other party is enabled)

Net start telnet (enable the peer telnet Service)

Net user username/add (add user)

Net localgroup administrators username (improves user permissions)

Note that the preceding commands can be completed only in the SHELL of the other party !~ It is not enough to establish an IPC $ connection !~ Commands that can be used to obtain the permission of the other Party through IPC $ !~


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.