珂珂的个人博客 - 一个程序猿的个人网站

最新发布

[未分类]

jUploader上传

admin 阅读(2694) 评论(0)

<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jUploader上传</title> <script src="http://static.kecq.com/js/jquery-1.8.1.min.js" typ [...]   阅读全文

[未分类]

asp.net 4.0 RequestValidator 脚本攻击

admin 阅读(2194) 评论(0)

为了防止sql攻击,asp.net有一个危险字符验证,可是我们在使用编辑器时却需要插入特殊字符。在2.0 中页面中加个 ValidateRequest=“false” 就可以了 但是在4.0 中 还需要改配置文件,在4.0 中,我们可以配置web.config < httpRuntime maxRequestLength="2097151000" executionTimeout="30000000" requestValidationType="FYJ.Web.CustomRequestValidator,FYJ.Web" /> using System; us [...]   阅读全文

[未分类]

asp.net安全问题

admin 阅读(2401) 评论(0)

1 URL SQL INJECTION 通过url参数 sql注入,还是通过Request[""] 过滤下吧, 2 回复的问题,应该要过滤掉html 要是别人随便填上一段script 这样的话。。。 3 文件上传的问题,禁用掉这个目录的执行权限,不然人家上传一个aspx....具体做法是在该目录加一个web.config <?xml version="1.0" encoding="utf-8"?> < configuration> <system.web> </system.web> < [...]   阅读全文

[未分类]

windows 7 任务栏控制

admin 阅读(2145) 评论(0)

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Windows7.DesktopIntegration; namespace Windows7Test { public partial class Form1 : Form { [...]   阅读全文

[未分类]

discuz插入帖子和用户数据

admin 阅读(2286) 评论(0)

由于不懂php...所以网上搜索了下它的数据表结构,只能找到部分说明,也只插入了部分数据,经测试可以正常显示了。 由于这个就几张表,所以没必要再用什么orm框架了吧,直接sql语句。。。有2个属性类就不发出来了。。一看就明白 #region 发布主题帖子 public int InsertThread(string mysqlConnectionString, string pre, int fid, string author, int authorid, string subject, string message, string useip) [...]   阅读全文

[未分类]

正则表达式测试工具

admin 阅读(2613) 评论(0)

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Text.RegularExpressions; using System.Threading; using System.IO; using MyHelper.TextHelper; [...]   阅读全文

[未分类]

菜单克隆

admin 阅读(2705) 评论(0)

using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Reflection; using System.ComponentModel; namespace WinFormLib { public class MenuClone { //使用例子 //private void Form1_Load(object sender, EventArgs e) [...]   阅读全文

[未分类]

jsp、php、aspx同时使用80端口

admin 阅读(2063) 评论(0)

好吧,玩了个通宵 为了jsp php asp.net 一台机器单IP(貌似我用的路由器不支持映射同一个端口到多个内网IP)共用一个80端口 算是基本搞定了。系统环境windows 7 sp1 64位 iis7.5,tomcat7.......asp.net 与php是很简单的,安装PHPManagerForIIS这个就行。然后搜索了下nginx-1.0.9配置php也成功了,然后开始纠结asp.net与jsp整合,查到个isapi_redirector2.dll这东西,转发tomcat iis什么的,反正配了半天没出来,后来用naginx反向代理jsp成功了,但是不想naginx占用80端口 [...]   阅读全文

[未分类]

c#调用迅雷下载引擎

admin 阅读(2042) 评论(0)

usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Linq; usingSystem.Text; usingSystem.Windows.Forms; usingSystem.Runtime.InteropServices; usingSystem.Threading; namespacewinformUpload { publicpartialclassDownloadB [...]   阅读全文