=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== inspircd-3.8.0/configure-246- if (!prompt_bool $interactive, "Are you sure you want to build as the $group[0] group?", 0) { inspircd-3.8.0/configure:247: # PACKAGERS: You do not need to delete this check. Use `--gid $(id -g)` or `--gid 0` instead. inspircd-3.8.0/configure-248- say STDERR "If you are sure you want to build as the $group[0] group pass the --gid $group[2] flag." unless $interactive; ############################################## inspircd-3.8.0/configure-273- if (!prompt_bool $interactive, "Are you sure you want to build as the $user[0] user?", 0) { inspircd-3.8.0/configure:274: # PACKAGERS: You do not need to delete this check. Use `--uid $(id -u)` or `--uid 0` instead. inspircd-3.8.0/configure-275- say STDERR "If you are sure you want to build as the $user[0] user pass the --uid $user[2] flag." unless $interactive; ############################################## inspircd-3.8.0/configure-309-You can obtain the latest stable version from https://www.inspircd.org or by inspircd-3.8.0/configure:310:running `<|GREEN git checkout $(git describe --abbrev=0 --tags insp3)|>` if you are inspircd-3.8.0/configure-311-installing from Git. ############################################## inspircd-3.8.0/include/modules.h-64-/** The event was not explicitly allowed or denied. */ inspircd-3.8.0/include/modules.h:65:#define MOD_RES_PASSTHRU (ModResult(0)) inspircd-3.8.0/include/modules.h-66- ############################################## inspircd-3.8.0/include/modules/httpd.h-196- : type(request_type) inspircd-3.8.0/include/modules/httpd.h:197: , ipaddr(ip) inspircd-3.8.0/include/modules/httpd.h-198- , postdata(pdata) ############################################## inspircd-3.8.0/include/socket.h-74- /** Return IP only */ inspircd-3.8.0/include/socket.h:75: std::string addr() const; inspircd-3.8.0/include/socket.h-76- /** Return human-readable IP/port pair */ ############################################## inspircd-3.8.0/include/xline.h-305- ZLine(time_t s_time, unsigned long d, const std::string& src, const std::string& re, const std::string& ip) inspircd-3.8.0/include/xline.h:306: : XLine(s_time, d, src, re, "Z"), ipaddr(ip) inspircd-3.8.0/include/xline.h-307- { ############################################## inspircd-3.8.0/make/configure.pm-101- my $compiler = shift; inspircd-3.8.0/make/configure.pm:102: return 0 unless run_test("`$compiler`", !system "$compiler -v ${\CONFIGURE_ERROR_PIPE}"); inspircd-3.8.0/make/configure.pm:103: return 0 unless run_test("`$compiler`", test_file($compiler, 'compiler.cpp', '-fno-rtti'), 'compatible'); inspircd-3.8.0/make/configure.pm-104- return 1; ############################################## inspircd-3.8.0/make/directive.pm-148- # Try to execute the command... inspircd-3.8.0/make/directive.pm:149: chomp(my $result = `$command ${\DIRECTIVE_ERROR_PIPE}`); inspircd-3.8.0/make/directive.pm-150- unless ($?) { inspircd-3.8.0/make/directive.pm:151: print_format "Execution of `<|GREEN $command|>` succeeded: <|BOLD $result|>\n"; inspircd-3.8.0/make/directive.pm-152- return $result; ############################################## inspircd-3.8.0/make/directive.pm-158- if (defined $ENV{$environment}) { inspircd-3.8.0/make/directive.pm:159: print_format "Execution of `<|GREEN $command|>` failed; using the environment: <|BOLD $ENV{$environment}|>\n"; inspircd-3.8.0/make/directive.pm-160- return $ENV{$environment}; ############################################## inspircd-3.8.0/make/directive.pm-165- if (defined $defaults) { inspircd-3.8.0/make/directive.pm:166: print_format "Execution of `<|GREEN $command|>` failed; using the defaults: <|BOLD $defaults|>\n"; inspircd-3.8.0/make/directive.pm-167- return $defaults; ############################################## inspircd-3.8.0/make/directive.pm-170- # Executing the command failed and we don't have any defaults so give up. inspircd-3.8.0/make/directive.pm:171: __error $file, "`<|GREEN $command|>` exited with a non-zero exit code!"; inspircd-3.8.0/make/directive.pm-172-} ############################################## inspircd-3.8.0/make/directive.pm-177- # Try to look up the compiler flags with pkg-config... inspircd-3.8.0/make/directive.pm:178: chomp(my $flags = `pkg-config --cflags $name ${\DIRECTIVE_ERROR_PIPE}`); inspircd-3.8.0/make/directive.pm-179- unless ($?) { ############################################## inspircd-3.8.0/make/directive.pm-204- # Try to look up the linker flags with pkg-config... inspircd-3.8.0/make/directive.pm:205: chomp(my $flags = `pkg-config --libs $name ${\DIRECTIVE_ERROR_PIPE}`); inspircd-3.8.0/make/directive.pm-206- unless ($?) { ############################################## inspircd-3.8.0/make/template/inspircd-174- my $pid = getprocessid(); inspircd-3.8.0/make/template/inspircd:175: system("kill -HUP $pid >/dev/null 2>&1"); inspircd-3.8.0/make/template/inspircd-176- print "InspIRCd rehashed (pid: $pid).\n"; ############################################## inspircd-3.8.0/make/template/inspircd-343- print "Stopping InspIRCd (pid: $pid)...\n"; inspircd-3.8.0/make/template/inspircd:344: my $maxwait = (`ps -o command $pid 2>/dev/null` =~ /valgrind/i) ? 90 : 15; inspircd-3.8.0/make/template/inspircd-345- kill TERM => $pid or die "Cannot terminate IRCd: $!\n"; ############################################## inspircd-3.8.0/src/coremods/core_dns.cpp-170- inspircd-3.8.0/src/coremods/core_dns.cpp:171: record.rdata = addrs.addr(); inspircd-3.8.0/src/coremods/core_dns.cpp-172- break; ############################################## inspircd-3.8.0/src/coremods/core_dns.cpp-186- inspircd-3.8.0/src/coremods/core_dns.cpp:187: record.rdata = addrs.addr(); inspircd-3.8.0/src/coremods/core_dns.cpp-188- ############################################## inspircd-3.8.0/src/coremods/core_dns.cpp-322- inspircd-3.8.0/src/coremods/core_dns.cpp:323: q.name = ip.addr() + ".in-addr.arpa"; inspircd-3.8.0/src/coremods/core_dns.cpp-324- } ############################################## inspircd-3.8.0/src/coremods/core_dns.cpp-446- inspircd-3.8.0/src/coremods/core_dns.cpp:447: ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Processing request to lookup " + req->question.name + " of type " + ConvToStr(req->question.type) + " to " + this->myserver.addr()); inspircd-3.8.0/src/coremods/core_dns.cpp-448- ############################################## inspircd-3.8.0/src/modules/extra/m_geo_maxmind.cpp-109- int result; inspircd-3.8.0/src/modules/extra/m_geo_maxmind.cpp:110: MMDB_lookup_result_s lookup = MMDB_lookup_sockaddr(&mmdb, &sa.sa, &result); inspircd-3.8.0/src/modules/extra/m_geo_maxmind.cpp-111- if (result != MMDB_SUCCESS || !lookup.found_entry) ############################################## inspircd-3.8.0/src/modules/m_cgiirc.cpp-379- cmd.WriteLog("Connecting user %s is using an ident gateway; changing their IP from %s to %s and their ident from %s to %s.", inspircd-3.8.0/src/modules/m_cgiirc.cpp:380: user->uuid.c_str(), user->GetIPString().c_str(), address.addr().c_str(), user->ident.c_str(), newident.c_str()); inspircd-3.8.0/src/modules/m_cgiirc.cpp-381- ############################################## inspircd-3.8.0/src/modules/m_spanningtree/treesocket1.cpp-69- state = I_ERROR; inspircd-3.8.0/src/modules/m_spanningtree/treesocket1.cpp:70: SetError("Bind address '" + bind.addr() + "' is not the same address family as destination address '" + dest.addr() + "'"); inspircd-3.8.0/src/modules/m_spanningtree/treesocket1.cpp-71- TreeSocket::OnError(I_ERR_BIND); ############################################## inspircd-3.8.0/src/modules/m_spanningtree/treesocket1.cpp-84- : BufferedSocket(newfd) inspircd-3.8.0/src/modules/m_spanningtree/treesocket1.cpp:85: , linkID("inbound from " + client->addr()) inspircd-3.8.0/src/modules/m_spanningtree/treesocket1.cpp-86- , LinkState(WAIT_AUTH_1) ############################################## inspircd-3.8.0/src/modules/m_spanningtree/utils.cpp-42- inspircd-3.8.0/src/modules/m_spanningtree/utils.cpp:43: std::string incomingip = client->addr(); inspircd-3.8.0/src/modules/m_spanningtree/utils.cpp-44- ############################################## inspircd-3.8.0/src/modules/m_httpd.cpp-423- inspircd-3.8.0/src/modules/m_httpd.cpp:424: sockets.push_front(new HttpServerSocket(nfd, client->addr(), from, client, server, timeoutsec)); inspircd-3.8.0/src/modules/m_httpd.cpp-425- return MOD_RES_ALLOW; ############################################## inspircd-3.8.0/src/serializable.cpp-204- .Store("awaytime", awaytime) inspircd-3.8.0/src/serializable.cpp:205: .Store("client_sa.addr", client_sa.addr()) inspircd-3.8.0/src/serializable.cpp-206- .Store("client_sa.port", client_sa.port()) ############################################## inspircd-3.8.0/src/serializable.cpp-278- .Store("password", password) inspircd-3.8.0/src/serializable.cpp:279: .Store("server_sa.addr", server_sa.addr()) inspircd-3.8.0/src/serializable.cpp-280- .Store("server_sa.port", server_sa.port()); ############################################## inspircd-3.8.0/src/socket.cpp-235- inspircd-3.8.0/src/socket.cpp:236:std::string irc::sockets::sockaddrs::addr() const inspircd-3.8.0/src/socket.cpp-237-{ ############################################## inspircd-3.8.0/src/socket.cpp-256- // If we have reached this point then we have encountered a bug. inspircd-3.8.0/src/socket.cpp:257: ServerInstance->Logs->Log("SOCKET", LOG_DEBUG, "BUG: irc::sockets::sockaddrs::addr(): socket type %d is unknown!", family()); inspircd-3.8.0/src/socket.cpp-258- return "<unknown>"; ############################################## inspircd-3.8.0/src/socket.cpp-426- memcpy(base, bits, len); inspircd-3.8.0/src/socket.cpp:427: return sa.addr() + "/" + ConvToStr((int)length); inspircd-3.8.0/src/socket.cpp-428-} ############################################## inspircd-3.8.0/src/users.cpp-712- { inspircd-3.8.0/src/users.cpp:713: cachedip = client_sa.addr(); inspircd-3.8.0/src/users.cpp-714- /* IP addresses starting with a : on irc are a Bad Thing (tm) */ ############################################## inspircd-3.8.0/tools/mkheaders-80- my $ignored_args = join ' ', map { "--ignore-rev $_" } @ignored_revisions; inspircd-3.8.0/tools/mkheaders:81: for my $line (split /\n+/, `git blame $ignored_args --incremental -w HEAD -- $path`) { inspircd-3.8.0/tools/mkheaders-82- if ($line =~ /^([0-9a-f]{40})(?:\s\d+){3}$/) { ############################################## inspircd-3.8.0/tools/mkheaders-96- for my $commit (uniq @{$author{COMMITS}}) { inspircd-3.8.0/tools/mkheaders:97: my $details = `git rev-list --format=%B --max-count=1 $commit`; inspircd-3.8.0/tools/mkheaders-98- while ($details =~ /co-authored-by: ([^<]+<[^>]+>)/gi) { ############################################## inspircd-3.8.0/tools/genssl-62-# Check whether the user has the required tools installed. inspircd-3.8.0/tools/genssl:63:my $has_gnutls = `$certtool --version v 2>/dev/null`; inspircd-3.8.0/tools/genssl-64-my $has_openssl = !system 'openssl version >/dev/null 2>&1'; ############################################## inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c-56-#ifdef __i386__ inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c:57:#define BF_ASM 1 inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c-58-#define BF_SCALE 1 inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c-59-#elif defined(__x86_64__) || defined(__alpha__) || defined(__hppa__) inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c:60:#define BF_ASM 0 inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c-61-#define BF_SCALE 1 inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c-62-#else inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c:63:#define BF_ASM 0 inspircd-3.8.0/vendor/bcrypt/crypt_blowfish.c-64-#define BF_SCALE 0 ############################################## inspircd-3.8.0/vendor/update-60- $success ||= execute 'git', 'clone', $info->{git}, $unpackdir; inspircd-3.8.0/vendor/update:61: chomp(my $tag = `git -C $unpackdir describe --abbrev=0 --tags HEAD 2>/dev/null`) unless $success; inspircd-3.8.0/vendor/update-62- $success ||= execute 'git', '-C', $unpackdir, 'checkout', $tag if $tag; inspircd-3.8.0/vendor/update:63: chomp($info->{version} = `git -C $unpackdir describe --always --tags HEAD 2>/dev/null`); inspircd-3.8.0/vendor/update-64- } elsif (defined $info->{tarball}) { ############################################## inspircd-3.8.0/win/NSIS.template.in-352- Push "$0;" inspircd-3.8.0/win/NSIS.template.in:353: Call un.StrStr ; Find `$0;` in $1 inspircd-3.8.0/win/NSIS.template.in-354- Pop $2 ; pos of our dir ############################################## inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/make/template/inspircd-174- my $pid = getprocessid(); inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/make/template/inspircd:175: system("kill -HUP $pid >/dev/null 2>&1"); inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/make/template/inspircd-176- print "InspIRCd rehashed (pid: $pid).\n"; ############################################## inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/make/template/inspircd-343- print "Stopping InspIRCd (pid: $pid)...\n"; inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/make/template/inspircd:344: my $maxwait = (`ps -o command $pid 2>/dev/null` =~ /valgrind/i) ? 90 : 15; inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/make/template/inspircd-345- kill TERM => $pid or die "Cannot terminate IRCd: $!\n"; ############################################## inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/tools/genssl-62-# Check whether the user has the required tools installed. inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/tools/genssl:63:my $has_gnutls = `$certtool --version v 2>/dev/null`; inspircd-3.8.0/.pc/debian.set-script-interpreter-directly.patch/tools/genssl-64-my $has_openssl = !system 'openssl version >/dev/null 2>&1'; ############################################## inspircd-3.8.0/.pc/debian.use-http-parser-lib.patch/src/modules/m_httpd.cpp-423- inspircd-3.8.0/.pc/debian.use-http-parser-lib.patch/src/modules/m_httpd.cpp:424: sockets.push_front(new HttpServerSocket(nfd, client->addr(), from, client, server, timeoutsec)); inspircd-3.8.0/.pc/debian.use-http-parser-lib.patch/src/modules/m_httpd.cpp-425- return MOD_RES_ALLOW;