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
| #!/usr/bin/env python3 | |
| import os | |
| import caracara | |
| import sys | |
| hosts = caracara.HostsToolbox(key=os.environ["FALCON_CLIENT_ID"],secret=os.environ["FALCON_CLIENT_SECRET"],verbose=True) | |
| with open(sys.argv[1]) as doc: | |
| for _hostname in doc.readlines(): | |
| target_aid = hosts.host.find_host_aid(hostname=_hostname.strip()) |
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
| #!/usr/bin/env python3 | |
| import argparse | |
| import binascii | |
| parser = argparse.ArgumentParser(description='Encoding and Decoding F5 URL Rewrites') | |
| parser.add_argument('mode', type=str, help='text to encode or decode') | |
| parser.add_argument('input_text', type=str, help='text to encode or decode') | |
| parser.add_argument('--host', type=str, help='original F5 baseurl') | |
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
| #!/usr/bin/env python3 | |
| ''' | |
| Script to expand CIDR notation to a list of IP addresses. | |
| ''' | |
| import ipaddress | |
| import sys | |
| hosts = set() | |
| subnets = str(sys.argv[1]).split(',') |
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
| script has been moved to github.com/bandrel/check-hashes/ | |
| It has been refactored using claude and additional features have been added | |
| install using uv with | |
| `uv tool install git+https://github.com/bandrel/check-hashes/` |
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
| #!/usr/bin/env python3 | |
| from __future__ import print_function | |
| import socket | |
| import argparse | |
| import requests | |
| import re | |
| parser = argparse.ArgumentParser(description='Enumerate subdomains via certificate transparency logs') | |
| parser.add_argument('domain', type=str, help='Target domain name') |
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
| #!/usr/bin/env python3 | |
| from __future__ import print_function | |
| import socket | |
| import argparse | |
| import requests | |
| import re | |
| parser = argparse.ArgumentParser(description='Enumerate subdomains via certificate transparency logs') | |
| parser.add_argument('domain', type=str, help='Target domain name') |
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
| #!/usr/bin/env python | |
| import requests | |
| import sys | |
| import re | |
| domain = sys.argv[1] | |
| r = requests.get('https://crt.sh/?q=%.'+domain) | |
| hostnames = re.findall(r'<TD>(\S+\.'+domain+r')',r.text) |
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
| #!/usr/bin/env python3 | |
| import ipaddress | |
| import sys | |
| subnets = str(sys.argv[1]).split(',') | |
| for network in subnets: | |
| for host in ipaddress.IPv4Network(network).hosts(): | |
| print(host) |
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
| event manager applet update-port-description | |
| event neighbor-discovery interface regexp GigabitEthernet0/.* cdp add | |
| action 1.0 cli command "enable" | |
| action 2.0 cli command "config t" | |
| action 3.0 cli command "interface $_nd_local_intf_name" | |
| action 4.0 cli command "description $_nd_cdp_entry_name:$_nd_port_id" |
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
| def query(self, hostname, query_type = 'ANY', name_server = False, use_tcp = True): | |
| ret = [] | |
| response = None | |
| if name_server == False: | |
| name_server = self.get_ns() | |
| else: | |
| self.wildcards = {} | |
| self.failed_code = None | |
| self.last_resolver = name_server | |
| query = dnslib.DNSRecord.question(hostname, query_type.upper().strip()) |