Skip to content

Instantly share code, notes, and snippets.

anthonykasza

Block or report user

Report or block anthonykasza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anthonykasza
anthonykasza / client.py
Created Aug 9, 2018
ClientHello Cloner
View client.py
from scapy.all import *
import scapy_ssl_tls.ssl_tls as tls
import scapy_ssl_tls.ssl_tls_crypto as tlsc
import scapy_ssl_tls.ssl_tls_keystore as tlsk
packets = rdpcap('tls_example.pcap')
for packet in packets:
if packet.haslayer(tls.SSL):
eth = packet
View client.ps1
function Get-PublicKey
{
[OutputType([byte[]])]
PARAM (
[Uri]$Uri
)
if (-Not ($uri.Scheme -eq "https"))
{
Write-Error "You can only get keys for https addresses"
@anthonykasza
anthonykasza / kmer_sequencer.py
Created Sep 12, 2016
Script for aligning and reconstructing overlapping subsequences - LabyREnth Random 3
View kmer_sequencer.py
import fileinput
from StringIO import StringIO
import networkx as nx
import subprocess
import glob
import base64 as b64
# http://stackoverflow.com/questions/1285434/efficient-algorithm-for-string-concatenation-with-overlap
def concat(*args):
View domains2yara
import random
import fileinput
print 'import "cuckoo"'
a='a444'
for d in fileinput.input():
d = d.strip()
a = 'a%d' % (random.randint(0, 100000000))
@anthonykasza
anthonykasza / hole_punch.py
Created Dec 13, 2015
punch holes in a file
View hole_punch.py
from StringIO import StringIO
import sys
import random
if len(sys.argv) != 3:
print "usage: hole_punch.py in_filename out_filenae"
exit()
ifname = sys.argv[1]
View sequencer.py
import fileinput
from StringIO import StringIO
import networkx as nx
import subprocess
# https://neil.fraser.name/news/2010/11/04/
def commonOverlapIndexOf(text1, text2):
text1_length = len(text1)
View create.py
import random
from StringIO import StringIO
import string
import zlib
import base64 as b64
def get_kmer(read_str, overlap_size, kmer_size):
if read_str.pos > overlap_size:
read_str.seek(overlap_size * -1, 1)
@anthonykasza
anthonykasza / search.sh
Created Sep 14, 2015
A basic BASH script for searching Github for new and interesting repos
View search.sh
if [ -z ${1+x} ]; then
printf "usage: search.sh terms.txt\n\n";
exit -1;
fi
DT=$(date '+%Y-%m-%d' --date="yesterday")
RESULTS_DIR="./results"
EMAIL=""
if [ ! -d "${RESULTS_DIR}" ]; then
View gist:67798cc9985f665a1aee
{u'authorities': [{u'domain': u'torpig-sinkhole',
u'subs': u'ns2.',
u'tld': u'org',
u'whois': {u'contacts': {u'admin': {u'city': u'Afula',
u'country': u'IL',
u'email': u'the.torpig.cabal@googlemail.com',
u'fax': u'+9.7254786002',
u'handle': u'SPAG-38258072',
u'name': u'Torpig Cabal',
u'phone': u'+9.7254786002',
@anthonykasza
anthonykasza / gist:ef5aa00706df74bbcf79
Created Dec 20, 2014
snapshooter GOZ domains 19-Dec-14
View gist:ef5aa00706df74bbcf79
[{
"domain": "1ime4s5vqnzih1rrq8tdtpjoa",
"ips":
[
{"ip_prefix": "", "ns_ip": "54.68.143.189", "ip_country": "", "ip_ttl": 10800, "ns_name": "ns1.dynadot.com.", "ip_address": "69.195.129.70", "asn": 0},
{"ip_prefix": "", "ns_ip": "54.68.142.171", "ip_country": "", "ip_ttl": 10800, "ns_name": "ns1.dynadot.com.", "ip_address": "69.195.129.70", "asn": 0},
{"ip_prefix": "", "ns_ip": "54.68.145.110", "ip_country": "", "ip_ttl": 10800, "ns_name": "ns1.dynadot.com.", "ip_address": "69.195.129.70", "asn": 0},
{"ip_prefix": "", "ns_ip": "54.68.55.168", "ip_country": "", "ip_ttl": 10800, "ns_name": "ns1.dynadot.com.", "ip_address": "69.195.129.70", "asn": 0}
],
"tld": "biz",
You can’t perform that action at this time.