This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import textwrap | |
from collections import OrderedDict | |
import pyparsing as pp | |
class Statement(str): | |
def __str__(self): | |
return super().__str__() + ";" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-06-15 10:35:59,512 DEBUG read_channel: | |
2018-06-15 10:35:59,512 DEBUG read_channel: | |
2018-06-15 10:35:59,592 DEBUG read_channel: | |
2018-06-15 10:35:59,614 DEBUG read_channel: | |
2018-06-15 10:35:59,614 DEBUG read_channel: | |
2018-06-15 10:35:59,614 DEBUG In disable_paging | |
2018-06-15 10:35:59,614 DEBUG In disable_paging | |
2018-06-15 10:35:59,614 DEBUG Command: set cli screen-length 0 | |
2018-06-15 10:35:59,614 DEBUG Command: set cli screen-length 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- JUNOS 12.3R4.5 built 2018-04-27 20:41:48 UTC | |
Welcome to this lab device | |
{master:0} | |
user@device-1> | |
{master:0} | |
user@device-1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# How to do domain fronting in Python with Requests. | |
# | |
# Send a request to an arbitrary IP address and force the | |
# SNI field and Host HTTP header to a certain value. | |
# | |
import http.client | |
import requests | |
import urllib3 |