home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / xploits / pyro12 / pyro12.c.txt
Encoding:
Text File  |  2002-03-18  |  16.3 KB  |  428 lines

  1. /* Author: www.asmbeginer.com; nickname: putois , cheoles 
  2. from:france    */
  3. /* PYROSCAN date: 05/10/2000 write for
  4. pyrofreak.org                      */
  5. /* Compile: cc -o pyro
  6. pyro12.c                                           */
  7. /* Version : 1.2 Add errors
  8. messages                                      */
  9. /*                                                                       
  10. */
  11. /* Usage: ./pyro 127.0.0.1
  12. -cold                                          */
  13. /*        ./pyro 127.0.0.1
  14. -lotus                                         */
  15. /*        ./pyro 127.0.0.1
  16. -omni                                          */
  17. /*        ./pyro 127.0.0.1
  18. -winnt                                         */
  19. /*        ./pyro 127.0.0.1
  20. -cgi                                           */
  21. /*                                                                       
  22. */ 
  23. /* See also: ./pyro 127.0.0.1 -cold
  24. >result.txt                           */
  25.  
  26. #include <stdio.h>
  27. #include <string.h>
  28. #include <netdb.h>
  29. #include <netinet/in.h>
  30.  
  31.  
  32. int main(int argc, char **argv)
  33. {
  34.     struct in_addr addr;    
  35.     struct sockaddr_in sin;
  36.     struct hostent *he;
  37.     unsigned start,end,counter;
  38.     char *cld[34],*lts[11],*omni[13],*wnt[116],*cgi[22];
  39.     char
  40. coldbuff[1024],lotusbuff[1024],omnibuff[1024],winntbuff[1024],cgibuff[1024];
  41.     char msg[200]; 
  42.     
  43.     
  44.     int sock,fusion,domino,httpd,daube,cgbin,fs=0,dm=0,ht=0,db=0,cb=0;   
  45.  
  46. cld[1]  = "GET /cfdocs/zero.cfm HTTP/1.0\n\n";      
  47. cld[2]  = "GET /cfdocs/root.cfm HTTP/1.0\n\n";
  48. cld[3]  = "GET /cfdocs/expressions.cfm HTTP/1.0\n\n";
  49. cld[4]  = "GET /cfdocs/TOXIC.CFM HTTP/1.0\n\n"; 
  50. cld[5]  = "GET /cfdocs/MOLE.CFM HTTP/1.0\n\n";
  51. cld[6]  = "GET /cfdocs/expeval/exprcalc.cfm HTTP/1.0\n\n";
  52. cld[7]  = "GET /cfdocs/expeval/sendmail.cfm HTTP/1.0\n\n";
  53. cld[8]  = "GET /cfdocs/expeval/eval.cfm HTTP/1.0\n\n";
  54. cld[9]  = "GET /cfdocs/expeval/openfile.cfm HTTP/1.0\n\n";
  55. cld[10] = "GET /cfdocs/displayopenedfile.cfm HTTP/1.0\n\n";
  56. cld[11] = "GET /cfdocs/exampleapp/publish/admin/addcontent.cfm
  57. HTTP/1.0\n\n";
  58. cld[12] = "GET /cfdocs/exampleapp/email/getfile.cfm HTTP/1.0\n\n";
  59. cld[13] = "GET /cfdocs/exampleapp/publish/admin/application.cfm
  60. HTTP/1.0\n\n";
  61. cld[14] = "GET /cfdocs/exampleapp/email/application.cfm HTTP/1.0\n\n";
  62. cld[15] = "GET /cfdocs/exampleapp/docs/sourcewindow.cfm HTTP/1.0\n\n";
  63. cld[16] = "GET /cfdocs/examples/parks/detail.cfm HTTP/1.0\n\n";
  64. cld[17] = "GET /cfdocs/examples/cvbeans/beaninfo.cfm HTTP/1.0\n\n";
  65. cld[18] = "GET /cfdocs/cfmlsyntaxcheck.cfm HTTP/1.0\n\n";
  66. cld[19] = "GET /cfdocs/snippets/viewexample.cfm HTTP/1.0\n\n";
  67. cld[20] = "GET /cfdocs/snippets/gettempdirectory.cfm HTTP/1.0\n\n";
  68. cld[21] = "GET /cfdocs/snippets/fileexists.cfm HTTP/1.0\n\n";
  69. cld[22] = "GET /cfdocs/snippets/evaluate.cfm HTTP/1.0\n\n";
  70. cld[23] = "GET /cfappman/index.cfm HTTP/1.0\n\n";
  71. cld[24] = "GET /cfusion/cfapps/forums/forums_.mdb HTTP/1.0\n\n";
  72. cld[25] = "GET /cfusion/cfapps/security/realm_.mdb HTTP/1.0\n\n";
  73. cld[26] = "GET /cfusion/cfapps/forums/data/forums.mdb HTTP/1.0\n\n";
  74. cld[27] = "GET /cfusion/cfapps/security/data/realm/mdb HTTP/1.0\n\n";
  75. cld[28] = "GET /cfusion/database/cfexamples.mdb HTTP/1.0\n\n";
  76. cld[29] = "GET /cfusion/database/cfsnippets.mdb HTTP/1.0\n\n";
  77. cld[30] = "GET /cfusion/database/smpolicy.mdb HTTP/1.0\n\n";
  78. cld[31] = "GET /cfusion/database/cypress.mdb HTTP/1.0\n\n";
  79.  
  80. lts[1]  = "GET /database.nsf/e1466a8590/6048076233?OpenDocument
  81. HTTP/1.0\n\n";
  82. lts[2]  = "GET /database.nsf/e1466a8590/6048076233?EditDocument
  83. HTTP/1.0\n\n";
  84. lts[3]  = "GET /database.nsf/e1466a8590/6048076233?DeleteDocument
  85. HTTP/1.0\n\n";
  86. lts[4]  = "GET /database.nsf/viewname? HTTP/1.0\n\n";
  87. lts[5]  = "GET /domcfg.nsf/?open HTTP/1.0\n\n";
  88. lts[6]  = "GET /domcfg.nsf/URLRedirect/?OpenForm HTTP/1.0\n\n";
  89. lts[7]  = "GET /domlog.nsf/ HTTP/1.0\n\n";
  90. lts[8]  = "GET /catalog.nsf/ HTTP/1.0\n\n";
  91. lts[9]  = "GET /names.nsf/ HTTP/1.0\n\n";
  92. lts[10] = "GET /database.nsf/ HTTP/1.0\n\n";
  93. lts[11] = "GET /today.nsf/ HTTP/1.0\n\n";
  94.  
  95. omni[1]  = "GET /cgi-bin/cgi-lib.pl HTTP/1.0\n\n";
  96. omni[2]  = "GET /cgi-bin/imagemap.c HTTP/1.0\n\n";
  97. omni[3]  = "GET /cgi-bin/imagemap.exe HTTP/1.0\n\n";
  98. omni[4]  = "GET /cgi-bin/minimal.exe HTTP/1.0\n\n";
  99. omni[5]  = "GET /cgi-bin/redir.exe HTTP/1.0\n\n";
  100. omni[6]  = "GET /cgi-bin/stats.prg HTTP/1.0\n\n";
  101. omni[7]  = "GET /cgi-bin/statsconfig HTTP/1.0\n\n";
  102. omni[8]  = "GET /cgi-bin/visitor.exe HTTP/1.0\n\n";
  103. omni[9]  = "GET /cgi-win/wincgi.bat HTTP/1.0\n\n";
  104. omni[10] = "GET /cgi-bin/htmldocs/ HTTP/1.0\n\n";
  105. omni[12] = "GET /cgi-bin/icons/ HTTP/1.0\n\n";
  106. omni[13] = "GET /cgi-bin/logs/ HTTP/1.0\n\n";
  107.  
  108. wnt[1]  = "GET /scripts/ HTTP/1.0\n\n"; 
  109. wnt[2]  = "GET /Default.asp HTTP/1.0\n\n";
  110. wnt[3]  = "GET /_vti_bin/ HTTP/1.0\n\n";
  111. wnt[4]  = "GET /_vti_bin/_vti_adm HTTP/1.0\n\n";
  112. wnt[5]  = "GET /_vti_bin/_vti_aut HTTP/1.0\n\n";
  113. wnt[6]  = "GET /cgi-bin/ HTTP/1.0\n\n";
  114. wnt[7]  = "GET /srchadm/ HTTP/1.0\n\n";
  115. wnt[8]  = "GET /iisadmin/ HTTP/1.0\n\n";
  116. wnt[9]  = "GET /_AuthChangeUrl? HTTP/1.0\n\n";
  117. wnt[10] = "GET /_vti_inf.html HTTP/1.0\n\n";
  118. wnt[11] = "GET ?PagesServices HTTP/1.0\n\n";
  119. wnt[12] = "GET /html/?PageServices HTTP/1.0\n\n";
  120. wnt[13] = "GET /scripts/cpshost.dll HTTP/1.0\n\n";
  121. wnt[14] = "GET /scripts/uploadn.asp HTTP/1.0\n\n";
  122. wnt[15] = "GET /scripts/uploadx.asp HTTP/1.0\n\n";
  123. wnt[16] = "GET /scripts/upload.asp HTTP/1.0\n\n";
  124. wnt[17] = "GET /scripts/repost.asp HTTP/1.0\n\n";
  125. wnt[18] = "GET /scripts/postinfo.asp HTTP/1.0\n\n";
  126. wnt[19] = "GET /scripts/run.exe HTTP/1.0\n\n";
  127. wnt[20] = "GET /ftproot/ HTTP/1.0\n\n";
  128. wnt[21] = "GET /gophroot/ HTTP/1.0\n\n";
  129. wnt[22] = "GET /scripts/iisadmin/adv.htr HTTP/1.0\n\n";
  130. wnt[23] = "GET /scripts/iisadmin/advadd.htr HTTP/1.0\n\n";
  131. wnt[24] = "GET /scripts/iisadmin/advaddu.htr HTTP/1.0\n\n";
  132. wnt[25] = "GET /scripts/iisadmin/advaddg.htr HTTP/1.0\n\n";
  133. wnt[26] = "GET /scripts/iisadmin/advaddgu.htr HTTP/1.0\n\n";
  134. wnt[27] = "GET /scripts/iisadmin/advded.htr HTTP/1.0\n\n";
  135. wnt[28] = "GET /scripts/iisadmin/advdeg.htr HTTP/1.0\n\n";
  136. wnt[29] = "GET /scripts/iisadmin/advdeny.htr HTTP/1.0\n\n";
  137. wnt[30] = "GET /scripts/iisadmin/advdeny2.htr HTTP/1.0\n\n";
  138. wnt[31] = "GET /scripts/iisadmin/advedd.htr HTTP/1.0\n\n";
  139. wnt[32] = "GET /scripts/iisadmin/adveddu.htr HTTP/1.0\n\n";
  140. wnt[33] = "GET /scripts/iisadmin/advgrant.htr HTTP/1.0\n\n";
  141. wnt[34] = "GET /scripts/iisadmin/advu.htr HTTP/1.0\n\n";
  142. wnt[35] = "GET /scripts/iisadmin/bdir.htr HTTP/1.0\n\n";
  143. wnt[36] = "GET /scripts/iisadmin/conn.htr HTTP/1.0\n\n";
  144. wnt[37] = "GET /scripts/iisadmin/dir.htr HTTP/1.0\n\n";
  145. wnt[38] = "GET /scripts/iisadmin/diradd.htr HTTP/1.0\n\n"; 
  146. wnt[39] = "GET /scripts/iisadmin/diraddu.htr HTTP/1.0\n\n";
  147. wnt[40] = "GET /scripts/iisadmin/dirdel.htr HTTP/1.0\n\n";
  148. wnt[41] = "GET /scripts/iisadmin/dirdt.htr HTTP/1.0\n\n";
  149. wnt[42] = "GET /scripts/iisadmin/dirdtu.htr HTTP/1.0\n\n";
  150. wnt[43] = "GET /scripts/iisadmin/diru.htr HTTP/1.0\n\n";
  151. wnt[44] = "GET /scripts/iisadmin/dirv.htr HTTP/1.0\n\n";
  152. wnt[45] = "GET /scripts/iisadmin/disc.htr HTTP/1.0\n\n";
  153. wnt[46] = "GET /scripts/iisadmin/disca.htr HTTP/1.0\n\n";
  154. wnt[47] = "GET /scripts/iisadmin/log.htr HTTP/1.0\n\n";
  155. wnt[48] = "GET /scripts/iisadmin/logu.htr HTTP/1.0\n\n";
  156. wnt[49] = "GET /scripts/iisadmin/msg.htr HTTP/1.0\n\n";
  157. wnt[50] = "GET /scripts/iisadmin/msgu.htr HTTP/1.0\n\n";
  158. wnt[51] = "GET /scripts/iisadmin/serv.htr HTTP/1.0\n\n";
  159. wnt[52] = "GET /scripts/iisadmin/servu.htr HTTP/1.0\n\n";
  160. wnt[53] = "GET /scripts/iisadmin/samples/ctgestb.htx HTTP/1.0\n\n";
  161. wnt[54] = "GET /scripts/iisadmin/samples/ctgestb/idc HTTP/1.0\n\n";
  162. wnt[55] = "GET /scripts/iisadmin/samples/details.htx HTTP/1.0\n\n";
  163. wnt[56] = "GET /scripts/iisadmin/samples/query.htx HTTP/1.0\n\n";
  164. wnt[57] = "GET /scripts/iisadmin/samples/query.idc HTTP/1.0\n\n";
  165. wnt[58] = "GET /scripts/iisadmin/samples/register.htx HTTP/1.0\n\n";
  166. wnt[59] = "GET /scripts/iisadmin/samples/register.idc HTTP/1.0\n\n";
  167. wnt[60] = "GET /scripts/iisadmin/samples/sample.htx HTTP/1.0\n\n";
  168. wnt[61] = "GET /scripts/iisadmin/samples/sample.idc HTTP/1.0\n\n";
  169. wnt[62] = "GET /scripts/iisadmin/samples/sample2.htx HTTP/1.0\n\n";
  170. wnt[63] = "GET /scripts/iisadmin/samples/sample3.idc HTTP/1.0\n\n";
  171. wnt[64] = "GET /scripts/iisadmin/samples/viewbook.htx HTTP/1.0\n\n";
  172. wnt[65] = "GET /scripts/iisadmin/samples/viewbook.idc HTTP/1.0\n\n";
  173. wnt[66] = "GET /scripts/iisadmin/tools/ct.htx HTTP/1.0\n\n";
  174. wnt[67] = "GET /scripts/iisadmin/tools/ctss.idc HTTP/1.0\n\n";
  175. wnt[68] = "GET /scripts/iisadmin/tools/dsnform.exe HTTP/1.0\n\n";
  176. wnt[69] = "GET /scripts/iisadmin/tools/getdrvrs.exe HTTP/1.0\n\n";
  177. wnt[70] = "GET /scripts/iisadmin/tools/mkilog.exe HTTP/1.0\n\n";
  178. wnt[71] = "GET /scripts/iisadmin/tools/newdsn.exe HTTP/1.0\n\n";
  179. wnt[72] = "GET /IISADMPWD/achg.htr HTTP/1.0\n\n";
  180. wnt[73] = "GET /IISADMPWD/aexp.htr HTTP/1.0\n\n";
  181. wnt[74] = "GET /IISADMPWD/aexp2.htr HTTP/1.0\n\n";
  182. wnt[75] = "GET /IISADMPWD/aexp2b.htr HTTP/1.0\n\n";
  183. wnt[76] = "GET /IISADMPWD/aexp3.htr HTTP/1.0\n\n";
  184. wnt[77] = "GET /IISADMPWD/aexp4.htr HTTP/1.0\n\n";
  185. wnt[78] = "GET /IISADMPWD/aexp4b.htr HTTP/1.0\n\n";
  186. wnt[79] = "GET /IISADMPWD/anot.htr HTTP/1.0\n\n";
  187. wnt[80] = "GET /IISADMPWD/anot3.htr HTTP/1.0\n\n";
  188. wnt[81] = "GET /_vti_pvt/writeto.cnf HTTP/1.0\n\n";
  189. wnt[82] = "GET /_vti_pvt/avcacl.cnf HTTP/1.0\n\n";
  190. wnt[83] = "GET /_vti_pvt/services.cnf HTTP/1.0\n\n";
  191. wnt[84] = "GET /_vti_pvt/service.stp HTTP/1.0\n\n";
  192. wnt[85] = "GET /_vti_pvt/service.cnf HTTP/1.0\n\n";
  193. wnt[86] = "GET /_vti_pvt/access.cnf HTTP/1.0\n\n";
  194. wnt[87] = "GET /_private/registrations.txt HTTP/1.0\n\n";
  195. wnt[88] = "GET /_private/registrations.htm HTTP/1.0\n\n";
  196. wnt[89] = "GET /_private/register.txt HTTP/1.0\n\n";
  197. wnt[90] = "GET /_private/orders.txt HTTP/1.0\n\n";
  198. wnt[91] = "GET /_private/orders.htm HTTP/1.0\n\n";
  199. wnt[92] = "GET /_private/form_results.htm HTTP/1.0\n\n";
  200. wnt[93] = "GET /_private/form_results.txt HTTP/1.0\n\n";
  201. wnt[94] = "GET /admisapi/fpadmin.htm HTTP/1.0\n\n";
  202. wnt[96] = "GET /scripts/Fpadmcgi.exe HTTP/1.0\n\n";
  203. wnt[97] = "GET /_vti_bin/shtml.dll HTTP/1.0\n\n";
  204. wnt[98] = "GET /_vti_bin/_vti_aut/author.dll HTTP/1.0\n\n";
  205. wnt[99] = "GET /_vti_bin/_vti_adm/admin.dll HTTP/1.0\n\n";
  206. wnt[100] = "GET /msads/Samples/selector/showcode.asp HTTP/1.0\n\n";
  207. wnt[101] = "GET /scripts/perl? HTTP/1.0\n\n";
  208. wnt[102] = "GET /scripts/proxy/w3proxy.dll HTTP/1.0\n\n";
  209. wnt[103] = "GET /iissamples/sdk/asp/docs/codebrws.asp HTTP/1.0\n\n";
  210. wnt[104] = "GET /iissamples/exair/howitworks/codebrws.asp HTTP/1.0\n\n";
  211. wnt[105] = "GET /scripts/CGImail.exe HTTP/1.0\n\n";
  212. wnt[106] = "GET /AdvWorks/equipement/catalog_type.asp HTTP/1.0\n\n";
  213. wnt[107] = "GET /scripts/iisadmin/default.htm HTTP/1.0\n\n";
  214. wnt[108] = "GET /msadc/samples/adctest.asp HTTP/1.0\n\n";
  215. wnt[109] = "GET /adsamples/config/site.csc HTTP/1.0\n\n";
  216. wnt[110] = "GET /scripts/../../cmd.exe HTTP/1.0\n\n";
  217. wnt[111] = "GET /scripts/cpshost.dll HTTP/1.0\n\n";
  218. wnt[112] = "GET /scripts/convert.bat HTTP/1.0\n\n";
  219. wnt[113] = "GET /msadc/msadcs.dll HTTP/1.0\n\n";
  220. wnt[114] = "GET /publisher/ HTTP/1.0\n\n";
  221. wnt[115] = "GET /..../Windows/Admin.pwl HTTP/1.0\n\n";
  222. wnt[116] = "GET ....../......ida/con HTTP/1.0\n\n";
  223.  
  224.  
  225. cgi[1]  = "GET /cgi-bin/AT-generate.cgi HTTP/1.0\n\n";
  226. cgi[2]  = "GET /cgi-bin/anyform.cgi HTTP/1.0\n\n";
  227. cgi[3]  = "GET /cgi-bin/aglimpse HTTP/1.0\n\n";
  228. cgi[4]  = "GET /cgi-bin/bnbform.cgi HTTP/1.0\n\n";
  229. cgi[4]  = "GET /cgi-bin/campas HTTP/1.0\n\n";
  230. cgi[5]  = "GET /cgi-bin/carbo HTTP/1.0\n\n";
  231. cgi[6]  = "GET /cgi-bin/classifieds.cgi HTTP/1.0\n\n";
  232. cgi[7]  = "GET /cgi-bin/Count.cgi HTTP/1.0\n\n";
  233. cgi[8]  = "GET /cgi-bin/dumenv.pl HTTP/1.0\n\n";
  234. cgi[9]  = "GET /cgi-bin/environ.cgi HTTP/1.0\n\n";
  235. cgi[10] = "GET /cgi-bin/file.pl HTTP/1.0\n\n";
  236. cgi[11] = "GET /cgi-bin/faxsurvey.cgi HTTP/1.0\n\n";
  237. cgi[12] = "GET /cgi-bin/formail HTTP/1.0\n\n";
  238. cgi[13] = "GET /cgi-bin/wguest.exe HTTP/1.0\n\n";
  239. cgi[14] = "GET /cgi-bin/handler HTPP/1.0\n\n";
  240. cgi[15] = "GET /cgi-bin/htmlscript HTTP/1.0\n\n";
  241. cgi[16] = "GET /info2www HTTP/1.0\n\n";
  242. cgi[17] = "GET /cgi-bin/test-cgi HTTP/1.0\n\n";
  243. cgi[18] = "GET /cgi-bin/perl.exe HTTP/1.0\n\n";
  244. cgi[19] = "GET /cgi-bin/pfdisplay.cgi HTTP\n\n";
  245. cgi[20] = "GET /cgi-bin/phf HTTP/1.0\n\n";
  246. cgi[21] = "GET /cgi-bin/php.cgi HTTP/1.0\n\n";
  247. cgi[22] = "GET /cgi-bin/script.pl HTTP/1.0\n\n";
  248.  
  249.  
  250.  
  251. if(argc < 2){
  252.       system("clear");
  253.       printf("\n\n\n\n");
  254.       printf("\t\t\tWelcome to pyroscan !!\n");
  255.       printf("\t\t     Write by www.asmbeginer.com \n");
  256.       printf("\n\n\n\n\n\n\n\n\n\n");
  257.       printf("Usage: %s <ip> -cold   scan for coldfusion\n", argv[0]);
  258.       printf("Usage: %s <ip> -lotus  scan for lotus dominos\n",
  259. argv[0]);     
  260.       printf("Usage: %s <ip> -omni   scan for omnihttpd\n", argv[0]);
  261.       printf("Usage: %s <ip> -winnt  scan for frontpage\n", argv[0]);
  262.       printf("Usage: %s <ip> -cgi    scan for /cgi-bin/ \n", argv[0]);
  263. exit(0);
  264. }
  265.         
  266. if ((he=gethostbyname (argv[1])) == NULL)
  267. {
  268.    perror("hots not found\n");
  269.    exit(0);
  270. }
  271.  
  272. start=inet_addr(argv[1]);
  273. counter=ntohl(start);
  274.  
  275.    sock=socket(AF_INET,SOCK_STREAM, 0);
  276.    bcopy(he->h_addr, (char *)&sin.sin_addr, he->h_length);
  277.    sin.sin_family=AF_INET;
  278.    sin.sin_port=htons(80);
  279.  
  280. if (connect(sock, (struct sockaddr *)&sin, sizeof(sin)) != 0)
  281. {
  282.  perror("can't creat a connection\n");
  283. }
  284.  
  285. if(argc >= 3){
  286. if(strcmp(argv[2], "-cold") == 0){
  287. while(fs++ < 31) 
  288. {
  289.    sock=socket(AF_INET,SOCK_STREAM, 0);
  290.    bcopy(he->h_addr, (char *)&sin.sin_addr, he->h_length);
  291.    sin.sin_family=AF_INET;
  292.    sin.sin_port=htons(80);
  293.    if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) != 0)
  294.    {
  295.      perror("connect");
  296.    }
  297.    
  298.    for(fusion=0; fusion < 1024;fusion++)
  299.    {
  300.     coldbuff[fusion] = '\0';
  301.    }
  302.  
  303.    send(sock,cld[fs],strlen(cld[fs]),0);
  304.    recv(sock,coldbuff,sizeof(coldbuff),0);
  305.    cld[fs] = strstr(coldbuff,msg); 
  306.    if (cld[fs] != NULL)
  307.       printf(cld[fs],"found \n");
  308.    else
  309.       printf(cld[fs],"not found \n");
  310.  
  311.    close(sock); 
  312.   }                        
  313. }
  314.  
  315. if(argc >= 3){             
  316. if(strcmp(argv[2], "-lotus") == 0){
  317. while(dm++ < 12)
  318. {
  319.  sock=socket(AF_INET, SOCK_STREAM, 0);
  320.  bcopy(he->h_addr, (char *)&sin.sin_addr, he->h_length);
  321.  sin.sin_family=AF_INET;
  322.  sin.sin_port=htons(80);
  323.  if(connect(sock, (struct sockaddr*)&sin, sizeof(sin)) != 0)
  324.  {
  325.   perror("connect");
  326.  }
  327.  for(domino=0; domino < 1024; domino++)
  328.  {
  329.   lotusbuff[domino] = '\0';
  330.  }
  331.  send(sock,lts[dm],strlen(lts[dm]),0);
  332.  recv(sock,lotusbuff,sizeof(lotusbuff),0);
  333.  lts[dm] = strstr(lotusbuff,msg);
  334.  if (lts[dm] != NULL) 
  335.   printf(lts[dm],"found \n");
  336.  else
  337.   printf(lts[dm],"not found \n"); 
  338.   }   
  339. }
  340.         
  341. if(argc >= 3){
  342. if(strcmp(argv[2], "-omni") == 0){
  343. while(ht++ < 13)
  344. {
  345.  sock=socket(AF_INET,SOCK_STREAM, 0);
  346.  bcopy(he->h_addr, (char*)&sin.sin_addr, he->h_length);
  347.  sin.sin_family=AF_INET;
  348.  sin.sin_port=htons(80);
  349.  if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) != 0)
  350.  {
  351.   perror("connect");
  352.  }
  353.  for(httpd=0; httpd < 1024; httpd++)
  354.  {
  355.   omnibuff[httpd] = '\0';
  356.  }
  357.  send(sock, omni[ht],strlen(omni[ht]),0);
  358.  recv(sock, omnibuff, sizeof(omnibuff),0);
  359.  omni[ht] = strstr(omnibuff,msg);
  360.  if (omni[ht] != NULL)
  361.   printf(omni[ht],"found \n");
  362.   else
  363.   printf(omni[ht],"not found \n"); 
  364.       }
  365. }
  366.         
  367. if(argc >= 3){
  368. if(strcmp(argv[2], "-winnt") == 0){
  369. while(db++ < 116)
  370. {
  371.  sock=socket(AF_INET,SOCK_STREAM, 0);
  372.  bcopy(he->h_addr, (char *)&sin.sin_addr, he->h_length);
  373.  sin.sin_family=AF_INET;
  374.  sin.sin_port=htons(80);
  375.  if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) != 0)
  376.  { 
  377.   perror("connect");
  378.  }
  379.   for (daube=0; daube < 1024; daube++)
  380.  {
  381.   winntbuff[daube] = '\0';
  382.  }
  383.  send(sock, wnt[db],strlen (wnt[db]),0);
  384.  recv(sock, winntbuff, sizeof(winntbuff),0);
  385.  wnt[db] = strstr(winntbuff,msg);
  386.  if (wnt[db] != NULL)
  387.   printf(wnt[db],"found \n");
  388.  else
  389.    printf(wnt[db],"not found \n");
  390.  close(sock);      
  391.      }
  392. }
  393.         
  394. if(argc >= 3){
  395. if(strcmp(argv[2], "-cgi") == 0){
  396. while(cb++ < 22)
  397. {
  398.  sock=socket(AF_INET,SOCK_STREAM, 0);
  399.  bcopy(he->h_addr, (char *)&sin.sin_addr, he->h_length);
  400.  sin.sin_family=AF_INET;
  401.  sin.sin_port=htons(80);
  402.  if (connect(sock, (struct sockaddr*)&sin, sizeof(sin)) !=0)
  403.  {
  404.   perror("connect");
  405.  }
  406.  for (cgbin=0; cgbin < 1024; cgbin++)
  407.  {
  408.  cgibuff[cgbin] = '\0';
  409.  }
  410.  send(sock, cgi[cb],strlen(cgi[cb]),0);
  411.  recv(sock, cgibuff, sizeof(cgibuff),0);
  412.  cgi[cb] = strstr(cgibuff,msg);
  413.  if (cgi[cb] != NULL)
  414.   printf(cgi[cb],"found \n");
  415.  else
  416.   printf(cgi[cb], "not found \n");
  417.  close(sock);      
  418. }
  419. }
  420. }
  421. }
  422. }
  423. }
  424. }
  425.  
  426.  
  427.