2013年10月20日
摘要: I found this feature while looking inside Graphics class and since it was so simple to use, I decided to post it here.As I said, it doesn't require more than 15 lines of code - this function: Graphics.CopyFromScreen does all the 'hard work' so we only need to put this into a Bitmap and s 阅读全文
posted @ 2013-10-20 09:43 武胜-阿伟 阅读(511) 评论(0) 推荐(0)
摘要: Finding a way to encrypt messages in C# and decrypting them in PHP or vice versa seems to be a "challenge" for many users. I wrote this tutorial to provide some help with this: below, you can find how to encrypt / decrypt messages in C# / PHP using AES256 with CBC mode.1.Basic InformationA 阅读全文
posted @ 2013-10-20 09:41 武胜-阿伟 阅读(1734) 评论(0) 推荐(0)
摘要: In this short article, I'll show you how to send data to a website from a C# application using GET or POST method. The tutorial also includes how to receive data from a website, by getting the page's source - so it's a neat way to check if the everything is working as intended.1. GET Met 阅读全文
posted @ 2013-10-20 09:40 武胜-阿伟 阅读(478) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net.Mail;using System.Net;namespace smtp_client{ class Program { static void Main (string[] args) { MailAddress myemail = new MailAddress("me@gmail.com", "Name"); MailAddress mail_to = 阅读全文
posted @ 2013-10-20 09:39 武胜-阿伟 阅读(299) 评论(0) 推荐(0)
摘要: Assembly myassembly = Assembly.LoadFrom("testdll.dll"); Type type = myassembly.GetType("testdll.Class1"); object instance = Activator.Createinstance(type); MethodInfo[] methods = type.GetMethods(); object res = methods[0].Invoke(instance, new object[] {5, 3}); 阅读全文
posted @ 2013-10-20 09:36 武胜-阿伟 阅读(207) 评论(0) 推荐(0)
摘要: Today's tutorial is about...processes' memory! In this article I'll show you how to read/write a process' memory using C#. This is a good way to learn a part of WinAPI and also understand the basics of memory allocation. Before starting, we need a "target" - I choose notepa 阅读全文
posted @ 2013-10-20 09:31 武胜-阿伟 阅读(1020) 评论(0) 推荐(0)
摘要: If the Text property is called, it will send an WM_GETTEXT message, so it will surely be an internal (safe) call. But if that message is received and the Text property wasn't called, then it might be risky to return the password, so we'll not process that message.I wrote a "safer" 阅读全文
posted @ 2013-10-20 09:27 武胜-阿伟 阅读(395) 评论(0) 推荐(0)