Router1
[admin@MikroTik] > ip address add address=10.101.32.1/24 interface=ether2
[admin@MikroTik] > ip address add address=10.101.33.1/24 interface=ether1
[admin@MikroTik] > ip address add address=10.101.34.1/24 interface=ether3
| import sys | |
| import base64 | |
| import sqlite3 | |
| import os | |
| import argparse | |
| from Crypto.Cipher import AES, ChaCha20_Poly1305 | |
| import binascii | |
| import json | |
| from datetime import datetime, timedelta | |
| from pyasn1.codec.der import decoder |
| import click | |
| import re | |
| import string | |
| import sre_yield | |
| # Usage examples: | |
| # {name}\.{lname} | |
| # [a-z]{lname} | |
| # {lname}\.[a-z]{2} | |
| # ... |
| #include <windows.h> | |
| #include <winternl.h> | |
| #include <stdio.h> | |
| // POC for resolving library base address via KnownDlls | |
| typedef enum _SECTION_INFORMATION_CLASS | |
| { | |
| SectionBasicInformation, | |
| SectionImageInformation, |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Runtime.InteropServices; | |
| using System.Reflection; | |
| using System.Diagnostics; | |
| using System.Threading; | |
| using System.IO; |
| import requests | |
| import csv | |
| PUBDNS_URL = 'https://public-dns.info/nameservers.csv' | |
| def fetch_valid_resolvers(): | |
| r = requests.get(PUBDNS_URL) | |
| d = csv.DictReader(r.content.decode().splitlines(),delimiter=',') | |
| valid = [row['ip_address'] for row in d if row['reliability'] == '1.00' and ':' not in row['ip_address']] | |
| for i in valid: |