摘要: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using UsbEject; namespace USBDevice { public class RemoveUsbDevice { public ... 阅读全文
posted @ 2019-02-01 15:43 Shen_小沈 阅读(975) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Org.BouncyCastle.Math; using Org.BouncyCastle.Math.EC; usi 阅读全文
posted @ 2019-02-01 15:31 Shen_小沈 阅读(4637) 评论(0) 推荐(0) 编辑
摘要: ///下载 ipseccmd.exe //禁止 xp 连接 public static void BannedXPRunCmd() { string str = Console.ReadLine(); Process p = new Process(); p.StartInfo.F... 阅读全文
posted @ 2016-10-28 15:01 Shen_小沈 阅读(1502) 评论(0) 推荐(0) 编辑
摘要: //禁止 win7 连接 public static void BannedWINRunCmd() { string str = Console.ReadLine(); System.Diagnostics.Process p = new System.Diagnostics.Process(); ... 阅读全文
posted @ 2016-10-28 14:59 Shen_小沈 阅读(3874) 评论(0) 推荐(0) 编辑
摘要: using (DirectoryEntry comp = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer")) { int AccountCount = 0; foreach (Direct... 阅读全文
posted @ 2016-05-13 14:00 Shen_小沈 阅读(498) 评论(0) 推荐(0) 编辑
摘要: //开启服务、开启防火墙 public void OpenFileWall() { // 1. 判断当前系统为XP或Win7 RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"Software\\Microsoft\\Windows NT\\Current... 阅读全文
posted @ 2016-05-13 13:51 Shen_小沈 阅读(6231) 评论(0) 推荐(0) 编辑