MJJ论坛

 找回密码
 注册
楼主: shc

(Bug已修复)支持200+域名后缀的全自动扫米机器人

  [复制链接]
发表于 2017-6-2 17:25:54 | 显示全部楼层
编译报错了- -
gcc -o DomainMegaBot DomainMegaBot.C
DomainMegaBot.C: In function ‘int whois_query(char*, char*, char**)’:
DomainMegaBot.C:124:63: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
         *response = realloc(*response , read_size + total_size);
                                                               ^
DomainMegaBot.C:132:51: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
     *response = realloc(*response , total_size + 1);
                                                   ^
DomainMegaBot.C: In function ‘char* Str_Conn(const char*, const char*)’:
DomainMegaBot.C:216:38: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
     char *result = malloc(len1+len2+1);
发表于 2017-6-2 17:32:08 来自手机 | 显示全部楼层
这个必须支持一下,感谢分享
发表于 2017-6-2 17:56:34 | 显示全部楼层
大佬威武,Mark一下。
 楼主| 发表于 2017-6-2 20:14:16 | 显示全部楼层

后面mjj修改了一下转换类型了,现在应该可以了
 楼主| 发表于 2017-6-2 20:17:09 | 显示全部楼层
阿威 发表于 2017-6-2 13:47
玩懂了,但是烧火需要消耗木材,能得到什么收益呢?

后面就可以用木材搭建各种各样的东西,有各类任务,反正挺好玩的,有时间可以玩一玩
 楼主| 发表于 2017-6-2 20:24:14 | 显示全部楼层
chinni 发表于 2017-6-2 17:25
编译报错了- -
gcc -o DomainMegaBot DomainMegaBot.C
DomainMegaBot.C: In function ‘int whois_query(c ...

Fixed.
发表于 2017-6-2 20:28:17 | 显示全部楼层
好东西啊,不愧是dalao
 楼主| 发表于 2017-6-2 20:42:27 | 显示全部楼层
yuqyu 发表于 2017-6-2 14:36
win下面有可能用吗。。
  1. #include<sys/socket.h>
  2. #include<netinet/in.h>
复制代码


Win下面没有这些headers 用的话需要修改不少代码
发表于 2017-6-2 20:44:21 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|MJJ论坛

Copyright MJJ论坛 © 2022 All Rights Reserved.

快速回复 返回顶部 返回列表