예제 #1
0
파일: UPnP.cs 프로젝트: nhz2f/xRAT
 public static void RemovePort(ushort port)
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
             portMap.Remove(port, "TCP");
     }
     catch
     { }
 }
예제 #2
0
파일: UPnP.cs 프로젝트: zzhacked/xRAT
 public static void RemovePort(ushort port)
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
         {
             portMap.Remove(port, "TCP");
         }
     }
     catch
     { }
 }
예제 #3
0
파일: UPnP.cs 프로젝트: werkamsus/xRAT
 public static void RemovePort()
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
         {
             portMap.Remove(Port, "TCP");
         }
         IsPortForwarded = false;
     }
     catch
     {
     }
 }
예제 #4
0
파일: UPnP.cs 프로젝트: he0x/xRAT
 public static void RemovePort()
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
             portMap.Remove(Port, "TCP");
         IsPortForwarded = false;
     }
     catch
     {
     }
 }
예제 #5
0
        public static void Remove(int eport, ProtocolType type)
        {
            var mapping = new UPnPNAT().StaticPortMappingCollection;

            mapping.Remove(eport, type.ToString().ToUpper());
        }