=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== btanks-0.9.8083/video.txt-1-grab video in GL mode (full shots): btanks-0.9.8083/video.txt:2:recordmydesktop -windowid `xwininfo -root -tree | grep Battle | awk '{ print $1; } '` --overwrite -fps 15 --no-sound --full-shots btanks-0.9.8083/video.txt-3- ############################################## btanks-0.9.8083/mrt/tcp_socket.cpp-64- if (!bindaddr.empty()) { btanks-0.9.8083/mrt/tcp_socket.cpp:65: addr.sin_addr.s_addr = inet_addr(bindaddr.c_str()); btanks-0.9.8083/mrt/tcp_socket.cpp-66- } ############################################## btanks-0.9.8083/mrt/tcp_socket.cpp-100- addr.sin_port = htons(port); btanks-0.9.8083/mrt/tcp_socket.cpp:101: addr.sin_addr.s_addr = inet_addr(host.c_str()); btanks-0.9.8083/mrt/tcp_socket.cpp-102- ############################################## btanks-0.9.8083/mrt/sys_socket.cpp-42-const std::string Socket::addr::getName() const { btanks-0.9.8083/mrt/sys_socket.cpp:43: struct hostent *he = gethostbyaddr((char *)&ip, sizeof(ip), AF_INET); btanks-0.9.8083/mrt/sys_socket.cpp-44- if (he == NULL) ############################################## btanks-0.9.8083/mrt/sys_socket.cpp-67-#ifdef _WINDOWS btanks-0.9.8083/mrt/sys_socket.cpp:68: this->ip = inet_addr(ipport[0].c_str()); btanks-0.9.8083/mrt/sys_socket.cpp-69- if (this->ip == INADDR_NONE) ############################################## btanks-0.9.8083/mrt/sys_socket.cpp-76- btanks-0.9.8083/mrt/sys_socket.cpp:77:const std::string Socket::addr::getAddr(bool with_port) const { btanks-0.9.8083/mrt/sys_socket.cpp-78- in_addr a; ############################################## btanks-0.9.8083/mrt/udp_socket.cpp-53- addr.sin_port = htons(port); btanks-0.9.8083/mrt/udp_socket.cpp:54: addr.sin_addr.s_addr = bindaddr.empty()?INADDR_ANY: inet_addr(bindaddr.c_str()); btanks-0.9.8083/mrt/udp_socket.cpp-55- ############################################## btanks-0.9.8083/mrt/udp_socket.cpp-79- addr.sin_port = htons(port); btanks-0.9.8083/mrt/udp_socket.cpp:80: addr.sin_addr.s_addr = inet_addr(host.c_str()); btanks-0.9.8083/mrt/udp_socket.cpp-81- ############################################## btanks-0.9.8083/mrt/udp_socket.cpp-163- LOG_DEBUG(("broadcasting packet[%u]", (unsigned)data.get_size())); btanks-0.9.8083/mrt/udp_socket.cpp:164: if (send(mrt::Socket::addr(INADDR_BROADCAST, port), data.get_ptr(), data.get_size()) == -1) btanks-0.9.8083/mrt/udp_socket.cpp-165- throw_net(("sendto")); ############################################## btanks-0.9.8083/mrt/udp_socket.cpp-189- TRY { btanks-0.9.8083/mrt/udp_socket.cpp:190: if (send(mrt::Socket::addr(addr->sin_addr.s_addr, port), data.get_ptr(), data.get_size()) == -1) btanks-0.9.8083/mrt/udp_socket.cpp-191- throw_net(("sendto")); ############################################## btanks-0.9.8083/mrt/sys_socket.h-46- btanks-0.9.8083/mrt/sys_socket.h:47: addr() : ip(0), port(0) {} btanks-0.9.8083/mrt/sys_socket.h:48: addr(unsigned ip, unsigned port) : ip(ip), port(port) {} btanks-0.9.8083/mrt/sys_socket.h-49- ############################################## btanks-0.9.8083/mrt/sys_socket.h-61- btanks-0.9.8083/mrt/sys_socket.h:62: const std::string getAddr(bool with_port = true) const; btanks-0.9.8083/mrt/sys_socket.h-63- void getAddrByName(const std::string &name); ############################################## btanks-0.9.8083/engine/menu/host_item.cpp-71- btanks-0.9.8083/engine/menu/host_item.cpp:72: std::string hoststr = name, ip = addr.getAddr(addr.port != RTConfig->port); btanks-0.9.8083/engine/menu/host_item.cpp-73- if (hoststr.empty()) { ############################################## btanks-0.9.8083/engine/menu/host_list.cpp-140- //LOG_DEBUG(("host: %s", l->get().c_str())); btanks-0.9.8083/engine/menu/host_list.cpp:141: str += l->addr.getAddr() + "/" + l->name + " "; btanks-0.9.8083/engine/menu/host_list.cpp-142- } ############################################## btanks-0.9.8083/engine/net/client.cpp-55- btanks-0.9.8083/engine/net/client.cpp:56: LOG_DEBUG(("client::init('%s')", host.getAddr().c_str())); btanks-0.9.8083/engine/net/client.cpp-57- //_udp_sock.create(); ############################################## btanks-0.9.8083/engine/net/scanner.h-55- //dns cache. rewrite all this cryptic scanner stuff asap btanks-0.9.8083/engine/net/scanner.h:56: std::string get_name_by_addr(const mrt::Socket::addr &addr); btanks-0.9.8083/engine/net/scanner.h-57- mrt::Socket::addr get_addr_by_name(const std::string &name); ############################################## btanks-0.9.8083/engine/net/monitor.cpp-77- } btanks-0.9.8083/engine/net/monitor.cpp:78: LOG_DEBUG(("[monitor thread] connecting to %s", host.getAddr().c_str())); btanks-0.9.8083/engine/net/monitor.cpp-79- ############################################## btanks-0.9.8083/engine/net/monitor.cpp-123- s->noDelay(); btanks-0.9.8083/engine/net/monitor.cpp:124: LOG_DEBUG(("game client connected from %s", s->getAddress().getAddr().c_str())); btanks-0.9.8083/engine/net/monitor.cpp-125- sdlx::AutoMutex m(_connections_mutex); ############################################## btanks-0.9.8083/engine/net/monitor.cpp-454- ok = true; btanks-0.9.8083/engine/net/monitor.cpp:455: LOG_DEBUG(("server discovery datagram from the %s", addr.getAddr().c_str())); btanks-0.9.8083/engine/net/monitor.cpp-456- unsigned t0; ############################################## btanks-0.9.8083/engine/net/monitor.cpp-476- if (!ok) { btanks-0.9.8083/engine/net/monitor.cpp:477: LOG_WARN(("incoming datagram from unknown client (%s)", addr.getAddr().c_str())); btanks-0.9.8083/engine/net/monitor.cpp-478- } ############################################## btanks-0.9.8083/engine/net/scanner.cpp-108- s.get(addr); btanks-0.9.8083/engine/net/scanner.cpp:109: LOG_DEBUG(("got %s from master server", addr.getAddr().c_str())); btanks-0.9.8083/engine/net/scanner.cpp-110- ############################################## btanks-0.9.8083/engine/net/scanner.cpp-143- btanks-0.9.8083/engine/net/scanner.cpp:144: LOG_DEBUG(("data from addr %s (%d)", addr.getAddr().c_str(), r)); btanks-0.9.8083/engine/net/scanner.cpp-145- TRY { ############################################## btanks-0.9.8083/engine/net/scanner.cpp-174- if (banned_addrs.find(addr.ip) != banned_addrs.end()) { btanks-0.9.8083/engine/net/scanner.cpp:175: LOG_DEBUG(("skipping %s as banned or local", addr.getAddr().c_str())); btanks-0.9.8083/engine/net/scanner.cpp-176- continue; ############################################## btanks-0.9.8083/engine/net/scanner.cpp-178- btanks-0.9.8083/engine/net/scanner.cpp:179: std::string ip = addr.getAddr(false); btanks-0.9.8083/engine/net/scanner.cpp-180- LOG_DEBUG(("found server: %s, players: %u, slots: %u", ip.c_str(), players, slots)); btanks-0.9.8083/engine/net/scanner.cpp:181: std::string name = get_name_by_addr(addr); btanks-0.9.8083/engine/net/scanner.cpp-182- if (name == "netive.ru" || name == "www.nips.ru" || name == "nips.ru") { ############################################## btanks-0.9.8083/engine/net/scanner.cpp-216- btanks-0.9.8083/engine/net/scanner.cpp:217: LOG_DEBUG(("pinging %s/%s", addr.getAddr().c_str(), host.c_str())); btanks-0.9.8083/engine/net/scanner.cpp-218- TRY { ############################################## btanks-0.9.8083/engine/net/scanner.cpp-223- if (!addr.empty()) { btanks-0.9.8083/engine/net/scanner.cpp:224: std::string ip = addr.getAddr(); btanks-0.9.8083/engine/net/scanner.cpp-225- LOG_DEBUG(("found address %s for %s", ip.c_str(), host.c_str())); ############################################## btanks-0.9.8083/engine/net/scanner.cpp-228- check_ip: btanks-0.9.8083/engine/net/scanner.cpp:229: std::string new_host = get_name_by_addr(addr); btanks-0.9.8083/engine/net/scanner.cpp-230- if (new_host == "netive.ru" || new_host == "www.nips.ru" || new_host == "nips.ru") { ############################################## btanks-0.9.8083/engine/net/scanner.cpp-232- } btanks-0.9.8083/engine/net/scanner.cpp:233: LOG_DEBUG(("found name %s for address %s", new_host.c_str(), addr.getAddr().c_str())); btanks-0.9.8083/engine/net/scanner.cpp-234- if (!new_host.empty()) { ############################################## btanks-0.9.8083/engine/net/scanner.cpp-265- btanks-0.9.8083/engine/net/scanner.cpp:266:std::string Scanner::get_name_by_addr(const mrt::Socket::addr &addr) { btanks-0.9.8083/engine/net/scanner.cpp-267- for(dns_cache_t::const_iterator i = dns_cache.begin(); i != dns_cache.end(); ++i) { ############################################## btanks-0.9.8083/show-lost-cmaps.sh-6- echo $tiles; btanks-0.9.8083/show-lost-cmaps.sh:7: for f in `find "$tiles" -iname '*.png' | xargs`; do btanks-0.9.8083/show-lost-cmaps.sh-8- if [ ! -f "$f.map" ]; then echo $f; fi