Skip to content

Instantly share code, notes, and snippets.

Stéphane Bortzmeyer bortzmeyer

Block or report user

Report or block bortzmeyer

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
@bortzmeyer
bortzmeyer / arfinic-anycast.md
Created Jul 22, 2019
Afrinic anycast DNS server
View arfinic-anycast.md

Seen by the RIPE Atlas probes.

% blaeu-resolve -r 100 --nsid --nameserver 196.216.168.25 -q SOA tn
Nameserver 196.216.168.25
[NSID: b's04-ns2.jnb' ns1.ati.tn. hostmaster.ati.tn. 2019128869 21600 10800 604800 86400] : 49 occurrences 
[NSID: b's03-ns2.jnb' ns1.ati.tn. hostmaster.ati.tn. 2019128869 21600 10800 604800 86400] : 38 occurrences 
[TIMEOUT] : 6 occurrences 
[NSID: b's01-ns2.jinx' ns1.ati.tn. hostmaster.ati.tn. 2019128869 21600 10800 604800 86400] : 2 occurrences 
[NSID: b's01.ns2.tun' ns1.ati.tn. hostmaster.ati.tn. 2019128869 21600 10800 604800 86400] : 1 occurrences 
@bortzmeyer
bortzmeyer / mine.md
Created Jun 18, 2019
Programme de minage pour l'école d'été de cybersécurité, cours Bitcoin
View mine.md
#!/usr/bin/env python3

import random

def asciisum(s):
    result = 0
    for c in s:
        result += ord(c)
    return result
@bortzmeyer
bortzmeyer / cameroon.cm
Created May 23, 2019
Cameroon wrong delegation for com.cm
View cameroon.cm
```
% check-soa -i cm
auth02.ns.uu.net.
198.6.1.82: ERROR: SERVFAIL (112 ms)
benoue.camnet.cm.
195.24.208.2: OK: 2019052303 (118 ms)
kim.camnet.cm.
195.24.192.35: OK: 2019052303 (114 ms)
lom.camnet.cm.
195.24.192.34: OK: 2019052307 (114 ms)
@bortzmeyer
bortzmeyer / xml-xslt.md
Created Apr 19, 2019
Playing with XML
View xml-xslt.md
% cat toto.xml
<?xml version="1.0" encoding="utf-8"?>
<p>foo <b>bar</b> : quz</p>

% cat convert.xsl
<?xml version='1.0' encoding="utf-8"?>
<!DOCTYPE stylesheet [
<!ENTITY newln "&#xA;">
]>
@bortzmeyer
bortzmeyer / sci-hub.md
Last active Apr 2, 2019
Censorship of Sci-Hub in France, after a court decision
View sci-hub.md

Seen by the RIPE Atlas probes.

The vast majority of the ISPs which do censor return the localhost address (186.2.163.90 is the real one):

% blaeu-resolve -c FR -r 1000 -q A sci-hub.tw 
[] : 12 occurrences 
[ERROR: NXDOMAIN] : 2 occurrences 
[186.2.163.90] : 235 occurrences 
[127.0.0.1] : 112 occurrences 
@bortzmeyer
bortzmeyer / rollover.md
Created Mar 22, 2019
Last step of the DNSSEC key rollover at the root
View rollover.md

The former KSK is still there

% dig @a.root-servers.net  DNSKEY .

; <<>> DiG 9.11.3-1ubuntu1.5-Ubuntu <<>> @a.root-servers.net DNSKEY .
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25705
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 1
View https.md
    1   0.000000 148.60.82.44 → 142.93.108.123 TCP 74 49018 → https(443) [SYN] Seq=0 Win=29200 Len=0 MSS=1460 SACK_PERM=1 TSval=999589848 TSecr=0 WS=128
    2   0.040196 142.93.108.123 → 148.60.82.44 TCP 70 https(443) → 49018 [SYN, ACK] Seq=0 Ack=1 Win=28960 Len=0 MSS=1460 SACK_PERM=1 TSval=3749834028 TSecr=999589848
    3   0.040253 148.60.82.44 → 142.93.108.123 TCP 66 49018 → https(443) [ACK] Seq=1 Ack=1 Win=29200 Len=0 TSval=999589888 TSecr=3749834028
    4   0.050460 148.60.82.44 → 142.93.108.123 TLSv1 287 Client Hello
    5   0.078820 142.93.108.123 → 148.60.82.44 TCP 66 https(443) → 49018 [ACK] Seq=1 Ack=222 Win=30016 Len=0 TSval=3749834062 TSecr=999589898
    6   0.088562 142.93.108.123 → 148.60.82.44 TLSv1.2 3070 Server Hello, Certificate, Server Key Exchange, Server Hello Done
    7   0.088629 148.60.82.44 → 142.93.108.123 TCP 66 49018 → https(443) [ACK] Seq=222 Ack=3005 Win=34752 Len=0 TSval=999589936 TSecr=3749834064
    8   0.090479 148.60.82.44 → 142.93.108.123 TLSv1.2 159 Client Key Exchange
@bortzmeyer
bortzmeyer / cia-pedo.md
Created Mar 18, 2019
The email claiming to be from CIA
View cia-pedo.md

Case #28149735 Distribution and storage of pornographic electronic materials involving underage children.

My name is Virgie Tabor and I am a technical collection officer working for Central Intelligence Agency.

It has come to my attention that your personal details including your email address (stephane+atlas@bortzmeyer.org) are listed in case #28149735.

@bortzmeyer
bortzmeyer / venezuela.md
Created Mar 10, 2019
Venezuela Internet situation (specially DNS)
View venezuela.md

Most DNS authoritative name servers for the ccTLD are down:

% date -u
Sun Mar 10 17:12:55 UTC 2019
% check-soa -i ve
azmodan.ula.ve.
	Cannot get the IPv6 address: read udp 127.0.0.1:59957->127.0.0.1:53: i/o timeout
ns-ext.nic.cl.
	2001:1398:1:0:200:1:123:14: OK: 2019030729 (201 ms)
@bortzmeyer
bortzmeyer / post-random.md
Created Feb 20, 2019
A simple script to post on the fediverse one file at random
View post-random.md
!/bin/bash

set -e

DIR=/tmp/foobar
cd $DIR
FILES=$(ls *.txt)
set ${FILES}
shift $(($RANDOM % $#))
You can’t perform that action at this time.