{"id":128,"date":"2005-10-20T14:39:24","date_gmt":"2005-10-20T06:39:24","guid":{"rendered":"http:\/\/yesybl.org\/blogcn\/2005\/10\/20\/128\/"},"modified":"2005-10-20T14:39:24","modified_gmt":"2005-10-20T06:39:24","slug":"eueeaeuaithinaeipiadhiuaidho-2","status":"publish","type":"post","link":"https:\/\/www.yesybl.com\/?p=128","title":{"rendered":"\u751f\u6210\u626b\u63cf\u4ee3\u7406\u670d\u52a1\u5668IP\u6bb5\u5217\u8868\u7684\u7a0b\u5e8f"},"content":{"rendered":"<pre lang=\"c\">\n\/***********************************************************************\nThe program is used for create a IP list for proxy tiger(by chice@smth) identify.\nThe proxy tiger download url:\nhttp:\/\/learn.tsinghua.edu.cn\/homepage\/2004013134\/proxytiger.py\nAuthor: Binglin Yang\nDate: 2005\/10\/20\n**********************************************************************\/\n\n#include &lt;stdio.h&gt;\n#include &lt;stdlib.h&gt;\n\nvoid generateIP(int,int ,int,int ,int,int,int,int,int, char[]);\n\nmain()\n{\n     int A_count,A_count_up,B_count,B_count_up,C_count,C_count_up,D_count,D_count_up,port;\n     char protocol[10];\n     char choice;\n     int flag=0,ok=1;\n     do\n     {\n\n\/*\u8981\u6c42\u8f93\u5165A\u6bb5\u5730\u5740\u4e0b\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input A_count:\");\n               scanf(\"%d\",&amp;A_count);\n               if (A_count&lt;1 || A_count&gt;255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok=1;\n               }\n               else\n                    ok=0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165A\u6bb5\u5730\u5740\u4e0a\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input A_upper_bound:\");\n               scanf(\"%d\",&amp;A_count_up);\n               if ( A_count_up&lt;A_count || A_count_up &gt; 255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok=1;\n               }\n               else\n                    ok=0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165B\u6bb5\u5730\u5740\u4e0b\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input B_count:\");\n               scanf(\"%d\",&amp;B_count);\n               if ( B_count &lt; 1 || B_count &gt; 255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok = 1;\n               }\n               else\n                    ok = 0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165B\u6bb5\u5730\u5740\u4e0a\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input B_upper_bound:\");\n               scanf(\"%d\",&amp;B_count_up);\n               if(B_count_up &lt; B_count || B_count_up &gt; 255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok = 1;\n               }\n               else\n                    ok = 0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165C\u6bb5\u5730\u5740\u4e0b\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input C_count:\");\n               scanf(\"%d\",&amp;C_count);\n               if ( C_count &lt; 1 || C_count &gt; 255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok = 1;\n               }\n               else\n                    ok = 0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165C\u6bb5\u5730\u5740\u4e0a\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input C_upper_bound:\");\n               scanf(\"%d\",&amp;C_count_up);\n               if(C_count_up &lt; C_count || C_count_up&gt;255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok = 1;\n               }\n               else\n                    ok = 0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165D\u6bb5\u5730\u5740\u4e0a\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input D_count:\");\n               scanf(\"%d\",&amp;D_count);\n               if ( D_count &lt; 1 || D_count &gt; 255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok = 1;\n               }\n               else\n                    ok = 0;\n          }while(ok);\n\n\/*\u8981\u6c42\u8f93\u5165D\u6bb5\u5730\u5740\u4e0a\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/\n          do\n          {\n               printf(\"nPlease input D_upper_bound:\");\n               scanf(\"%d\",&amp;D_count_up);\n               if ( D_count_up &lt; D_count || D_count_up &gt; 255)\n               {\n                    printf(\"nIP error! Retype!\");\n                    ok = 1;\n               }\n               else\n                    ok = 0;\n          }while(ok);\n\n\/*\u8f93\u5165\u7aef\u53e3\u53f7\u548c\u4ee3\u7406\u534f\u8bae*\/\n          printf(\"nPlease input PORT:\");\n          scanf(\"%d\",&amp;port);\n          printf(\"nPlease input PROTOCOL:\");\n          scanf(\"%s\",protocol);\n\n\/*calls generateIP function *\/\n          generateIP( A_count,A_count_up, B_count,B_count_up, C_count,C_count_up, D_count,D_count_up, port, protocol);\n          printf(\"Do you want to add new IP segment?(y\/n):\");\n          getchar();\n          choice = getchar();\n          if ( choice == 'y' || choice == 'Y')\n          {\n               flag=1;\n          }\n          else\n               flag=0;\n     }while(flag);\n}\n\nvoid generateIP(int A_count,int A_count_up,int B_count,int B_count_up,int\n           C_count,int C_count_up,int D_count,int D_count_up,int port,char\n           protocol[])\n{\n     char IP[30];\n     FILE *fp, *fopen();\n     fp=fopen(\"proxylist\",\"a\");\n     int B=B_count,C=C_count,D=D_count;\n     for ( ;A_count&lt;=A_count_up;A_count++)\n     {\n          for ( ;B_count&lt;=B_count_up;B_count++)\n          {\n               for ( ;C_count&lt;=C_count_up;C_count++)\n               {\n                    for ( ;D_count&lt;=D_count_up;D_count++)\n                    {\n                         sprintf(IP,\"%d.%d.%d.%d:%d@%sn\",A_count,B_count,C_count,D_count,port,protocol);\n                         fputs(IP,fp);\n                    }\n                    D_count=D;\n               }\n               C_count=C;\n          }\n          B_count=B;\n     }\n     fclose(fp);\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/www.yesybl.com\/?p=128\" rel=\"bookmark\" title=\"Permalink to \u751f\u6210\u626b\u63cf\u4ee3\u7406\u670d\u52a1\u5668IP\u6bb5\u5217\u8868\u7684\u7a0b\u5e8f\"><p>\/*********************************************************************** The program is used for create a IP list for proxy tiger(by chice@smth) identify. The proxy tiger download url: http:\/\/learn.tsinghua.edu.cn\/homepage\/2004013134\/proxytiger.py Author: Binglin Yang Date: 2005\/10\/20 **********************************************************************\/ #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; void generateIP(int,int ,int,int ,int,int,int,int,int, char[]); main() { int A_count,A_count_up,B_count,B_count_up,C_count,C_count_up,D_count,D_count_up,port; char protocol[10]; char choice; int flag=0,ok=1; do { \/*\u8981\u6c42\u8f93\u5165A\u6bb5\u5730\u5740\u4e0b\u9650\uff0c\u5e76\u68c0\u6d4b\u8f93\u5165\u662f\u5426\u6b63\u786e*\/ do { printf(&#8220;nPlease input A_count:&#8221;); scanf(&#8220;%d&#8221;,&amp;A_count); [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pa4z28-24","_links":{"self":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/128"}],"collection":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128"}],"version-history":[{"count":0,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}