=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== miniupnpc-2.1/miniwget.c-642-void * miniupnpc-2.1/miniwget.c:643:miniwget_getaddr(const char * url, int * size, miniupnpc-2.1/miniwget.c-644- char * addr, int addrlen, unsigned int scope_id, ############################################## miniupnpc-2.1/miniwget.h-18- miniupnpc-2.1/miniwget.h:19:MINIUPNP_LIBSPEC void * miniwget_getaddr(const char *, int *, char *, int, unsigned int, int *); miniupnpc-2.1/miniwget.h-20- ############################################## miniupnpc-2.1/miniupnpc.c-77- * see https://tools.ietf.org/html/rfc1918 */ miniupnpc-2.1/miniupnpc.c:78:static int is_rfc1918addr(const char * addr) miniupnpc-2.1/miniupnpc.c-79-{ ############################################## miniupnpc-2.1/miniupnpc.c-601- * with st == urn:schemas-upnp-org:device:InternetGatewayDevice:1 */ miniupnpc-2.1/miniupnpc.c:602: desc[i].xml = miniwget_getaddr(dev->descURL, &(desc[i].size), miniupnpc-2.1/miniupnpc.c-603- myLanAddr, sizeof(myLanAddr), ############################################## miniupnpc-2.1/miniupnpc.c-652- (UPNP_GetExternalIPAddress(urls->controlURL, data->first.servicetype, extIpAddr) == 0)) { miniupnpc-2.1/miniupnpc.c:653: if(!is_rfc1918addr(extIpAddr) && (extIpAddr[0] != '\0') miniupnpc-2.1/miniupnpc.c-654- && (0 != strcmp(extIpAddr, "0.0.0.0"))) ############################################## miniupnpc-2.1/miniupnpc.c-674- (UPNP_GetExternalIPAddress(urls->controlURL, data->first.servicetype, extIpAddr) == 0)) { miniupnpc-2.1/miniupnpc.c:675: if(!is_rfc1918addr(extIpAddr) && (extIpAddr[0] != '\0') miniupnpc-2.1/miniupnpc.c-676- && (0 != strcmp(extIpAddr, "0.0.0.0"))) ############################################## miniupnpc-2.1/miniupnpc.c-712- miniupnpc-2.1/miniupnpc.c:713: descXML = miniwget_getaddr(rootdescurl, &descXMLsize, miniupnpc-2.1/miniupnpc.c-714- lanaddr, lanaddrlen, 0, NULL); ############################################## miniupnpc-2.1/minissdpc.c-541- if(!ipv6 miniupnpc-2.1/minissdpc.c:542: && (GetBestRoute(inet_addr("223.255.255.255"), 0, &ip_forward) == NO_ERROR)) { miniupnpc-2.1/minissdpc.c-543- DWORD dwRetVal = 0; ############################################## miniupnpc-2.1/minissdpc.c-653- struct in_addr mc_if; miniupnpc-2.1/minissdpc.c:654: mc_if.s_addr = inet_addr(multicastif); /* ex: 192.168.x.x */ miniupnpc-2.1/minissdpc.c-655- if(mc_if.s_addr != INADDR_NONE) ############################################## miniupnpc-2.1/minissdpc.c-752- p->sin_port = htons(SSDP_PORT); miniupnpc-2.1/minissdpc.c:753: p->sin_addr.s_addr = inet_addr(UPNP_MCAST_ADDR); miniupnpc-2.1/minissdpc.c-754- } ############################################## miniupnpc-2.1/updateminiupnpcstrings.sh-19-if [ 0 -eq $? -a -x "${LSB_RELEASE}" ]; then miniupnpc-2.1/updateminiupnpcstrings.sh:20: OS_NAME=`${LSB_RELEASE} -i -s` miniupnpc-2.1/updateminiupnpcstrings.sh:21: OS_VERSION=`${LSB_RELEASE} -r -s` miniupnpc-2.1/updateminiupnpcstrings.sh-22- case $OS_NAME in miniupnpc-2.1/updateminiupnpcstrings.sh-23- Debian) miniupnpc-2.1/updateminiupnpcstrings.sh:24: #OS_VERSION=`${LSB_RELEASE} -c -s` miniupnpc-2.1/updateminiupnpcstrings.sh-25- ;; miniupnpc-2.1/updateminiupnpcstrings.sh-26- Ubuntu) miniupnpc-2.1/updateminiupnpcstrings.sh:27: #OS_VERSION=`${LSB_RELEASE} -c -s` miniupnpc-2.1/updateminiupnpcstrings.sh-28- ;; ############################################## miniupnpc-2.1/testminiwget.c-30- } miniupnpc-2.1/testminiwget.c:31: data = miniwget_getaddr(argv[1], &size, addr, sizeof(addr), 0, &status_code); miniupnpc-2.1/testminiwget.c-32- if(!data || (status_code != 200)) { ############################################## miniupnpc-2.1/testminiwget.sh-53- sleep 1 miniupnpc-2.1/testminiwget.sh:54: PORT=`cat $HTTPSERVEROUT | sed 's/Listening on port \([0-9]*\)/\1/' ` miniupnpc-2.1/testminiwget.sh-55-done ############################################## miniupnpc-2.1/apiversions.txt-11-API version 16 miniupnpc-2.1/apiversions.txt:12: added "status_code" argument to getHTTPResponse(), miniwget() and miniwget_getaddr() miniupnpc-2.1/apiversions.txt-13- updated macro : ############################################## miniupnpc-2.1/testupnpreplyparse.sh-3-for f in testreplyparse/*.xml ; do miniupnpc-2.1/testupnpreplyparse.sh:4: bf="`dirname $f`/`basename $f .xml`" miniupnpc-2.1/testupnpreplyparse.sh-5- if ./testupnpreplyparse $f $bf.namevalue ; then