当前位置: 首页 > news >正文

网站建设网络公司深圳抖音推广

网站建设网络公司,深圳抖音推广,网站线下服务中心建设方案,邓亚萍20亿做网站本文转自王子博客#xff1a;http://www.cnblogs.com/killbit/p/4355950.html 首先要感谢哥们对我的指点#xff0c;多谢。 当我们遇到类似情况下#xff0c;如何获取保存在MSSQL工具里的凭证呢#xff1f; //如果对方连接地址后面加了IP\sqlexpress 连接的时候你也记得加上… 本文转自王子博客http://www.cnblogs.com/killbit/p/4355950.html 首先要感谢哥们对我的指点多谢。 当我们遇到类似情况下如何获取保存在MSSQL工具里的凭证呢  //如果对方连接地址后面加了IP\sqlexpress 连接的时候你也记得加上不然即使密码正确也会说登录失败。   通过和哥们讨论研究分析以及查找资料知道了密码存放的地方 C:\Users\Administrator\AppData\Roaming\Microsoft\Microsoft SQL Server\90\Tools\ShellSEM\mru.dat (当前MSSQL 连接工具为2005) 我们通过C32来查看MRU.DAT会发现一串BASE64编码   这个就是我们的保存的凭证但是并不是直接还原BASE64就可以了需要DECODE后还需要DPAPI来进行解密   代码如下   // Encode.cpp : 定义控制台应用程序的入口点。 // #include stdafx.h #include Windows.h #include stdio.h #include iostream #include cstdlib #include stdio.h #pragma comment(lib, crypt32.lib) using namespace std;int Base64Decoder(char *input, unsigned char *output) {char base64string[]ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/;BYTE dataBuffer[4];BYTE outputBuffer[3];BYTE finalBuffer[1000];int count0;int padCount0;int length;length strlen(input);//Validate the data for BASE64if( length % 4 ){printf(%s - Invalid base64 data is supplied %s (%d) , input, length);return 0;}//count the no of paddingif (input[length-1] )padCount;if (input[length-2] )padCount;// Process 4 chars in each loop to produce 3 charsfor (int i0; i length; i 4){// Populate data buffer with position of Base64 characters for// next 4 bytes from encoded datafor (int j0; j 4 (i j length); j) dataBuffer[j] ( (int)strchr(base64string, input[ij]) - (int)base64string );//Decode data buffer back into bytesoutputBuffer[0] (dataBuffer[0] 2) ((dataBuffer[1] 0x30) 4);outputBuffer[1] ((dataBuffer[1] 0x0f) 4) ((dataBuffer[2] 0x3c) 2); outputBuffer[2] ((dataBuffer[2] 0x03) 6) dataBuffer[3];// Add all non-padded bytes in output buffer to decoded datafor (int k 0; k 3; k)finalBuffer[count]outputBuffer[k];}count count-padCount;//copy the decoded data into input buffermemcpy(output, finalBuffer, count);output[count]\0;printf(Base64 decoded string is [%s] (%d) , output, count);// std::cout 11111 std::endl;std::cout finalBuffer std::endl;return count; }int main(int argc,char** argv) {unsigned char output[1000] {0};//Base64Decoder(ZnVja3lvdQ,output);int iBase64Decoder(AQAAANCMnd8BFdERjHoAwE/ClsBAAAAfKVVCtCkz0SDfRfzGeyufQAAAAAQAAAARABlAGYAYQB1AGwAdAAAABBmAAAAAQAAIAAAAIDhFHSsCl9qoM1CbxlSVXqLXSDUuBs5sCx2hzytnkuAAAAAA6AAAAAAgAAIAAAAAdEQoQTYAeQGJYMsDfuOJdLHMGK4VtTu6SOzbla/TZFEAAAAACxb3rEQZjUHOpYTlkfwnhAAAAASc5uN4LAZ9A2IZadYsBRG87JhQjbWaQLY18FKf0fbyRlxIEQmxJm1FLBCep32aWY4qkPy1aELhj6IjnbCq/A,output);if (i 0){printf(Encode error\r\n);return -1;}DATA_BLOB DataPassword;DATA_BLOB DataOutput;DataPassword.cbData i;DataPassword.pbData output;if(CryptUnprotectData(DataPassword,0,0,0,0,CRYPTPROTECT_UI_FORBIDDEN,DataOutput)) //Crypt Mssql password{wcout Mssql credence Password Length: DataOutput.cbData \r\n; wcout Mssql credence Password: (wchar_t*)DataOutput.pbData; }else{wcout Error;     return -1;}return 0;}   还有一份C#是我哥们写的   using System; using System.Collections.Generic; //using System.Linq; using System.Text;namespace Mssql {class Program{static void Main(string[] args){Console.WriteLine(Encoding.Unicode.GetString(System.Security.Cryptography.ProtectedData.Unprotect(Convert.FromBase64String(AQAAANCMnd8BFdERjHoAwE/ClsBAAAAfKVVCtCkz0SDfRfzGeyufQAAAAAQAAAARABlAGYAYQB1AGwAdAAAABBmAAAAAQAAIAAAAIDhFHSsCl9qoM1CbxlSVXqLXSDUuBs5sCx2hzytnkuAAAAAA6AAAAAAgAAIAAAAAdEQoQTYAeQGJYMsDfuOJdLHMGK4VtTu6SOzbla/TZFEAAAAACxb3rEQZjUHOpYTlkfwnhAAAAASc5uN4LAZ9A2IZadYsBRG87JhQjbWaQLY18FKf0fbyRlxIEQmxJm1FLBCep32aWY4qkPy1aELhj6IjnbCq/A), null, System.Security.Cryptography.DataProtectionScope.LocalMachine)));}} }     还原后 VC     C#  转载于:https://www.cnblogs.com/dongchi/p/4491421.html
http://www.huolong8.cn/news/201484/

相关文章:

  • 毕业设计网站建设流程wordpress 支付宝 微信支付
  • 公众号自己做电影网站信息发布网站建设
  • 网站备案分为几种网站换空间 seo
  • 朝阳区网站建设君和外贸网站服务器推荐
  • 沈阳建站模板系统站酷网素材图库免费下载
  • 揭阳模板网站建站域名备案关闭网站吗
  • 福州短视频seo排行贵港网站seo
  • wordpress网站如何清理jswordpress error
  • 怎么用ftp备份网站wordpress 文章评论统计代码
  • html网站素材网会员管理系统单机免费
  • php多语言网站怎么做文广网站建设
  • 精品课程网站设计报告广州市城乡建设部网站首页
  • 做网站需要一些什么工具北京seowyhseo
  • 会议响应式网站开发国家公示企业信息查询官网
  • 网站制作模版小程序游戏制作平台
  • 厦门app开发网站开发公司电话网站建设哪个好一些
  • 凤阳做网站手机网站制作的公司
  • 祭祖网站怎么做苍强广州网站建设公司
  • 网站建设思路及设计方案wordpress 主题 h5
  • 营销型企业网站建设价格在线电子印章生成器
  • 网站空间怎么弄珠海公众号开发公司
  • 郑州上街网站建设公司企业网站如何做架构图
  • 网站建设数据库ER图怎么画wordpress侧栏登陆
  • 怎样自己做商场网站郴州必去三个景点
  • 揭阳做网站公司怎么做网站
  • 成都asp网站建设html5 响应式音乐网站
  • 公司做网站的意义关于网站建设的建议报告
  • 阿里云模板建站怎么样wordpress最近评论
  • 杭州网站建设q479185700棒有什么网站是可以做ui的
  • 做装修的网站品牌建设经费投入额怎么算