仍在编辑,预计后天完成
选择补选:
1.预选:不算选中,不从这里下手。
2.正选:还要抽签,不能保证成功率。
3.补选:先到先得,从这里下手。
pcDuino:
1.不接屏幕,耗电很低
2.适合用来做耗时的事,比如下载,比如这个,接上移动电源,大概能用40个小时。
淘宝爆款电源,充电怕爆炸,都放厕所冲,瓷砖应该不容易烧起来。
预计后天完成
Acknowledge:
win及linux的md5加密和发包代码均复制修改于CSDN坛友。
Windows下
-
#include
-
#include
-
#include
-
#include
-
#include
-
#include
-
#include
-
#define TEN 600.0
-
#include "md5.h"
-
#define S11 7
-
#define S12 12
-
#define S13 17
-
#define S14 22
-
#define S21 5
-
#define S22 9
-
#define S23 14
-
#define S24 20
-
#define S31 4
-
#define S32 11
-
#define S33 16
-
#define S34 23
-
#define S41 6
-
#define S42 10
-
#define S43 15
-
#define S44 21
-
#pragma comment(lib, "ws2_32.lib")
-
char info[1115]="";
-
char md5[35];
-
-
-
static void MD5Transform (UINT32 a[4], unsigned char b[64]);
-
static void Encode (unsigned char *, UINT32 *, unsigned int);
-
static void Decode (UINT32 *, unsigned char *, unsigned int);
-
-
static unsigned char PADDING[64] = {
-
0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
-
};
-
-
#define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
-
#define G(x, y, z) (((x) & (z)) | ((y) & (~z)))
-
#define H(x, y, z) ((x) ^ (y) ^ (z))
-
#define I(x, y, z) ((y) ^ ((x) | (~z)))
-
-
-
#define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n))))
-
-
#define FF(a, b, c, d, x, s, ac) { \
-
(a) += F ((b), (c), (d)) + (x) + (UINT32)(ac); \
-
(a) = ROTATE_LEFT ((a), (s)); \
-
(a) += (b); \
-
}
-
#define GG(a, b, c, d, x, s, ac) { \
-
(a) += G ((b), (c), (d)) + (x) + (UINT32)(ac); \
-
(a) = ROTATE_LEFT ((a), (s)); \
-
(a) += (b); \
-
}
-
#define HH(a, b, c, d, x, s, ac) { \
-
(a) += H ((b), (c), (d)) + (x) + (UINT32)(ac); \
-
(a) = ROTATE_LEFT ((a), (s)); \
-
(a) += (b); \
-
}
-
#define II(a, b, c, d, x, s, ac) { \
-
(a) += I ((b), (c), (d)) + (x) + (UINT32)(ac); \
-
(a) = ROTATE_LEFT ((a), (s)); \
-
(a) += (b); \
-
}
-
-
-
void MD5Init (MD5_CTX *context)
-
{
-
context->count[0] = context->count[1] = 0;
-
-
context->state[0] = 0x67452301;
-
context->state[1] = 0xefcdab89;
-
context->state[2] = 0x98badcfe;
-
context->state[3] = 0x10325476;
-
}
-
-
-
void MD5Update (MD5_CTX *context, unsigned char *input, unsigned int inputLen)
-
{
-
unsigned int i, index, partLen;
-
-
index = (unsigned int)((context->count[0] >> 3) & 0x3F);
-
-
if ((context->count[0] += ((UINT32)inputLen << 3))
-
< ((UINT32)inputLen << 3))
-
context->count[1]++;
-
context->count[1] += ((UINT32)inputLen >> 29);
-
-
partLen = 64 - index;
-
-
-
if (inputLen >= partLen) {
-
memcpy((unsigned char *)&context->buffer[index], (unsigned char *)input, partLen);
-
MD5Transform (context->state, context->buffer);
-
-
for (i = partLen; i + 63 < inputLen; i += 64)
-
MD5Transform (context->state, &input[i]);
-
-
index = 0;
-
}
-
else
-
i = 0;
-
-
memcpy((unsigned char *)&context->buffer[index], (unsigned char *)&input[i],
-
inputLen-i);
-
}
-
-
void MD5Final (unsigned char digest[16], MD5_CTX * context)
-
{
-
unsigned char bits[8];
-
unsigned int index, padLen;
-
-
Encode (bits, context->count, 8);
-
-
index = (unsigned int)((context->count[0] >> 3) & 0x3f);
-
padLen = (index < 56) ? (56 - index) : (120 - index);
-
MD5Update (context, PADDING, padLen);
-
-
MD5Update (context, bits, 8);
-
-
Encode (digest, context->state, 16);
-
-
memset ((unsigned char *)context, 0, sizeof (*context));
-
}
-
-
-
-
-
static void MD5Transform (UINT32 state[4], unsigned char block[64])
-
{
-
UINT32 a = state[0], b = state[1], c = state[2], d = state[3], x[16];
-
-
Decode (x, block, 64);
-
-
-
FF (a, b, c, d, x[ 0], S11, 0xd76aa478);
-
FF (d, a, b, c, x[ 1], S12, 0xe8c7b756);
-
FF (c, d, a, b, x[ 2], S13, 0x242070db);
-
FF (b, c, d, a, x[ 3], S14, 0xc1bdceee);
-
FF (a, b, c, d, x[ 4], S11, 0xf57c0faf);
-
FF (d, a, b, c, x[ 5], S12, 0x4787c62a);
-
FF (c, d, a, b, x[ 6], S13, 0xa8304613);
-
FF (b, c, d, a, x[ 7], S14, 0xfd469501);
-
FF (a, b, c, d, x[ 8], S11, 0x698098d8);
-
FF (d, a, b, c, x[ 9], S12, 0x8b44f7af);
-
FF (c, d, a, b, x[10], S13, 0xffff5bb1);
-
FF (b, c, d, a, x[11], S14, 0x895cd7be);
-
FF (a, b, c, d, x[12], S11, 0x6b901122);
-
FF (d, a, b, c, x[13], S12, 0xfd987193);
-
FF (c, d, a, b, x[14], S13, 0xa679438e);
-
FF (b, c, d, a, x[15], S14, 0x49b40821);
-
-
-
GG (a, b, c, d, x[ 1], S21, 0xf61e2562);
-
GG (d, a, b, c, x[ 6], S22, 0xc040b340);
-
GG (c, d, a, b, x[11], S23, 0x265e5a51);
-
GG (b, c, d, a, x[ 0], S24, 0xe9b6c7aa);
-
GG (a, b, c, d, x[ 5], S21, 0xd62f105d);
-
GG (d, a, b, c, x[10], S22, 0x2441453);
-
GG (c, d, a, b, x[15], S23, 0xd8a1e681);
-
GG (b, c, d, a, x[ 4], S24, 0xe7d3fbc8);
-
GG (a, b, c, d, x[ 9], S21, 0x21e1cde6);
-
GG (d, a, b, c, x[14], S22, 0xc33707d6);
-
GG (c, d, a, b, x[ 3], S23, 0xf4d50d87);
-
GG (b, c, d, a, x[ 8], S24, 0x455a14ed);
-
GG (a, b, c, d, x[13], S21, 0xa9e3e905);
-
GG (d, a, b, c, x[ 2], S22, 0xfcefa3f8);
-
GG (c, d, a, b, x[ 7], S23, 0x676f02d9);
-
GG (b, c, d, a, x[12], S24, 0x8d2a4c8a);
-
-
-
HH (a, b, c, d, x[ 5], S31, 0xfffa3942);
-
HH (d, a, b, c, x[ 8], S32, 0x8771f681);
-
HH (c, d, a, b, x[11], S33, 0x6d9d6122);
-
HH (b, c, d, a, x[14], S34, 0xfde5380c);
-
HH (a, b, c, d, x[ 1], S31, 0xa4beea44);
-
HH (d, a, b, c, x[ 4], S32, 0x4bdecfa9);
-
HH (c, d, a, b, x[ 7], S33, 0xf6bb4b60);
-
HH (b, c, d, a, x[10], S34, 0xbebfbc70);
-
HH (a, b, c, d, x[13], S31, 0x289b7ec6);
-
HH (d, a, b, c, x[ 0], S32, 0xeaa127fa);
-
HH (c, d, a, b, x[ 3], S33, 0xd4ef3085);
-
HH (b, c, d, a, x[ 6], S34, 0x4881d05);
-
HH (a, b, c, d, x[ 9], S31, 0xd9d4d039);
-
HH (d, a, b, c, x[12], S32, 0xe6db99e5);
-
HH (c, d, a, b, x[15], S33, 0x1fa27cf8);
-
HH (b, c, d, a, x[ 2], S34, 0xc4ac5665);
-
-
-
II (a, b, c, d, x[ 0], S41, 0xf4292244);
-
II (d, a, b, c, x[ 7], S42, 0x432aff97);
-
II (c, d, a, b, x[14], S43, 0xab9423a7);
-
II (b, c, d, a, x[ 5], S44, 0xfc93a039);
-
II (a, b, c, d, x[12], S41, 0x655b59c3);
-
II (d, a, b, c, x[ 3], S42, 0x8f0ccc92);
-
II (c, d, a, b, x[10], S43, 0xffeff47d);
-
II (b, c, d, a, x[ 1], S44, 0x85845dd1);
-
II (a, b, c, d, x[ 8], S41, 0x6fa87e4f);
-
II (d, a, b, c, x[15], S42, 0xfe2ce6e0);
-
II (c, d, a, b, x[ 6], S43, 0xa3014314);
-
II (b, c, d, a, x[13], S44, 0x4e0811a1);
-
II (a, b, c, d, x[ 4], S41, 0xf7537e82);
-
II (d, a, b, c, x[11], S42, 0xbd3af235);
-
II (c, d, a, b, x[ 2], S43, 0x2ad7d2bb);
-
II (b, c, d, a, x[ 9], S44, 0xeb86d391);
-
-
state[0] += a;
-
state[1] += b;
-
state[2] += c;
-
state[3] += d;
-
-
memset ((unsigned char *)x, 0, sizeof (x));
-
}
-
-
static void Encode (unsigned char *output, UINT32 *input, unsigned int len)
-
{
-
unsigned int i, j;
-
-
for (i = 0, j = 0; j < len; i++, j += 4) {
-
output[j] = (unsigned char)(input[i] & 0xff);
-
output[j+1] = (unsigned char)((input[i] >> 8) & 0xff);
-
output[j+2] = (unsigned char)((input[i] >> 16) & 0xff);
-
output[j+3] = (unsigned char)((input[i] >> 24) & 0xff);
-
}
-
}
-
-
-
static void Decode (UINT32 *output, unsigned char *input, unsigned int len)
-
{
-
unsigned int i, j;
-
-
for (i = 0, j = 0; j < len; i++, j += 4)
-
output[i] = ((UINT32)input[j]) | (((UINT32)input[j+1]) << 8) |
-
(((UINT32)input[j+2]) << 16) | (((UINT32)input[j+3]) << 24);
-
}
-
-
-
-
-
-
-
-
-
#include "md5.h"
-
-
int Bemd5(char *tmp)
-
{
-
-
unsigned char digest[16];
-
-
MD5_CTX context;
-
-
-
-
MD5Init (&context);
-
MD5Update (&context, (unsigned char*)tmp, strlen(tmp));
-
MD5Final (digest,&context);
-
-
for(int i=0; i<16; ++i)
-
{
-
sprintf(md5+2*i,"%02X",digest[i]);
-
}
-
printf("\n");
-
-
return 0;
-
}
-
-
-
-
-
-
int pock(char *sendbuf,int port,int flag) {
-
WSADATA wsaData;
-
int iResult = WSAStartup( MAKEWORD(2,2), &wsaData );
-
if ( iResult != NO_ERROR ){
-
printf("Error at WSAStartup()\n");
-
}
-
-
-
SOCKET m_socket;
-
m_socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
-
if ( m_socket == INVALID_SOCKET ) {
-
printf( "Error at socket(): %ld\n", WSAGetLastError() );
-
WSACleanup();
-
return 1;
-
}
-
-
struct sockaddr_in clientService;
-
clientService.sin_family = AF_INET;
-
clientService.sin_addr.s_addr = inet_addr("58.192.142.134");
-
clientService.sin_port = htons( port );
-
if ( connect( m_socket, (SOCKADDR*) &clientService, sizeof(SOCKADDR)) == SOCKET_ERROR){
-
printf( "Failed to connect.\n" );
-
WSACleanup();
-
return 0;
-
}
-
-
-
int bytesSent;
-
int bytesRecv = strlen(sendbuf);
-
char recvbuf[1025]="";
-
-
bytesSent = send( m_socket, sendbuf, strlen(sendbuf), 0 );
-
-
-
-
-
bytesRecv = recv(m_socket, recvbuf,1024 , 0);
-
-
recvbuf[bytesRecv+1] = 0;
-
if(flag)
-
strcpy(info,recvbuf);
-
-
-
-
closesocket(m_socket);
-
-
return 0;
-
}
-
-
-
void gotoxy(int x,int y)
-
{
-
int xx=0x0b;
-
HANDLE hOutput;
-
COORD loc;
-
loc.X=x;
-
loc.Y=y;
-
hOutput=GetStdHandle(STD_OUTPUT_HANDLE);
-
SetConsoleCursorPosition(hOutput,loc);
-
return;
-
}
-
-
-
int paus(float time)
-
{
-
long zt1=clock();
-
long zt2;
-
while(1)
-
{zt2=clock();
-
if(((float)(zt2-zt1)/CLOCKS_PER_SEC)>time)
-
return 0;
-
else
-
{gotoxy(23,1);
-
printf("%-9.2f",((float)(zt2-zt1)/CLOCKS_PER_SEC));}
-
}
-
}
-
-
-
int main()
-
{
-
int loop;
-
float tpause;
-
printf("Input time(seconds):");
-
scanf("%f",&tpause);
-
puts("Waiting...,Now passed seconds");
-
paus(tpause);
-
long zt1=clock();
-
long zt2;
-
-
system("title=扬大学生系统bu xuan(third choice) Almost Powered by c");
-
char acc[20];
-
printf("扬 大 CoiLeson\n");
-
printf("2014年1月2号\n");
-
-
-
char *pg0;
-
gotoxy(10,12);
-
printf("RunTime is seconds\n");
-
again:
-
pg0=(char *)malloc(1025);
-
-
-
char name[12]="110",pwd[18]="110";
-
int i=0,j;
-
Bemd5(pwd);
-
sprintf(pg0,"GET /pls/wwwbks/bks_login2.uniteLogin?stuid=%s&pwd=%s HTTP/1.1\r\n"
-
"Host:\r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
-
"User-Agent: \r\n"
-
"Referer:\r\n"
-
"Accept-Encoding: gzip,deflate,sdch\r\n"
-
"Accept-Language: zh-CN,zh;q=0.8\r\n"
-
"Accept-Charset: GBK,utf-8;q=0.7,*;q=0.3\r\n"
-
"Cookie: \r\n\r\n",name,md5);
-
-
pock(pg0,7777,1);
-
-
-
-
i=j=0;
-
-
while(1){
-
while(info[i]!='C')i++;
-
if(info[i+3]==info[i+6])break;
-
else i++;
-
}
-
-
-
if(info[i+16]!='1'){printf("密码错误,重新输入");}
-
else
-
{
-
-
while(1){
-
while(info[i]!='S')i++;
-
if(info[i+4]=='C')break;
-
else i++;
-
}
-
j=i;
-
while(info[j]!=';')j++;
-
info[j]=0;
-
strcpy(acc,info+20+i);
-
}
-
-
system("title=登陆成功,成功得到ACCOUNT");
-
-
free(pg0);
-
-
pg0=(char *)malloc(1025);
-
-
-
-
-
-
for(loop=0;loop<3;loop++)
-
{
-
sprintf(pg0,"POST /pls/wwwbks/xk.CourseInput HTTP/1.1\r\n"
-
"Host: \r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Content-Length: 29\r\n"
-
"Cache-Control: \r\n"
-
"Origin: \r\n"
-
"User-Agent: \r\n"
-
"Content-Type: \r\n"
-
"Accept: \r\n"
-
"Referer: \r\n"
-
"Accept-Encoding: \r\n"
-
"Accept-Language: \r\n"
-
"Accept-Charset: \r\n"
-
"Cookie: ACCOUNT=%s;\r\n\r\n"
-
"p_qxrxk=0329001&p_qxrxk_kxh=1",acc);
-
-
pock(pg0,7777,0);
-
-
sprintf(pg0,"POST /pls/wwwbks/xk.CourseInput HTTP/1.1\r\n"
-
"Host: \r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Content-Length: 29\r\n"
-
"Cache-Control: \r\n"
-
"Origin: \r\n"
-
"User-Agent: \r\n"
-
"Content-Type: \r\n"
-
"Accept: \r\n"
-
"Referer: \r\n"
-
"Accept-Encoding: \r\n"
-
"Accept-Language: \r\n"
-
"Accept-Charset: \r\n"
-
"Cookie: ACCOUNT=%s;\r\n\r\n"
-
"p_qxrxk=0229039&p_qxrxk_kxh=0",acc);
-
-
pock(pg0,7777,0);
-
-
sprintf(pg0,"POST /pls/wwwbks/xk.CourseInput HTTP/1.1\r\n"
-
"Host: \r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Content-Length: 29\r\n"
-
"Cache-Control: \r\n"
-
"Origin: \r\n"
-
"User-Agent: \r\n"
-
"Content-Type: \r\n"
-
"Accept: \r\n"
-
"Referer: \r\n"
-
"Accept-Encoding: \r\n"
-
"Accept-Language: \r\n"
-
"Accept-Charset: \r\n"
-
"Cookie: ACCOUNT=%s;\r\n\r\n"
-
"p_qxrxk=0329001&p_qxrxk_kxh=3",acc);
-
-
pock(pg0,7777,0);
-
-
zt2=clock();
-
gotoxy(10,12);
-
printf("%9.2f",((float)(zt2-zt1)/CLOCKS_PER_SEC));
-
paus(TEN);
-
-
}
-
-
free(pg0);
-
-
goto again;
-
-
system("pause");
-
return 0;
-
}
-
#pragma once
-
-
-
typedef unsigned short int UINT16;
-
-
-
-
typedef struct {
-
"white-space:pre"> UINT32 state[4];
-
"white-space:pre"> UINT32 count[2];
-
"white-space:pre"> unsigned char buffer[64];
-
} MD5_CTX;
-
-
-
void MD5Init (MD5_CTX *);
-
void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
-
void MD5Final (unsigned char [16], MD5_CTX *);
花了一天时间,移植到Linux下
-
-
-
-
-
-
-
-
#include
-
#include
-
#include
-
#include
-
#include
-
#include
-
#include
-
#include
-
#define IP "58.192.142.134"
-
#define PORT 7777
-
-
-
#define ID "12080310*"
-
#define PASSWD "12080310*"
-
-
-
#define TEN 1.0
-
char info[1115]="";
-
char md5[35]="\0";
-
void gotoxy(int x,int y)
-
{
-
printf("%c[%d;%df",0x1B,y,x);
-
}
-
int post(char *sendbuf)
-
{
-
int cfd;
-
int recbytes;
-
int sin_size;
-
struct sockaddr_in s_add,c_add;
-
unsigned short portnum=PORT;
-
cfd = socket(AF_INET, SOCK_STREAM, 0);
-
if(-1 == cfd)
-
{
-
printf("socket fail ! \r\n");
-
return -1;
-
}
-
bzero(&s_add,sizeof(struct sockaddr_in));
-
s_add.sin_family=AF_INET;
-
s_add.sin_addr.s_addr= inet_addr(IP);
-
s_add.sin_port=htons(portnum);
-
if(-1 == connect(cfd,(struct sockaddr *)(&s_add), sizeof(struct sockaddr)))
-
{
-
printf("connect fail !\r\n");
-
return -1;
-
}
-
if(-1 == (recbytes =send(cfd,sendbuf,strlen(sendbuf),0)))
-
{
-
printf("read data fail !\r\n");
-
return -1;
-
}
-
strcpy(info,"");
-
recv(cfd, info,1024,0);
-
info[recbytes]='\0';
-
close(cfd);
-
return 0;
-
}
-
int paus(float time)
-
{
-
long zt1=clock();
-
long zt2;
-
while(1)
-
{
-
zt2=clock();
-
if(((float)(zt2-zt1)/CLOCKS_PER_SEC)>time)
-
return 0;
-
else
-
{
-
gotoxy(23,2);
-
printf("%-9.2f",((float)(zt2-zt1)/CLOCKS_PER_SEC));}
-
}
-
}
-
void information()
-
{
-
gotoxy(1,3);printf("This is used in a special election for course selection");
-
gotoxy(1,4);printf("Running under Linux,compiled by gcc");
-
gotoxy(1,5);printf("Yangzhou University");
-
gotoxy(1,6);printf("Ten minutes after logging in,try every time interval,a total of three times");
-
gotoxy(1,7);printf("Log back in thirty minutes");
-
gotoxy(1,8);printf("Run without a screen in card PC");
-
gotoxy(1,9);printf("Wake up,the course is completed,the final number is mine");
-
gotoxy(1,10);printf("This proof,C language can do anything");
-
gotoxy(1,11);printf("I wish the electromagnetic field will not fail");
-
}
-
int main()
-
{
-
int loop;
-
char acc[20];
-
MD5_CTX ctx;
-
unsigned char *data=PASSWD;
-
unsigned char md[16];
-
char tmp[3]={'\0'};
-
int i,j;
-
char *pg0;
-
float tpause;
-
printf("Input time(seconds):");
-
scanf("%f",&tpause);
-
puts("Waiting...,Now passed seconds");
-
paus(tpause);
-
information();
-
gotoxy(1,12);
-
printf("RunTime is seconds\n");
-
long zt1=clock();
-
long zt2;
-
MD5_Init(&ctx);
-
MD5_Update(&ctx,data,strlen(data));
-
MD5_Final(md,&ctx);
-
for( i=0; i<16; i++ ){
-
sprintf(tmp,"%02X",md[i]);
-
strcat(md5,tmp);
-
}
-
again:
-
pg0=(char *)malloc(1025);
-
sprintf(pg0,"GET /pls/wwwbks/bks_login2.uniteLogin?stuid=%s&pwd=%s HTTP/1.1\r\n"
-
"Host:\r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
-
"User-Agent: \r\n"
-
"Referer:\r\n"
-
"Accept-Encoding: deflate\r\n"
-
"Accept-Language: zh-CN,zh;q=0.8\r\n"
-
"Accept-Charset: gb2312;q=0.7,*;q=0.3\r\n"
-
"Cookie: \r\n\r\n",ID,md5);
-
post(pg0);
-
free(pg0);
-
i=j=0;
-
while(1){
-
while(info[i]!='C')i++;
-
if(info[i+3]==info[i+6])break;
-
else i++;
-
}
-
if(info[i+16]!='1'){printf("Wrong and wrong");}
-
else
-
{
-
while(1){
-
while(info[i]!='S')i++;
-
if(info[i+4]=='C')break;
-
else i++;
-
}
-
j=i;
-
while(info[j]!=';')j++;
-
info[j]=0;
-
strcpy(acc,info+20+i);
-
}
-
pg0=(char *)malloc(1025);
-
for(loop=0;loop<3;loop++)
-
{
-
sprintf(pg0,"POST /pls/wwwbks/xk.CourseInput HTTP/1.1\r\n"
-
"Host: \r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Content-Length: 29\r\n"
-
"Cache-Control: \r\n"
-
"Origin: \r\n"
-
"User-Agent: \r\n"
-
"Content-Type: \r\n"
-
"Accept: \r\n"
-
"Referer: \r\n"
-
"Accept-Encoding: \r\n"
-
"Accept-Language: \r\n"
-
"Accept-Charset: \r\n"
-
"Cookie: ACCOUNT=%s;\r\n\r\n"
-
"p_qxrxk=0329016&p_qxrxk_kxh=6",acc);
-
post(pg0);
-
sprintf(pg0,"POST /pls/wwwbks/xk.CourseInput HTTP/1.1\r\n"
-
"Host: \r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Content-Length: 29\r\n"
-
"Cache-Control: \r\n"
-
"Origin: \r\n"
-
"User-Agent: \r\n"
-
"Content-Type: \r\n"
-
"Accept: \r\n"
-
"Referer: \r\n"
-
"Accept-Encoding: \r\n"
-
"Accept-Language: \r\n"
-
"Accept-Charset: \r\n"
-
"Cookie: ACCOUNT=%s;\r\n\r\n"
-
"p_qxrxk=1029012&p_qxrxk_kxh=0",acc);
-
post(pg0);
-
sprintf(pg0,"POST /pls/wwwbks/xk.CourseInput HTTP/1.1\r\n"
-
"Host: \r\n"
-
"Proxy-Connection: keep-alive\r\n"
-
"Content-Length: 29\r\n"
-
"Cache-Control: \r\n"
-
"Origin: \r\n"
-
"User-Agent: \r\n"
-
"Content-Type: \r\n"
-
"Accept: \r\n"
-
"Referer: \r\n"
-
"Accept-Encoding: \r\n"
-
"Accept-Language: \r\n"
-
"Accept-Charset: \r\n"
-
"Cookie: ACCOUNT=%s;\r\n\r\n"
-
"p_qxrxk=1029013&p_qxrxk_kxh=0",acc);
-
post(pg0);
-
zt2=clock();
-
gotoxy(12,12);
-
printf("%9.2f",((float)(zt2-zt1)/CLOCKS_PER_SEC));
-
paus(TEN);
-
}
-
free(pg0);
-
goto again;
-
return 0;
-
}
-
阅读(973) | 评论(0) | 转发(0) |