be a bit cleverer.
fprintf(stderr, "%s\n", data2);
}
-void irc_kline(char *addr)
+void irc_kline(char *addr, char *ip)
{
}
void usage(char **argv);
void log(char *data,...);
-void irc_kline(char *addr);
+void irc_kline(char *addr, char *ip);
void dnsbl_report(struct scan_struct *ss);
void irc_send(char *data, ...);
int dnsbl_check(const char *addr, const char *irc_nick,
-# KLINE_COMMAND <command> : Line used in issuing KLINES. One %s is required
-# within the line which will specify the klined host.
+# KLINE_COMMAND <command> : Line used in issuing KLINES. Two %s are required
+# within the line which will specify the klined
+# host and the IP address which you may find
+# useful in a URL.
# Do not add anymore ':' characters after the initial
# : character in the kline (even for a website) as
# the IRCD will reject it.
-KLINE_COMMAND KLINE *@%s :Open Proxy found on your host. Please visit www.blitzed.org/proxy for more information.
+KLINE_COMMAND KLINE *@%s :Open Proxy found on your host. Please visit www.blitzed.org/proxy?ip=%s for more information.
irc_send("PRIVMSG %s :DNSBL: %s!%s@%s appears in BL zone %s",
CONF_CHANNELS, irc_nick, irc_user, irc_addr,
CONF_DNSBL_ZONE);
- irc_kline(irc_addr);
+ irc_kline(irc_addr, (char *)addr);
STAT_DNSBL_MATCHES++;
return(1);
}
*
*/
-void irc_kline(char *addr)
+void irc_kline(char *addr, char *ip)
{
- irc_send(CONF_KLINE_COMMAND, addr);
+ irc_send(CONF_KLINE_COMMAND, addr, ip);
}
/* Create socket and connect to IRC server
void irc_reconnect();
void irc_read();
void irc_parse();
- void irc_kline(char *addr);
+ void irc_kline(char *addr, char *ip);
void irc_timer();
void irc_send(char *data, ...);
{
if((*ss->protocol->r_handler)(ss)) /* If read returns true, flag socket for closed and kline*/
{
- irc_kline(ss->irc_addr);
+ irc_kline(ss->irc_addr, ss->addr);
if(CONF_DNSBL_FROM && CONF_DNSBL_TO &&
CONF_SENDMAIL && !ss->verbose)