=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== tcpflow-1.5.2+repack1/src/util.cpp-60- tcpflow-1.5.2+repack1/src/util.cpp:61:std::string macaddr(const uint8_t *addr) tcpflow-1.5.2+repack1/src/util.cpp-62-{ ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-26-public:; tcpflow-1.5.2+repack1/src/tcpip.h:27: ipaddr(){ tcpflow-1.5.2+repack1/src/tcpip.h-28- memset(addr,0,sizeof(addr)); tcpflow-1.5.2+repack1/src/tcpip.h-29- } tcpflow-1.5.2+repack1/src/tcpip.h:30: ipaddr(const in_addr_t &a){ // copy operator tcpflow-1.5.2+repack1/src/tcpip.h-31- addr[0] = ((uint8_t *)&a)[0]; // copy the bottom 4 octets and blank the top 12 ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-36- } tcpflow-1.5.2+repack1/src/tcpip.h:37: ipaddr(const uint8_t a[16]){ // begin wiped tcpflow-1.5.2+repack1/src/tcpip.h-38- memcpy(addr,a,16); ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-88-public: tcpflow-1.5.2+repack1/src/tcpip.h:89: flow_addr():src(),dst(),sport(0),dport(0),family(0){ } tcpflow-1.5.2+repack1/src/tcpip.h:90: flow_addr(const ipaddr &s,const ipaddr &d,uint16_t sp,uint16_t dp,sa_family_t f): tcpflow-1.5.2+repack1/src/tcpip.h-91- src(s),dst(d),sport(sp),dport(dp),family(f){ tcpflow-1.5.2+repack1/src/tcpip.h-92- } tcpflow-1.5.2+repack1/src/tcpip.h:93: flow_addr(const flow_addr &f):src(f.src),dst(f.dst),sport(f.sport),dport(f.dport), tcpflow-1.5.2+repack1/src/tcpip.h-94- family(f.family){ tcpflow-1.5.2+repack1/src/tcpip.h-95- } tcpflow-1.5.2+repack1/src/tcpip.h:96: virtual ~flow_addr(){}; tcpflow-1.5.2+repack1/src/tcpip.h-97- ipaddr src; // Source IP address; holds v4 or v6 ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-160- static std::string outdir; // where the output gets written tcpflow-1.5.2+repack1/src/tcpip.h:161: flow():id(),vlan(),mac_daddr(),mac_saddr(),tstart(),tlast(),len(),caplen(),packet_count(){}; tcpflow-1.5.2+repack1/src/tcpip.h-162- flow(const flow_addr &flow_addr_,uint64_t id_,const be13::packet_info &pi): tcpflow-1.5.2+repack1/src/tcpip.h:163: flow_addr(flow_addr_),id(id_),vlan(pi.vlan()), tcpflow-1.5.2+repack1/src/tcpip.h:164: mac_daddr(), tcpflow-1.5.2+repack1/src/tcpip.h:165: mac_saddr(), tcpflow-1.5.2+repack1/src/tcpip.h-166- tstart(pi.ts),tlast(pi.ts), ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-191- tcpflow-1.5.2+repack1/src/tcpip.h:192: bool has_mac_daddr(){ tcpflow-1.5.2+repack1/src/tcpip.h-193- return mac_daddr[0] || mac_daddr[1] || mac_daddr[2] || mac_daddr[3] || mac_daddr[4] || mac_daddr[5]; ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-195- tcpflow-1.5.2+repack1/src/tcpip.h:196: bool has_mac_saddr(){ tcpflow-1.5.2+repack1/src/tcpip.h-197- return mac_saddr[0] || mac_saddr[1] || mac_saddr[2] || mac_saddr[3] || mac_saddr[4] || mac_saddr[5]; ############################################## tcpflow-1.5.2+repack1/src/tcpip.h-356-public: tcpflow-1.5.2+repack1/src/tcpip.h:357: saved_flow(tcpip *tcp):addr(tcp->myflow), tcpflow-1.5.2+repack1/src/tcpip.h-358- saved_filename(tcp->flow_pathname), ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-64- case $1 in tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:65: */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-66- *) dir=;; ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-73-{ tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:74: base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-75-} ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-126- sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:127:tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-128- ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-405- sleep 1 tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:406: i=`expr $i - 1` tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-407- done tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-408- fi tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:409: i=`expr $i - 1` tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-410- done ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-425- # Do two passes, one to just change these to tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:426: # `$object: dependent.h' and one to simply `dependent.h:'. tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-427- sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-659- done tcpflow-1.5.2+repack1/src/dfxml/src/depcomp:660: obj_suffix=`echo "$object" | sed 's/^.*\././'` tcpflow-1.5.2+repack1/src/dfxml/src/depcomp-661- touch "$tmpdepfile" ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/configure.ac-157-if test "${with_noopt}" = "yes" ; then tcpflow-1.5.2+repack1/src/dfxml/src/configure.ac:158: CFLAGS=`echo "$CFLAGS" | sed s/-O[[0-9]]//` # note the double quoting! tcpflow-1.5.2+repack1/src/dfxml/src/configure.ac:159: CXXFLAGS=`echo "$CXXFLAGS" | sed s/-O[[0-9]]//` tcpflow-1.5.2+repack1/src/dfxml/src/configure.ac-160-fi ############################################## tcpflow-1.5.2+repack1/src/dfxml/src/INSTALL-173-directory configuration variables that were expressed in terms of tcpflow-1.5.2+repack1/src/dfxml/src/INSTALL:174:`${prefix}'. Any directories that were specified during `configure', tcpflow-1.5.2+repack1/src/dfxml/src/INSTALL-175-but not in terms of `${prefix}', must each be overridden at install ############################################## tcpflow-1.5.2+repack1/src/dfxml/dtd/dfxml.dtd-41-<!ELEMENT block_count (#PCDATA)> tcpflow-1.5.2+repack1/src/dfxml/dtd/dfxml.dtd:42:<!ELEMENT acquisition_macaddr (#PCDATA)> tcpflow-1.5.2+repack1/src/dfxml/dtd/dfxml.dtd-43-<!ELEMENT acquisition_device (#PCDATA)> ############################################## tcpflow-1.5.2+repack1/src/iptree.h-277- node *ptr; // 0 means cache entry is not in use tcpflow-1.5.2+repack1/src/iptree.h:278: cache_element(const uint8_t addr_[ADDRBYTES],size_t addrlen,node *p):addr(),ptr(p){ tcpflow-1.5.2+repack1/src/iptree.h-279- memcpy(addr,addr_,addrlen); ############################################## tcpflow-1.5.2+repack1/src/iptree.h-348- addr_elem(const uint8_t *addr_,uint8_t depth_,int64_t count_): tcpflow-1.5.2+repack1/src/iptree.h:349: addr(),depth(depth_),count(count_){ tcpflow-1.5.2+repack1/src/iptree.h-350- memcpy((void *)addr,addr_,sizeof(addr)); tcpflow-1.5.2+repack1/src/iptree.h-351- } tcpflow-1.5.2+repack1/src/iptree.h:352: addr_elem() : addr(), depth(0), count(0) { tcpflow-1.5.2+repack1/src/iptree.h-353- memset((void *) addr, 0x00, sizeof(addr)); ############################################## tcpflow-1.5.2+repack1/src/tcpflow.h-306-void mkdirs_for_path(std::string path); // creates any directories necessary for the path tcpflow-1.5.2+repack1/src/tcpflow.h:307:std::string macaddr(const uint8_t *addr); tcpflow-1.5.2+repack1/src/tcpflow.h-308- ############################################## tcpflow-1.5.2+repack1/src/tcpip.cpp-77- attrs << "endtime='" << dfxml_writer::to8601(myflow.tlast) << "' "; tcpflow-1.5.2+repack1/src/tcpip.cpp:78: if(myflow.has_mac_daddr()) attrs << "mac_daddr='" << macaddr(myflow.mac_daddr) << "' "; tcpflow-1.5.2+repack1/src/tcpip.cpp:79: if(myflow.has_mac_saddr()) attrs << "mac_saddr='" << macaddr(myflow.mac_saddr) << "' "; tcpflow-1.5.2+repack1/src/tcpip.cpp-80- attrs << "family='" << (int)myflow.family << "' "; ############################################## tcpflow-1.5.2+repack1/tests/test-chroot.sh-15- tcpflow-1.5.2+repack1/tests/test-chroot.sh:16: md5val=`openssl md5 $1 | awk '{print $2;}'` tcpflow-1.5.2+repack1/tests/test-chroot.sh-17- if [ x$2 != x$md5val ]; ############################################## tcpflow-1.5.2+repack1/tests/test-chroot.sh-28-{ tcpflow-1.5.2+repack1/tests/test-chroot.sh:29: md5val=`openssl md5 $1 | awk '{print $2;}'` tcpflow-1.5.2+repack1/tests/test-chroot.sh:30: len=`stat -r $1 | awk '{print $8;}'` tcpflow-1.5.2+repack1/tests/test-chroot.sh-31- echo checkmd5 \"$1\" \"$md5val\" \"$len\" ############################################## tcpflow-1.5.2+repack1/tests/test-pdfs.sh-10- cmd "$TCPFLOW -Fg -e netviz -o tmp$$ -r $i" tcpflow-1.5.2+repack1/tests/test-pdfs.sh:11: cmd "mv tmp$$/report.pdf `basename $i .pcap`.pdf" tcpflow-1.5.2+repack1/tests/test-pdfs.sh-12- echo "" ############################################## tcpflow-1.5.2+repack1/tests/test-iptree.sh-15- tcpflow-1.5.2+repack1/tests/test-iptree.sh:16: md5val=`openssl md5 $1 | awk '{print $2;}'` tcpflow-1.5.2+repack1/tests/test-iptree.sh-17- if [ x$2 != x$md5val ]; ############################################## tcpflow-1.5.2+repack1/tests/test-iptree.sh-28-{ tcpflow-1.5.2+repack1/tests/test-iptree.sh:29: md5val=`openssl md5 $1 | awk '{print $2;}'` tcpflow-1.5.2+repack1/tests/test-iptree.sh:30: len=`stat -r $1 | awk '{print $8;}'` tcpflow-1.5.2+repack1/tests/test-iptree.sh-31- echo checkmd5 \"$1\" \"$md5val\" \"$len\" ############################################## tcpflow-1.5.2+repack1/tests/test-subs.sh-31- tcpflow-1.5.2+repack1/tests/test-subs.sh:32: md5val=`openssl md5 $1 | awk '{print $2;}'` tcpflow-1.5.2+repack1/tests/test-subs.sh-33- if [ x$2 != x$md5val ]; ############################################## tcpflow-1.5.2+repack1/tests/test-subs.sh-44-{ tcpflow-1.5.2+repack1/tests/test-subs.sh:45: md5val=`openssl md5 $1 | awk '{print $2;}'` tcpflow-1.5.2+repack1/tests/test-subs.sh:46: len=`stat -r $1 | awk '{print $8;}'` tcpflow-1.5.2+repack1/tests/test-subs.sh-47- echo checkmd5 \"$1\" \"$md5val\" \"$len\" ############################################## tcpflow-1.5.2+repack1/ChangeLog-666- tcpflow-1.5.2+repack1/ChangeLog:667: * configure.in: Only check for -lnsl if gethostbyaddr() doesn't tcpflow-1.5.2+repack1/ChangeLog-668- work without it; same for -lsocket and socket(). ############################################## tcpflow-1.5.2+repack1/configure.ac-609- AC_MSG_NOTICE([Dropping optimization flags]) tcpflow-1.5.2+repack1/configure.ac:610: CFLAGS=`echo "$CFLAGS" | sed s/-O[[0-9]]//` # note the double quoting! tcpflow-1.5.2+repack1/configure.ac:611: CXXFLAGS=`echo "$CXXFLAGS" | sed s/-O[[0-9]]//` tcpflow-1.5.2+repack1/configure.ac-612- tcpflow-1.5.2+repack1/configure.ac-613- AC_MSG_NOTICE([Removing -D_FORTIFY_SOURCE=2]) tcpflow-1.5.2+repack1/configure.ac:614: CPPFLAGS=`echo $CPPFLAGS | sed s/-D_FORTIFY_SOURCE=2//` tcpflow-1.5.2+repack1/configure.ac:615: CXXFLAGS=`echo $CXXFLAGS | sed s/-D_FORTIFY_SOURCE=2//` tcpflow-1.5.2+repack1/configure.ac:616: CFLAGS=`echo $CFLAGS | sed s/-D_FORTIFY_SOURCE=2//` tcpflow-1.5.2+repack1/configure.ac-617-else ############################################## tcpflow-1.5.2+repack1/configure.ac-619- if test "${with_o3}" != "no" ; then tcpflow-1.5.2+repack1/configure.ac:620: CFLAGS=`echo -g "$CFLAGS" | sed s/-O2/-O3/` # note the double quoting! tcpflow-1.5.2+repack1/configure.ac:621: CXXFLAGS=`echo -g "$CXXFLAGS" | sed s/-O2/-O3/` tcpflow-1.5.2+repack1/configure.ac-622- fi ############################################## tcpflow-1.5.2+repack1/compile-67- mingw/*) tcpflow-1.5.2+repack1/compile:68: file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` tcpflow-1.5.2+repack1/compile-69- ;; tcpflow-1.5.2+repack1/compile-70- cygwin/*) tcpflow-1.5.2+repack1/compile:71: file=`cygpath -m "$file" || echo "$file"` tcpflow-1.5.2+repack1/compile-72- ;; tcpflow-1.5.2+repack1/compile-73- wine/*) tcpflow-1.5.2+repack1/compile:74: file=`winepath -w "$file" || echo "$file"` tcpflow-1.5.2+repack1/compile-75- ;; ############################################## tcpflow-1.5.2+repack1/compile-309-# Name of file we expect compiler to create. tcpflow-1.5.2+repack1/compile:310:cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` tcpflow-1.5.2+repack1/compile-311- ############################################## tcpflow-1.5.2+repack1/compile-315-# object file name, since that is what matters with a parallel build. tcpflow-1.5.2+repack1/compile:316:lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d tcpflow-1.5.2+repack1/compile-317-while true; do