=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== anope-2.0.9/Config-136-CAN_QUICK="no" anope-2.0.9/Config:137:SOURCE_DIR=`dirname $0` anope-2.0.9/Config-138- ############################################## anope-2.0.9/Config-288- fi anope-2.0.9/Config:289: if [ `echo "$INPUT" | grep -c '[^0-7]'` -gt 0 ] ; then anope-2.0.9/Config-290- echo "$UMASK is not a valid octal number!" anope-2.0.9/Config-291- else anope-2.0.9/Config:292: if [ "`echo $INPUT | cut -c1`" != "0" ] ; then anope-2.0.9/Config-293- INPUT=0$INPUT ############################################## anope-2.0.9/README.md-21- anope-2.0.9/README.md:22:Now change to the directory where you installed Anope to, e.g. `$ cd ~/services/` anope-2.0.9/README.md-23- ############################################## anope-2.0.9/README.md-41- anope-2.0.9/README.md:42:Run `$ ./bin/services` to start Anope. If asked to provide logs for support, use the `--support` flag, e.g.: `$ ./bin/services --support` anope-2.0.9/README.md-43- ############################################## anope-2.0.9/cmake/NSIS.template.in-320- Push "$0;" anope-2.0.9/cmake/NSIS.template.in:321: Call un.StrStr ; Find `$0;` in $1 anope-2.0.9/cmake/NSIS.template.in-322- Pop $2 ; pos of our dir ############################################## anope-2.0.9/data/example.chk-38-then anope-2.0.9/data/example.chk:39: ANOPID=`cat "$ANODATA/$ANOPIDF"` anope-2.0.9/data/example.chk-40- kill -0 $ANOPID 2>/dev/null ############################################## anope-2.0.9/include/modules/httpd.h-130- { anope-2.0.9/include/modules/httpd.h:131: return this->clientaddr.addr(); anope-2.0.9/include/modules/httpd.h-132- } ############################################## anope-2.0.9/include/modules/os_session.h-17- anope-2.0.9/include/modules/os_session.h:18: Session(const sockaddrs &ip, int len) : addr(ip, len), count(1), hits(0) { } anope-2.0.9/include/modules/os_session.h-19-}; ############################################## anope-2.0.9/include/sockets.h-57- */ anope-2.0.9/include/sockets.h:58: Anope::string addr() const; anope-2.0.9/include/sockets.h-59- ############################################## anope-2.0.9/language/update.sh-12-do anope-2.0.9/language/update.sh:13: msgmerge -v -s -U $f `echo $f | cut -d'.' -f1`.pot anope-2.0.9/language/update.sh-14-done ############################################## anope-2.0.9/modules/commands/os_defcon.cpp-507- anope-2.0.9/modules/commands/os_defcon.cpp:508: Session *session = session_service->FindSession(u->ip.addr()); anope-2.0.9/modules/commands/os_defcon.cpp-509- Exception *exception = session_service->FindException(u); ############################################## anope-2.0.9/modules/commands/os_defcon.cpp-516- { anope-2.0.9/modules/commands/os_defcon.cpp:517: Anope::string message = DConfig.sle_reason.replace_all_cs("%IP%", u->ip.addr()); anope-2.0.9/modules/commands/os_defcon.cpp-518- u->SendMessage(OperServ, message); ############################################## anope-2.0.9/modules/commands/os_dns.cpp-503- anope-2.0.9/modules/commands/os_dns.cpp:504: sockaddrs addr(params[2]); anope-2.0.9/modules/commands/os_dns.cpp-505- if (!addr.valid()) ############################################## anope-2.0.9/modules/commands/os_list.cpp-195- u2->nick + "!" + u2->GetIdent() + "@" + u2->host, anope-2.0.9/modules/commands/os_list.cpp:196: u2->nick + "!" + u2->GetIdent() + "@" + u2->ip.addr() anope-2.0.9/modules/commands/os_list.cpp-197- }; ############################################## anope-2.0.9/modules/commands/os_session.cpp-66- Exception *e = *it; anope-2.0.9/modules/commands/os_session.cpp:67: if (Anope::Match(u->host, e->mask) || Anope::Match(u->ip.addr(), e->mask)) anope-2.0.9/modules/commands/os_session.cpp-68- return e; ############################################## anope-2.0.9/modules/commands/os_session.cpp-666- { anope-2.0.9/modules/commands/os_session.cpp:667: Anope::string message = sle_reason.replace_all_cs("%IP%", u->ip.addr()); anope-2.0.9/modules/commands/os_session.cpp-668- u->SendMessage(OperServ, message); ############################################## anope-2.0.9/modules/extra/m_sql_authentication.cpp-132- q.SetValue("n", u->nick); anope-2.0.9/modules/extra/m_sql_authentication.cpp:133: q.SetValue("i", u->ip.addr()); anope-2.0.9/modules/extra/m_sql_authentication.cpp-134- } ############################################## anope-2.0.9/modules/extra/m_sql_oper.cpp-171- q.SetValue("a", u->Account()->display); anope-2.0.9/modules/extra/m_sql_oper.cpp:172: q.SetValue("i", u->ip.addr()); anope-2.0.9/modules/extra/m_sql_oper.cpp-173- ############################################## anope-2.0.9/modules/extra/stats/irc2sql/irc2sql.cpp-106- query.SetValue("realname", u->realname); anope-2.0.9/modules/extra/stats/irc2sql/irc2sql.cpp:107: query.SetValue("ip", u->ip.addr()); anope-2.0.9/modules/extra/stats/irc2sql/irc2sql.cpp-108- query.SetValue("ident", u->GetIdent()); ############################################## anope-2.0.9/modules/m_dns.cpp-162- anope-2.0.9/modules/m_dns.cpp:163: record.rdata = addrs.addr(); anope-2.0.9/modules/m_dns.cpp-164- break; ############################################## anope-2.0.9/modules/m_dns.cpp-180- anope-2.0.9/modules/m_dns.cpp:181: record.rdata = addrs.addr(); anope-2.0.9/modules/m_dns.cpp-182- break; ############################################## anope-2.0.9/modules/m_dns.cpp-478- { anope-2.0.9/modules/m_dns.cpp:479: Log(LOG_DEBUG_2) << "Resolver: New client from " << addr.addr(); anope-2.0.9/modules/m_dns.cpp-480- } ############################################## anope-2.0.9/modules/m_dns.cpp-483- { anope-2.0.9/modules/m_dns.cpp:484: Log(LOG_DEBUG_2) << "Resolver: Exiting client from " << clientaddr.addr(); anope-2.0.9/modules/m_dns.cpp-485- delete packet; ############################################## anope-2.0.9/modules/m_dns.cpp-629- anope-2.0.9/modules/m_dns.cpp:630: Log(LOG_DEBUG_2) << "Resolver: Notifying slave " << packet->addr.addr(); anope-2.0.9/modules/m_dns.cpp-631- ############################################## anope-2.0.9/modules/m_dns.cpp-854- { anope-2.0.9/modules/m_dns.cpp:855: Log(LOG_DEBUG_2) << "Resolver: Received an answer from the wrong nameserver, Bad NAT or DNS forging attempt? '" << this->addrs.addr() << "' != '" << from->addr() << "'"; anope-2.0.9/modules/m_dns.cpp-856- return true; ############################################## anope-2.0.9/modules/m_dnsbl.cpp-73- anope-2.0.9/modules/m_dnsbl.cpp:74: Anope::string reason = this->blacklist.reason, addr = user->ip.addr(); anope-2.0.9/modules/m_dnsbl.cpp-75- reason = reason.replace_all_cs("%n", user->nick); ############################################## anope-2.0.9/modules/m_dnsbl.cpp-169- anope-2.0.9/modules/m_dnsbl.cpp:170: if (this->exempts.count(user->ip.addr())) anope-2.0.9/modules/m_dnsbl.cpp-171- { anope-2.0.9/modules/m_dnsbl.cpp:172: Log(LOG_DEBUG) << "User " << user->nick << " is exempt from dnsbl check - ip: " << user->ip.addr(); anope-2.0.9/modules/m_dnsbl.cpp-173- return; ############################################## anope-2.0.9/modules/m_httpd.cpp-96- anope-2.0.9/modules/m_httpd.cpp:97: MyHTTPClient(HTTPProvider *l, int f, const sockaddrs &a) : Socket(f, l->IsIPv6()), HTTPClient(l, f, a), provider(l), header_done(false), served(false), ip(a.addr()), content_length(0), action(ACTION_NONE), created(Anope::CurTime) anope-2.0.9/modules/m_httpd.cpp-98- { anope-2.0.9/modules/m_httpd.cpp:99: Log(LOG_DEBUG, "httpd") << "Accepted connection " << f << " from " << a.addr(); anope-2.0.9/modules/m_httpd.cpp-100- } ############################################## anope-2.0.9/modules/m_httpd.cpp-146- this->message.post_data[token.substr(0, sz)] = HTTPUtils::URLDecode(token.substr(sz + 1)); anope-2.0.9/modules/m_httpd.cpp:147: Log(LOG_DEBUG_2) << "HTTP POST from " << this->clientaddr.addr() << ": " << token.substr(0, sz) << ": " << this->message.post_data[token.substr(0, sz)]; anope-2.0.9/modules/m_httpd.cpp-148- } ############################################## anope-2.0.9/modules/m_httpd.cpp-157- { anope-2.0.9/modules/m_httpd.cpp:158: Log(LOG_DEBUG_2) << "HTTP from " << this->clientaddr.addr() << ": " << buf; anope-2.0.9/modules/m_httpd.cpp-159- ############################################## anope-2.0.9/modules/m_proxyscan.cpp-85- reason = reason.replace_all_cs("%t", this->GetType()); anope-2.0.9/modules/m_proxyscan.cpp:86: reason = reason.replace_all_cs("%i", this->conaddr.addr()); anope-2.0.9/modules/m_proxyscan.cpp-87- reason = reason.replace_all_cs("%p", stringify(this->conaddr.port())); ############################################## anope-2.0.9/modules/m_proxyscan.cpp-89- BotInfo *OperServ = Config->GetClient("OperServ"); anope-2.0.9/modules/m_proxyscan.cpp:90: Log(OperServ) << "PROXYSCAN: Open " << this->GetType() << " proxy found on " << this->conaddr.addr() << ":" << this->conaddr.port() << " (" << reason << ")"; anope-2.0.9/modules/m_proxyscan.cpp:91: XLine *x = new XLine("*@" + this->conaddr.addr(), OperServ ? OperServ->nick : "", Anope::CurTime + this->proxy.duration, reason, XLineManager::GenerateUID()); anope-2.0.9/modules/m_proxyscan.cpp-92- if (add_to_akill && akills) ############################################## anope-2.0.9/modules/m_proxyscan.cpp-365- continue; anope-2.0.9/modules/m_proxyscan.cpp:366: con->Connect(user->ip.addr(), p.ports[k]); anope-2.0.9/modules/m_proxyscan.cpp-367- } ############################################## anope-2.0.9/modules/m_xmlrpc_main.cpp-225- request.reply("chost", iface->Sanitize(u->chost)); anope-2.0.9/modules/m_xmlrpc_main.cpp:226: request.reply("ip", u->ip.addr()); anope-2.0.9/modules/m_xmlrpc_main.cpp-227- request.reply("timestamp", stringify(u->timestamp)); ############################################## anope-2.0.9/modules/protocol/inspircd12.cpp-131- { anope-2.0.9/modules/protocol/inspircd12.cpp:132: cidr addr(x->GetHost()); anope-2.0.9/modules/protocol/inspircd12.cpp-133- if (addr.valid()) ############################################## anope-2.0.9/modules/protocol/inspircd12.cpp-222- { anope-2.0.9/modules/protocol/inspircd12.cpp:223: cidr addr(x->GetHost()); anope-2.0.9/modules/protocol/inspircd12.cpp-224- if (addr.valid()) ############################################## anope-2.0.9/modules/protocol/inspircd3.cpp-141- { anope-2.0.9/modules/protocol/inspircd3.cpp:142: cidr addr(x->GetHost()); anope-2.0.9/modules/protocol/inspircd3.cpp-143- if (addr.valid()) ############################################## anope-2.0.9/modules/protocol/inspircd3.cpp-238- { anope-2.0.9/modules/protocol/inspircd3.cpp:239: cidr addr(x->GetHost()); anope-2.0.9/modules/protocol/inspircd3.cpp-240- if (addr.valid()) ############################################## anope-2.0.9/modules/protocol/unreal.cpp-898- ip_addr.ntop(params[9].length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str()); anope-2.0.9/modules/protocol/unreal.cpp:899: ip = ip_addr.addr(); anope-2.0.9/modules/protocol/unreal.cpp-900- } ############################################## anope-2.0.9/modules/protocol/unreal4.cpp-962- ip_addr.ntop(params[9].length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str()); anope-2.0.9/modules/protocol/unreal4.cpp:963: ip = ip_addr.addr(); anope-2.0.9/modules/protocol/unreal4.cpp-964- } ############################################## anope-2.0.9/modules/protocol/unreal4.cpp-1274- ip_addr.ntop(ip.length() == 8 ? AF_INET : AF_INET6, decoded_ip.c_str()); anope-2.0.9/modules/protocol/unreal4.cpp:1275: ip = ip_addr.addr(); anope-2.0.9/modules/protocol/unreal4.cpp-1276- } ############################################## anope-2.0.9/modules/pseudoclients/operserv.cpp-58- anope-2.0.9/modules/pseudoclients/operserv.cpp:59: if (x->GetHost().empty() || Anope::Match(u->host, x->GetHost()) || Anope::Match(u->ip.addr(), x->GetHost())) anope-2.0.9/modules/pseudoclients/operserv.cpp-60- return true; ############################################## anope-2.0.9/modules/third/language/update.sh-4-do anope-2.0.9/modules/third/language/update.sh:5: BASE=`basename $f | cut -d'.' -f1` anope-2.0.9/modules/third/language/update.sh-6- xgettext -C -s -d $BASE -o $BASE.pot --from-code=utf-8 --keyword --keyword=_ $f ############################################## anope-2.0.9/modules/third/language/update.sh-10-do anope-2.0.9/modules/third/language/update.sh:11: msgmerge -v -s -U $f `basename $f | cut -d'.' -f1`.pot anope-2.0.9/modules/third/language/update.sh-12-done ############################################## anope-2.0.9/modules/webcpanel/pages/index.cpp-102- // Rate limit check. anope-2.0.9/modules/webcpanel/pages/index.cpp:103: Anope::string ip = client->clientaddr.addr(); anope-2.0.9/modules/webcpanel/pages/index.cpp-104- ############################################## anope-2.0.9/modules/webcpanel/webcpanel.cpp-270- CommandSource source(user, NULL, nc, &my_reply, bi); anope-2.0.9/modules/webcpanel/webcpanel.cpp:271: source.ip = client->clientaddr.addr(); anope-2.0.9/modules/webcpanel/webcpanel.cpp-272- ############################################## anope-2.0.9/modules/webcpanel/webcpanel.cpp-310- CommandSource source(nc->display, NULL, nc, &my_reply, bi); anope-2.0.9/modules/webcpanel/webcpanel.cpp:311: source.ip = client->clientaddr.addr(); anope-2.0.9/modules/webcpanel/webcpanel.cpp-312- ############################################## anope-2.0.9/src/mail.cpp-15- anope-2.0.9/src/mail.cpp:16:Mail::Message::Message(const Anope::string &sf, const Anope::string &mailto, const Anope::string &a, const Anope::string &s, const Anope::string &m) : Thread(), sendmail_path(Config->GetBlock("mail")->Get<const Anope::string>("sendmailpath")), send_from(sf), mail_to(mailto), addr(a), subject(s), message(m), dont_quote_addresses(Config->GetBlock("mail")->Get<bool>("dontquoteaddresses")), success(false) anope-2.0.9/src/mail.cpp-17-{ ############################################## anope-2.0.9/src/misc.cpp-742- memcpy(static_cast<void*>(&addr), addrresult->ai_addr, addrresult->ai_addrlen); anope-2.0.9/src/misc.cpp:743: result = addr.addr(); anope-2.0.9/src/misc.cpp-744- Log(LOG_DEBUG_2) << "Resolver: " << host << " -> " << result; ############################################## anope-2.0.9/src/modes.cpp-797- anope-2.0.9/src/modes.cpp:798: sockaddrs addr(cidr_ip); anope-2.0.9/src/modes.cpp-799- ############################################## anope-2.0.9/src/modes.cpp-888- else if (!this->host.empty() && !Anope::Match(u->GetDisplayedHost(), this->host) && !Anope::Match(u->GetCloakedHost(), this->host) && anope-2.0.9/src/modes.cpp:889: (!full || (!Anope::Match(u->host, this->host) && !Anope::Match(u->ip.addr(), this->host)))) anope-2.0.9/src/modes.cpp-890- ret = false; ############################################## anope-2.0.9/src/socket_clients.cpp-59- anope-2.0.9/src/socket_clients.cpp:60:ClientSocket::ClientSocket(ListenSocket *l, const sockaddrs &addr) : ls(l), clientaddr(addr) anope-2.0.9/src/socket_clients.cpp-61-{ ############################################## anope-2.0.9/src/sockets.cpp-76- anope-2.0.9/src/sockets.cpp:77:Anope::string sockaddrs::addr() const anope-2.0.9/src/sockets.cpp-78-{ ############################################## anope-2.0.9/src/sockets.cpp-257- anope-2.0.9/src/sockets.cpp:258:cidr::cidr(const sockaddrs &a, unsigned char len) : addr(a) anope-2.0.9/src/sockets.cpp-259-{ anope-2.0.9/src/sockets.cpp:260: this->cidr_ip = a.addr(); anope-2.0.9/src/sockets.cpp-261- this->cidr_len = len; ############################################## anope-2.0.9/src/tools/anoperc.in-27- anope-2.0.9/src/tools/anoperc.in:28: PID=`cat $ANOPEPID` anope-2.0.9/src/tools/anoperc.in-29- kill -0 $PID 2>/dev/null ############################################## anope-2.0.9/src/tools/anoperc.in-49- if [ -f $ANOPEPID ] ; then anope-2.0.9/src/tools/anoperc.in:50: PID=`cat $ANOPEPID` anope-2.0.9/src/tools/anoperc.in-51- kill -0 $PID 2>/dev/null ############################################## anope-2.0.9/src/tools/anoperc.in-74- echo "Terminating Anope" anope-2.0.9/src/tools/anoperc.in:75: kill -15 `cat $ANOPEPID` anope-2.0.9/src/tools/anoperc.in-76- ############################################## anope-2.0.9/src/tools/anoperc.in-78- if [ -f $ANOPEPID ] ; then anope-2.0.9/src/tools/anoperc.in:79: PID=`cat $ANOPEPID` anope-2.0.9/src/tools/anoperc.in-80- kill -0 $PID 2>/dev/null ############################################## anope-2.0.9/src/tools/anoperc.in-91- echo "Restarting Anope" anope-2.0.9/src/tools/anoperc.in:92: kill -15 `cat $ANOPEPID` anope-2.0.9/src/tools/anoperc.in-93- sleep 1 ############################################## anope-2.0.9/src/tools/anoperc.in-110- echo "Saving Databases and Rehashing Configuration" anope-2.0.9/src/tools/anoperc.in:111: kill -1 `cat $ANOPEPID` anope-2.0.9/src/tools/anoperc.in-112- ############################################## anope-2.0.9/src/tools/anopesmtp.cpp-227- anope-2.0.9/src/tools/anopesmtp.cpp:228: if ((addr.sin_addr.s_addr = inet_addr(host)) == INADDR_NONE) anope-2.0.9/src/tools/anopesmtp.cpp-229- { ############################################## anope-2.0.9/src/users.cpp-785- anope-2.0.9/src/users.cpp:786: sockaddrs addr(mhost); anope-2.0.9/src/users.cpp-787- if (addr.valid() && addr.sa.sa_family == AF_INET)