Skip to content

Instantly share code, notes, and snippets.

View adulau's full-sized avatar
👨‍💻
Doing stuff

Alexandre Dulaunoy adulau

👨‍💻
Doing stuff
View GitHub Profile

Install pipe module for spacy.io

export CPPFLAGS="-std=c++98"; pip3 install textpipe

@adulau
adulau / cve-search-fun.md
Created June 10, 2020 15:07
How to use cve-search - funny command lines

Generate PDFs from a set of CVE found by CPE

curl "http://127.0.0.1:5000/api/search/smiths-medical" | jq -r ".[] | .[].id" | parallel --gnu "python3 cve_doc.py -a http://127.0.0.1:5000/ -c {} >/tmp/{}.asc; cd /tmp; asciidoctor-pdf {}.asc"
@adulau
adulau / misp-galaxy-analysis.md
Created June 9, 2020 14:38
MISP threat-actor galaxy - usage from the command line

Extract all names and synonyms

cat threat-actor.json | jq --raw-output ".values | [.[].value, .[].meta.synonyms] | flatten | .[] " | grep -v "null"

@adulau
adulau / notes-unix.md
Created April 15, 2020 12:33
Notes command

Poetry falling back to Python 2

alias poetry="python3 $HOME/.poetry/bin/poetry"

@adulau
adulau / tweetanalysis.md
Last active July 7, 2020 14:13
Tweet analysis.md

Tweet analysis

Issues Unicode spaces

Tweets are in Unicode format and different languages. You might want to convert all the different kind of spaces into a single type of space.

If you are curious about all the different kind of spaces in Unicode, you might want to read Unicode spaces

 CHARS=$(printf "%b" "\U00A0\U1680\U180E\U2000\U2001\U2002\U2003\U2004\U2005\U2006\U2007\U2008\U2009\U200A\U200B\U202F\U205F\U3000\UFEFF")
@adulau
adulau / misp-toolset.md
Created September 20, 2019 08:01
Toolset for MISP taxonomies, objects and alike

a list to a sane default

cat /tmp/lang.txt | awk -F'\\\\n' '{ printf "\"%s\", \n", $1 }'

<?xml version="1.0" encoding="us-ascii"?>
<ioc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="fc2d3e44-80a6-4add-ad94-de9f289e62ff" last-modified="2011-10-28T21:00:13" xmlns="http://schemas.mandiant.com/2010/ioc">
<short_description>CCAPP.EXE</short_description>
<description>Custom Reverse shell.</description>
<keywords />
<authored_by>Mandiant</authored_by>
<authored_date>2010-12-13T12:49:53</authored_date>
<links>
<link rel="grade">Alpha</link>
</links>
@adulau
adulau / gist:76f40052c01ca2a182ba38d8ba15b1ce
Created June 21, 2019 22:03
Peak of PE files in pastebin - 2019/06/19
5d323e196ae9cd8b05c7711538264ebc59f0d690
3c5b1fa5b76033ae9ab6a28af6d495487b509fa7
aacd28512f3e5690c70fcb9018f0da7d94f873a2
6c80fd53423f99bdcff0a1460d0e1b3c7078f58e
4c9bf438d46ca87cfed57d851d69766b017a4aca
28307d491aa8262e09e147fba06a5b2314124c57
179cefa4d2e29d17ec38a7e2c28f0bd847504694
80be5349ebe8ab391303cc4b9045ffbf7c8a4ce2
b642848933f2aae2500d3ad77ccce3d4250d928d