Skip to content

Instantly share code, notes, and snippets.


Alexandre ZANNI noraj

View GitHub Profile
noraj /
Last active Aug 1, 2022
Couverture / Qualité du réseau mobile en France


L'Autorité de régulation des communications électroniques, des postes et de la distribution de la presse (Arcep) est une autorité administrative indépendante française chargée de réguler les communications électroniques et postales et la distribution de la presse.

Ref. Wikipedia

L'Arcep tient à jour une carte sur la couverture et la qualité des différents réseaux mobile en France, soit pour les réseaux de Bouygues, Free, Orange et SFR. La carte de couverture permet de voir l'emplacement des antennes (opérateur, technologies, fréquences). La carte de qualité permet d'accéder aux débits et aux tests "Navigation Web - Chargement d’une page en moins de 10s".

Avantages :

noraj /
Last active Sep 25, 2022
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)


del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del.

The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.


noraj /
Created Jul 12, 2022
Inject Android key events from ADB
noraj /
Created Jul 9, 2022
Patch the Protestware behavior in sweetalert2
noraj /
Created Apr 23, 2022
How to create SHA-512 password hashes for shadow on command line

All examples will be using SHA-512, <password> as password placeholder and <salt> as salt placeholder.


Note: mkpasswd binary is installed via the package whois on Debian / Ubuntu only. On other Linux distribution such as ArchLinux, Fedora, CentOS, openSUSE, etc. mkpasswd is provided by the expect package but is an totally different utility which is available as expect_mkpasswd on Debian / Ubuntu. whois of all other Linux distro doesn't include mkpasswd but the source (C lang) can be found on the original repository

# With a random password and random salt
mkpasswd -m sha-512
# With a random random salt
noraj / fr-tlds.rb
Created Apr 20, 2022
Liste des TLDs pour la France et ses DROM-COM (départements et régions d'outre-mer et collectivités d'outre-mer)
View fr-tlds.rb
Liste des TLDs pour la France et ses DROM-COM (départements et régions
d'outre-mer et collectivités d'outre-mer)
require 'docopt'
TLDs = {
'bl' => 'Saint-Barthélemy',
'fr' => 'France',
'gf' => 'Guyane française',
noraj /
Last active Aug 7, 2021
Leave a TryHackMe room


Here is a short JS snippet to leave a room on TryHackMe.


Context: I joined the room a long time ago when it was free but has become VIP-only, so I have it appearing in "My rooms" but cannot do it and since I'm redirected to the VIP subscription page I can't leave it.


noraj / pretty-csv.rb
Last active Jun 9, 2021
List installed BA pentest tools + description
View pretty-csv.rb
#!/usr/bin/env ruby
require 'csv'
installed_tools = %x(pacman -Sl blackarch).split("\n").grep(/\[installed\]/)
tools_list = []
installed_tools.each do |line|
_repo, tool, _version, _status = line.split(' ', 4)
description = %x(pacman -Qs #{tool}).split("\n")[1].strip
noraj / mini-netstat.rb
Created Feb 27, 2021
netstat -ta or ss -ta equivalent in ruby
View mini-netstat.rb
require 'etc'
TCP_STATES = { # /usr/src/linux/include/net/tcp_states.h
'00': 'UNKNOWN',
'02': 'SYN_SENT',
'03': 'SYN_RECV',
'04': 'FIN_WAIT1',
'05': 'FIN_WAIT2',