=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== exabgp-4.2.8/HISTORY.rst-895- reported by: Ryan Steinmetz exabgp-4.2.8/HISTORY.rst:896: * Fix: ASM messages were sent as ADM exabgp-4.2.8/HISTORY.rst-897- * Feature: decode shows the JSON representation of updates ############################################## exabgp-4.2.8/dev/bin/ibgp-159- self.create_socket(socket.AF_INET, socket.SOCK_STREAM) exabgp-4.2.8/dev/bin/ibgp:160: self.set_reuse_addr() exabgp-4.2.8/dev/bin/ibgp-161- self.bind((host, port)) ############################################## exabgp-4.2.8/dev/bin/ibgp-open-only-28- self.create_socket(socket.AF_INET, socket.SOCK_STREAM) exabgp-4.2.8/dev/bin/ibgp-open-only:29: self.set_reuse_addr() exabgp-4.2.8/dev/bin/ibgp-open-only-30- self.bind((host, port)) ############################################## exabgp-4.2.8/dev/bin/recorder-listener-71- self.create_socket(socket.AF_INET, socket.SOCK_STREAM) exabgp-4.2.8/dev/bin/recorder-listener:72: self.set_reuse_addr() exabgp-4.2.8/dev/bin/recorder-listener-73- self.bind((host, port)) ############################################## exabgp-4.2.8/dev/release/google-9- exabgp-4.2.8/dev/release/google:10:dirname=`dirname $0` exabgp-4.2.8/dev/release/google-11- ############################################## exabgp-4.2.8/dev/release/google-22-build=/tmp exabgp-4.2.8/dev/release/google:23:version=`/usr/bin/env python $path/lib/exabgp/version.py` exabgp-4.2.8/dev/release/google-24-name=exabgp-$version ############################################## exabgp-4.2.8/dev/release/google-45- exabgp-4.2.8/dev/release/google:46:internal=`hg status | grep "^?" | awk '{ print $2; }'` exabgp-4.2.8/dev/release/google-47- ############################################## exabgp-4.2.8/lib/exabgp/bgp/message/operational.py-62- ADM = 0x01 # 01: Advisory Demand Message exabgp-4.2.8/lib/exabgp/bgp/message/operational.py:63: ASM = 0x02 # 02: Advisory Static Message exabgp-4.2.8/lib/exabgp/bgp/message/operational.py-64- # STATE ############################################## exabgp-4.2.8/lib/exabgp/bgp/message/update/nlri/bgpls/tlvs/ifaceaddr.py-27- exabgp-4.2.8/lib/exabgp/bgp/message/update/nlri/bgpls/tlvs/ifaceaddr.py:28:class IfaceAddr(object): exabgp-4.2.8/lib/exabgp/bgp/message/update/nlri/bgpls/tlvs/ifaceaddr.py-29- def __init__(self, iface_addr, packed=None): ############################################## exabgp-4.2.8/lib/exabgp/bgp/message/update/nlri/bgpls/tlvs/neighaddr.py-27- exabgp-4.2.8/lib/exabgp/bgp/message/update/nlri/bgpls/tlvs/neighaddr.py:28:class NeighAddr(object): exabgp-4.2.8/lib/exabgp/bgp/message/update/nlri/bgpls/tlvs/neighaddr.py-29- def __init__(self, addr, packed=None): ############################################## exabgp-4.2.8/lib/exabgp/bgp/neighbor.py-94- self.eor = deque() exabgp-4.2.8/lib/exabgp/bgp/neighbor.py:95: self.asm = dict() exabgp-4.2.8/lib/exabgp/bgp/neighbor.py-96- ############################################## exabgp-4.2.8/lib/exabgp/reactor/network/tcp.py-157- if IP.toafi(ip) == AFI.ipv4: exabgp-4.2.8/lib/exabgp/reactor/network/tcp.py:158: # SS_MAXSIZE is 128 but addr_family, port and ipaddr (8 bytes total) are written independently of the padding exabgp-4.2.8/lib/exabgp/reactor/network/tcp.py-159- SS_MAXSIZE_PADDING = 128 - calcsize('HH4s') # 8 ############################################## exabgp-4.2.8/lib/exabgp/reactor/peer.py-414- exabgp-4.2.8/lib/exabgp/reactor/peer.py:415: # Every last asm message should be re-announced on restart exabgp-4.2.8/lib/exabgp/reactor/peer.py-416- for family in self.neighbor.asm: ############################################## exabgp-4.2.8/qa/bin/parsing-4- exabgp-4.2.8/qa/bin/parsing:5:dirname=`dirname $0` exabgp-4.2.8/qa/bin/parsing-6-retval=0 ############################################## exabgp-4.2.8/qa/bin/parsing-34- printf "%-50s " $conf exabgp-4.2.8/qa/bin/parsing:35: result=`$path/sbin/exabgp $path/etc/exabgp/$conf 2>&1` exabgp-4.2.8/qa/bin/parsing-36- retcode=$? exabgp-4.2.8/qa/bin/parsing:37: problem=`echo $result | grep 'Problem with the configuration file' || true` exabgp-4.2.8/qa/bin/parsing-38- ############################################## exabgp-4.2.8/qa/sbin/bgp-423- self.create_socket(socket.AF_INET, socket.SOCK_STREAM) exabgp-4.2.8/qa/sbin/bgp:424: self.set_reuse_addr() exabgp-4.2.8/qa/sbin/bgp-425- self.bind((host, options['port'])) ############################################## exabgp-4.2.8/qa/self/api/receive-2- exabgp-4.2.8/qa/self/api/receive:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/api/receive-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/api/receive-5-then exabgp-4.2.8/qa/self/api/receive:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/api/receive-7-fi ############################################## exabgp-4.2.8/qa/self/api/receive-9-then exabgp-4.2.8/qa/self/api/receive:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/api/receive-11-fi ############################################## exabgp-4.2.8/qa/self/api/send-2- exabgp-4.2.8/qa/self/api/send:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/api/send-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/api/send-5-then exabgp-4.2.8/qa/self/api/send:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/api/send-7-fi ############################################## exabgp-4.2.8/qa/self/api/send-9-then exabgp-4.2.8/qa/self/api/send:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/api/send-11-fi ############################################## exabgp-4.2.8/qa/self/attribute/send-2- exabgp-4.2.8/qa/self/attribute/send:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/attribute/send-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/attribute/send-5-then exabgp-4.2.8/qa/self/attribute/send:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/attribute/send-7-fi ############################################## exabgp-4.2.8/qa/self/attribute/send-9-then exabgp-4.2.8/qa/self/attribute/send:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/attribute/send-11-fi ############################################## exabgp-4.2.8/qa/self/big/receive-2- exabgp-4.2.8/qa/self/big/receive:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/big/receive-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/big/receive-5-then exabgp-4.2.8/qa/self/big/receive:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/big/receive-7-fi ############################################## exabgp-4.2.8/qa/self/big/receive-9-then exabgp-4.2.8/qa/self/big/receive:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/big/receive-11-fi ############################################## exabgp-4.2.8/qa/self/big/send-2- exabgp-4.2.8/qa/self/big/send:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/big/send-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/big/send-5-then exabgp-4.2.8/qa/self/big/send:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/big/send-7-fi ############################################## exabgp-4.2.8/qa/self/big/send-9-then exabgp-4.2.8/qa/self/big/send:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/big/send-11-fi ############################################## exabgp-4.2.8/qa/self/flow/first-2- exabgp-4.2.8/qa/self/flow/first:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/flow/first-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/flow/first-5-then exabgp-4.2.8/qa/self/flow/first:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/flow/first-7-fi ############################################## exabgp-4.2.8/qa/self/flow/first-9-then exabgp-4.2.8/qa/self/flow/first:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/flow/first-11-fi ############################################## exabgp-4.2.8/qa/self/flow/flow-change.py-12- exabgp-4.2.8/qa/self/flow/flow-change.py:13:# sleep a little bit or we will never see the asm in the configuration file exabgp-4.2.8/qa/self/flow/flow-change.py-14-# and the message received just before we go to the established loop will be printed twice ############################################## exabgp-4.2.8/qa/self/flow/second-2- exabgp-4.2.8/qa/self/flow/second:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/flow/second-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/flow/second-5-then exabgp-4.2.8/qa/self/flow/second:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/flow/second-7-fi ############################################## exabgp-4.2.8/qa/self/flow/second-9-then exabgp-4.2.8/qa/self/flow/second:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/flow/second-11-fi ############################################## exabgp-4.2.8/qa/self/json/receive-2- exabgp-4.2.8/qa/self/json/receive:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/json/receive-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/json/receive-5-then exabgp-4.2.8/qa/self/json/receive:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/json/receive-7-fi ############################################## exabgp-4.2.8/qa/self/json/receive-9-then exabgp-4.2.8/qa/self/json/receive:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/json/receive-11-fi ############################################## exabgp-4.2.8/qa/self/json/send-2- exabgp-4.2.8/qa/self/json/send:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/json/send-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/json/send-5-then exabgp-4.2.8/qa/self/json/send:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/json/send-7-fi ############################################## exabgp-4.2.8/qa/self/json/send-9-then exabgp-4.2.8/qa/self/json/send:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/json/send-11-fi ############################################## exabgp-4.2.8/qa/self/load/receive-2- exabgp-4.2.8/qa/self/load/receive:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/load/receive-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/load/receive-5-then exabgp-4.2.8/qa/self/load/receive:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/load/receive-7-fi ############################################## exabgp-4.2.8/qa/self/load/receive-9-then exabgp-4.2.8/qa/self/load/receive:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/load/receive-11-fi ############################################## exabgp-4.2.8/qa/self/load/send-2- exabgp-4.2.8/qa/self/load/send:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/load/send-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/load/send-5-then exabgp-4.2.8/qa/self/load/send:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/load/send-7-fi ############################################## exabgp-4.2.8/qa/self/load/send-9-then exabgp-4.2.8/qa/self/load/send:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/load/send-11-fi ############################################## exabgp-4.2.8/qa/self/operational/operational-send.conf-24- operational { exabgp-4.2.8/qa/self/operational/operational-send.conf:25: asm afi ipv4 safi unicast advisory 'Thank you for peering, noc email is noc@isp.com'; exabgp-4.2.8/qa/self/operational/operational-send.conf-26- } ############################################## exabgp-4.2.8/qa/self/operational/operational-send.py-10- exabgp-4.2.8/qa/self/operational/operational-send.py:11:# sleep a little bit or we will never see the asm in the configuration file exabgp-4.2.8/qa/self/operational/operational-send.py-12-# and the message received just before we go to the established loop will be printed twice ############################################## exabgp-4.2.8/qa/self/operational/operational-send.py-37- else: exabgp-4.2.8/qa/self/operational/operational-send.py:38: print('announce operational asm afi ipv4 safi unicast advisory "we SHOULD not send asm from the API"') exabgp-4.2.8/qa/self/operational/operational-send.py-39- sys.stdout.flush() ############################################## exabgp-4.2.8/qa/self/refresh/first-2- exabgp-4.2.8/qa/self/refresh/first:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/refresh/first-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/refresh/first-5-then exabgp-4.2.8/qa/self/refresh/first:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/refresh/first-7-fi ############################################## exabgp-4.2.8/qa/self/refresh/first-9-then exabgp-4.2.8/qa/self/refresh/first:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/refresh/first-11-fi ############################################## exabgp-4.2.8/qa/self/refresh/second-2- exabgp-4.2.8/qa/self/refresh/second:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/refresh/second-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/refresh/second-5-then exabgp-4.2.8/qa/self/refresh/second:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/refresh/second-7-fi ############################################## exabgp-4.2.8/qa/self/refresh/second-9-then exabgp-4.2.8/qa/self/refresh/second:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/refresh/second-11-fi ############################################## exabgp-4.2.8/qa/self/simple/first-2- exabgp-4.2.8/qa/self/simple/first:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/simple/first-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/simple/first-5-then exabgp-4.2.8/qa/self/simple/first:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/simple/first-7-fi ############################################## exabgp-4.2.8/qa/self/simple/first-9-then exabgp-4.2.8/qa/self/simple/first:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/simple/first-11-fi ############################################## exabgp-4.2.8/qa/self/simple/second-2- exabgp-4.2.8/qa/self/simple/second:3:ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/simple/second-4-if [ "$ip" = "" ] exabgp-4.2.8/qa/self/simple/second-5-then exabgp-4.2.8/qa/self/simple/second:6: ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/simple/second-7-fi ############################################## exabgp-4.2.8/qa/self/simple/second-9-then exabgp-4.2.8/qa/self/simple/second:10: ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'` exabgp-4.2.8/qa/self/simple/second-11-fi ############################################## exabgp-4.2.8/qa/self/update/update-send.py-10- exabgp-4.2.8/qa/self/update/update-send.py:11:# sleep a little bit or we will never see the asm in the configuration file exabgp-4.2.8/qa/self/update/update-send.py-12-# and the message received just before we go to the established loop will be printed twice ############################################## exabgp-4.2.8/sbin/exabgp-9-if [ $? -eq 0 ] && [ $GIT_TAG -eq 0 ]; then exabgp-4.2.8/sbin/exabgp:10: GIT_BRANCH=`git branch | grep "*" | awk '{ print $2}'` exabgp-4.2.8/sbin/exabgp:11: GIT_COMMIT=`git log -1 | head -1 | awk '{ print $2 }'` exabgp-4.2.8/sbin/exabgp-12- export EXABGP_VERSION="${GIT_BRANCH}-${GIT_COMMIT}" ############################################## exabgp-4.2.8/debian/rules-19- set -e; set -x; for pyvers in $(PYTHON3S); do \ exabgp-4.2.8/debian/rules:20: PYMAJOR=`echo $$pyvers | cut -d '.' -f 1`; \ exabgp-4.2.8/debian/rules-21- env INTERPRETER=python$$pyvers sbin/exabgp --fi > etc/exabgp/exabgp.env ; \