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
@adulau
adulau / use-of-cve-search.md
Last active May 27, 2016 12:35
Use(s) of cve-search

https://github.com/adulau/cve-search

How to choose a CMS? (based on the CVSS?)

$ python search.py -p typo3 -o json  | jq -r '.cvss' | Rscript -e 'mean(as.numeric(read.table(file("stdin"))[,1]))'
[1] 6.161562

$ python search.py -p wordpress -o json  | jq -r '.cvss' | Rscript -e 'mean(as.numeric(read.table(file("stdin"))[,1]))'

[1] 5.622102

@adulau
adulau / OCR notes
Last active August 4, 2016 16:59
OCR notes
# libleptonica
wget http://www.leptonica.com/source/leptonica-1.73.tar.gz
./configure
sudo make install
# tesseract
./autogen.sh
"Domain","Dates"
"avortement.net","2016-10-18"
"avortement.pro","2016-11-13"
"ivg-infos.biz","2016-11-04"
"ivg-infos.com","2016-11-05"
"ivg-infos.info","2016-11-05"
"ivg-infos.net","2016-11-03"
"ivg-infos.org","2016-11-03"
"ivg-lyon.com","2016-08-08"
"ivg-medicamenteuse.com","2016-07-16"

Keybase proof

I hereby claim:

  • I am adulau on github.
  • I am adulau (https://keybase.io/adulau) on keybase.
  • I have a public key ASDbXKZybB_mzeURiO3DXX-KO5KORqgv8Wwf9RbEnqk12Qo

To claim this, I am signing this object:

@adulau
adulau / generate.py
Created January 22, 2017 16:05
Simple script to scatter plot ISN values over time (+ TCP port as color) from pcap
# Simple script to show the ISN value from a tshark output (extracting non relative ISN)
#
# tshark -n -r <yourcapturefile.cap" -T fields -e frame.time_epoch -T fields -e ip.src -T fields -e tcp.srcport -T fields -e ip.dst -T fields -e tcp.dstport -T fields -e tcp.seq -T fields -e tcp.flags -T fields -e ip.ttl -o tcp.relative_sequence_numbers:FALSE | awk -e '{print $1"\t"$6"\t"$5}' | python3 generate.py
#
# by Alexandre Dulaunoy - for analysis session given more info -> http://www.foo.be/cours/dess-20162017/
#
#
import numpy as np
import fileinput
@adulau
adulau / music.md
Created February 11, 2017 23:20
Bands to listen

Bands

  • Cubicolor
  • Paradis
  • Para One
@adulau
adulau / gist:c55225d2783b21ec1337cba079bcce23
Last active May 22, 2017 09:36
Passive DNS output - iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com
As of 15 May 2017:
~~~~
{
"time_last": 1494861996,
"rdata": "ns4.sinkhole.tech",
"rrname": "iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com",
"rrtype": "NS",
"time_first": 1494819526,
@adulau
adulau / misp-with-objects.json
Created September 16, 2017 07:50
MISP JSON format with a regexp object
{
"Event": {
"id": "3485",
"orgc_id": "1",
"org_id": "1",
"date": "2017-09-16",
"threat_level_id": "3",
"info": "Test DGA expression",
"published": false,
"uuid": "59bccef1-8584-4818-ad3c-460a02de0b81",