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 zipfile | |
import argparse | |
import subprocess | |
parser = argparse.ArgumentParser() | |
parser.add_argument('target') | |
parser.add_argument('stringsfile') | |
parser.add_argument('output') | |
args = parser.parse_args() |
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 | |
#################################################################################### | |
# allcast_cli.py # | |
# Casts a specified YouTube video to Google Cast devices within a subdomain. [CLI] # | |
#################################################################################### | |
from zeroconf import ServiceBrowser, Zeroconf | |
from time import sleep | |
from argparse import ArgumentParser |
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 | |
""" | |
File Name: quic_rx.py | |
Author: cetaSYN | |
Created Date: 4 May 18 | |
Revised Date: 9 May 18 | |
Recieves data from quic_tx.py, masqueraded as Google's QUIC protocol. | |
""" |
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 | |
''' | |
File Name: termite.py | |
Author: cetaSYN | |
Created Date: 20 Apr 18 | |
Python Version: 2.7 | |
Matches logs using regular expressions then overwrites the matching lines. | |
Overwrite operation occurs in same pass as read, and overwrites with \x00 |
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
# SANS Holiday Hack 2019 Dormitory Keypad Solver | |
from itertools import product | |
# https://stackoverflow.com/questions/46841968/fastest-way-of-testing-if-a-number-is-prime-with-python | |
def is_prime(n): | |
if n & 1 == 0: | |
return False | |
d= 3 | |
while d * d <= n: |
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
# SANS Holiday Hack 2019 Objective 3 - Password Spray | |
# Dependency: python-evtx | |
import Evtx.Evtx as evtx | |
import Evtx.Views as e_views | |
import re | |
target_fields = ['EventID','TimeCreated','Computer','LogonType','TargetUserName','IpAddress'] | |
output = [] | |
with evtx.Evtx('Security.evtx') as log: |
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 | |
# SANS Holiday Hack 2019 Objective 4 - Determine Technique | |
import json | |
from datetime import datetime, timedelta | |
def pprint(s): | |
return json.dumps(json.loads(str(s).replace('"', '\\"').replace("'", '"')), indent=2) |
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/bin/env python3 | |
# SANS Holiday Hack 2019 Objective 5 - Determine Compromised System | |
import dateutil.parser | |
from datetime import timedelta, datetime | |
from os import listdir | |
from os.path import isfile, join | |
import pprint |
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 | |
__author__ = 'cetaSYN' | |
import argparse | |
import queue | |
import signal | |
import socket | |
import sys | |
import threading |
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 datetime | |
import tweepy | |
def main(): | |
# https://developer.twitter.com/en/apply-for-access | |
consumer_key = "<add>" | |
consumer_secret = "<add>" |
OlderNewer