自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

转载 curl 参数

-a/--append 上传文件时,附加到目标文件-A/--user-agent string> 设置用户代理发送给服务器    -anyauth 可以使用“任何”身份验证方法-b/--cookie name=string/file> cookie字符串或文件读取位置    - basic 使用HTTP基本验证-B/--use-ascii 使用ASC

2012-09-11 10:06:07 551

转载 shell中两个函数(带参数)相互调用

#!/bin/bashaa () {typeset ii=$1if [ $i -ge 5 ]; thenexitfiecho aa call bbbb $(( i+=1 ))}bb () {typeset ii=$1if [ $i -ge 5 ]; thenexitfiecho bb call aaaa $(( i+=1 ))}aa 1

2012-08-31 14:10:14 2748 1

转载 shell 下 urlencode/urldecode 编码/解码的几种方法

1、先弄清楚为什么要 urlencode?http://www.genome.iastate.edu/community/angenmap/URLEncoding.htmlURL Encoding is the process of converting string into valid URL format. Valid URL format means that the URL con

2012-08-31 11:54:31 33840

转载 shell urldecode(awk版)

#/bin/shawk 'BEGIN{for(i=0;i1);printf"%s",substr(i,1,RSTART-1);printf"%c",hex[substr(i,RSTART+1,1)]*16+hex[substr(i,RSTART+2,1)];i=substr(i,RSTART+RLENGTH);}print i;}'

2012-08-31 11:48:06 6143 3

转载 验证码captcha用C语言实现

// Version 2012-02-20 (http://github.com/ITikhonov/captcha/tree/bbbaaa33ad3f94ce3f091badba51b44a231f12fd)// zlib/libpng license is at the end of this fileconst int gifsize;void captcha(unsigned ch

2012-08-30 18:59:59 1521

转载 md5.c

#include #include #include #include typedef unsigned char *POINTER; typedef unsigned short int UINT2; typedef unsigned long int UINT4; typedef str

2012-08-30 18:54:59 898

转载 md5.js

/*sha1 * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS PUB 180-1 * Version 2.1a Copyright Paul Johnston 2000 - 2002. * Other contributors: Greg Holt, Andrew

2012-08-30 18:53:25 740

转载 getaddrinfo.c

/* * getaddrinfo.c - Simple example of using getaddrinfo(3) function. * * Michal Ludvig (c) 2002, 2003 * http://www.logix.cz/michal/devel/ * * License: public domain. */#include #include

2012-08-30 18:51:54 837

原创 FTP EPRT 的解析(for IPv6)

#include #include #include #include #include #include #include #include #include #include #include int main(int argc,char **argv){ int i=0,j=0,k=0,ret=0; char str[512]={0}; char str2[5

2012-08-30 18:48:10 1055

原创 mydlink.asp的解析

#include #include int main(int argc,char **argv){ char buffer[1024] = "/mydlink/set_apply.asp?settingsChanged=1&index=1&Sta_type=3&Sta_reboot=1&index=2&Sta_type=3&Sta_reboot=1&index=3&Sta_type=3&

2012-08-30 18:43:31 410

转载 strtok_r用法

#include#include#define INFO_MAX_SZ 255int main(){ int i=0,j=0; char buffer[INFO_MAX_SZ]="Fred male 25,John male 62,Anna female 16"; char *p[20]; char *buf=buffer; char *outer

2012-08-30 18:37:54 1549

转载 用JavaScript实现UrlEncode和UrlDecode的脚本代码

Function str2asc(strstr) str2asc = hex(asc(strstr)) End Function Function asc2str(ascasc) asc2str = chr(ascasc) End Function /*这里开始时UrlEncode和UrlDecode函数*/ function UrlEncode(str){ var re

2012-08-30 18:35:19 458

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除