import random
import string
import json
def get_random_string():
r = random.randint(1,100)
letters = string.ascii_lowercase
result_str = ''.join(random.choice(letters) for i in range(r))
This file contains hidden or 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
| use reqwest::blocking::Client; | |
| use serde::{Deserialize, Serialize}; | |
| use std::error::Error; | |
| use std::fs; | |
| use std::path::Path; | |
| /// Athenz ZTS OAuth2 Access Token Response | |
| #[derive(Debug, Deserialize)] | |
| pub struct AccessTokenResponse { | |
| pub access_token: String, |
This file contains hidden or 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
| cand = [62, 9, 41, 49, 105, 96, 8, 22, 101, 55, 35, 46, 84, 60, 99, 24, 74, 124] | |
| import copy | |
| obj = 315 | |
| targets = [obj-(51+15), obj-(78+54), obj-(36+110), obj-(103+3), obj-(113+57), obj-(56+120)] | |
| aaaaa = [] | |
| def get_cands(level, arr, seen): | |
| if level == 6 and len(arr) == len(targets): | |
| return copy.copy(arr) | |
| for i in range(len(cand)): |
This file contains hidden or 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
| int net0 | |
| ipv6 nd ra-interval 3 | |
| no ipv6 nd suppress-ra | |
| ! | |
| int net1 | |
| ipv6 nd ra-interval 3 | |
| no ipv6 nd suppress-ra | |
| ! |
This file contains hidden or 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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "math/rand" | |
| "net" | |
| "net/http" | |
| "net/rpc" | |
| "strings" |
This file contains hidden or 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
| FROM ubuntu:18.04 | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn | |
| # Update Ubuntu Software repository | |
| RUN apt update && \ | |
| apt-get install -y \ | |
| git autoconf automake libtool make libreadline-dev texinfo \ | |
| pkg-config libpam0g-dev libjson-c-dev bison flex python3-pip \ | |
| libc-ares-dev python3-dev python3-sphinx \ |
This file contains hidden or 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
| nodes: | |
| - name: R1 | |
| image: frr-centos8:latest | |
| docker_run_extra_args: --entrypoint bash | |
| sysctls: | |
| - sysctl: net.vrf.strict_mode=1 | |
| - sysctl: net.ipv4.ip_forward=1 | |
| - sysctl: net.ipv4.conf.all.rp_filter=0 | |
| - sysctl: net.ipv4.conf.default.rp_filter=0 | |
| - sysctl: net.ipv6.conf.all.forwarding=1 |
This file contains hidden or 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
| preinit: | |
| - cmds: | |
| - cmd: modprobe vrf | |
| nodes: | |
| - name: R1 | |
| image: nicolaka/netshoot | |
| docker_run_extra_args: --entrypoint bash | |
| sysctls: | |
| - sysctl: net.vrf.strict_mode=1 |
This file contains hidden or 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
| nodes: | |
| - name: R1 | |
| image: slankdev/frr | |
| interfaces: | |
| - { name: net0, type: direct, args: C1#net0 } | |
| - { name: net1, type: direct, args: R2#net1 } | |
| - { name: net2, type: direct, args: R3#net2 } | |
| - name: R2 | |
| image: slankdev/frr | |
| interfaces: |
This file contains hidden or 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
| nodes: | |
| - name: C1 | |
| image: alpine:latest | |
| interfaces: | |
| - { name: net1, type: direct, args: CE#net1 } | |
| - name: CE | |
| image: frrouting/frr:v8.1.0 | |
| docker_run_extra_args: --entrypoint bash | |
| interfaces: |
NewerOlder