Skip to content

Instantly share code, notes, and snippets.

@seamustuohy
seamustuohy / hypothesis-STIX2.json
Created March 20, 2019 14:38 — forked from CaitlinHuey/hypothesis-STIX2.json
Representing a structured Hypothesis (STIX2) - co-authored by Sergey Polzunov
{
"objects": [
{
"labels": [
"source--eiq-fusion"
],
"name": "EclecticIQ Fusion Center",
"external_references": [
{
"source_name": "external-url",
@seamustuohy
seamustuohy / web-servers.md
Created October 6, 2018 12:58 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@seamustuohy
seamustuohy / disable_ddeauto.reg
Created August 28, 2018 14:00 — forked from wdormann/disable_ddeauto.reg
Disable DDEAUTO for Outlook, Word, OneNote, and Excel versions 2010, 2013, 2016
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options]
"DontUpdateLinks"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Word\Options]
"DontUpdateLinks"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options]
"DontUpdateLinks"=dword:00000001
@seamustuohy
seamustuohy / gitter-weechat-instructions.md
Created August 22, 2018 11:39 — forked from raine/gitter-weechat-instructions.md
Connecting to gitter using weechat

Auth and copy token at https://irc.gitter.im/.

Ignore the /PASS thing, it doesn't work in weechat.

/server add gitter irc.gitter.im -ssl -ssl_verify -ssl_dhkey_size=1024 -password=<REPLACE_WITH_YOUR_TOKEN>
/connect gitter
Term Description Link(s)
Alias Another email address that people can use to email
App Password An app password is a password that is created within the Azure portal and that allows the user to bypass MFA and continue to use their application.
Alternate email address Required for admins to receive important notifications, or resetting the admin password which cannot be modified by the end users
AuditAdmin
AuditDelegate
Delegate An account with assigned permissions to a mailbox.
Display Name Name that appears in the Address Book & on the TO and From lines on an email.
EAC "Exchange Admin Center"
"""
For use with python3.
Usage: Download and save this script in your project folder.
In the script:
from incap import IncapSession as Session
session = Session()
response = session.get('https://www.url.com')
@seamustuohy
seamustuohy / annotations.xml
Created October 1, 2017 15:13 — forked from Neo23x0/annotations.xml
Sources for APT Groups and Operations Search Engine
<?xml version="1.0" encoding="UTF-8" ?>
<Annotations start="0" num="126" total="126">
<Annotation about="blog.malwaremustdie.org/*" timestamp="0x0005408aeb576862" href="ChlibG9nLm1hbHdhcmVtdXN0ZGllLm9yZy8qEOLQ3dqukdAC">
<Label name="_cse_turlh5vi4xc" />
<AdditionalData attribute="original_url" value="http://blog.malwaremustdie.org/" />
</Annotation>
<Annotation about="blog.airbuscybersecurity.com/*" timestamp="0x0005408aea73fd53" href="Ch5ibG9nLmFpcmJ1c2N5YmVyc2VjdXJpdHkuY29tLyoQ0_rP066R0AI">
<Label name="_cse_turlh5vi4xc" />
<AdditionalData attribute="original_url" value="http://blog.airbuscybersecurity.com/" />
</Annotation>
@seamustuohy
seamustuohy / useful_pandas_snippets.py
Created September 4, 2016 21:36 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
pd.unique(df.column_name.ravel())
# Convert Series datatype to numeric, getting rid of any non-numeric values
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True)
# Grab DataFrame rows where column has certain values
valuelist = ['value1', 'value2', 'value3']
df = df[df.column.isin(valuelist)]