Skip to content

Instantly share code, notes, and snippets.

View noraj's full-sized avatar
💎
FLOSSing

Alexandre ZANNI noraj

💎
FLOSSing
View GitHub Profile
DKMS make.log for evdi-1.6.4 for kernel 4.19.91-1-lts (x86_64)
lun. déc. 23 11:28:45 CET 2019
make KBUILD_VERBOSE=1 M=/var/lib/dkms/evdi/1.6.4/build SUBDIRS=/var/lib/dkms/evdi/1.6.4/build SRCROOT=/var/lib/dkms/evdi/1.6.4/build CONFIG_MODULE_SIG= -C /lib/modules/4.19.91-1-lts/build modules
make[1]: Entering directory '/usr/lib/modules/4.19.91-1-lts/build'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo >&2 ; \
@noraj
noraj / BA-tips.md
Last active April 7, 2024 16:08
BlackArch dev tips
@noraj
noraj / background.svg
Created March 19, 2020 22:27
Background generated with TrianglePattern
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@noraj
noraj / services_bin_path.txt
Last active April 25, 2020 19:48
Side files for HackTheBox Control Writeup https://rawsec.ml/en/hackthebox-control-write-up/
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\1394ohci
ImagePath REG_EXPAND_SZ \SystemRoot\System32\drivers\1394ohci.sys
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\3ware
ImagePath REG_EXPAND_SZ System32\drivers\3ware.sys
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ACPI
ImagePath REG_EXPAND_SZ System32\drivers\ACPI.sys
@noraj
noraj / BetterSSH.py
Last active May 9, 2020 15:47
Side files for HackTheBox Obscurity Writeup https://rawsec.ml/en/hackthebox-obscurity-write-up/
import sys
import random, string
import os
import time
import crypt
import traceback
import subprocess
path = ''.join(random.choices(string.ascii_letters + string.digits, k=8))
session = {"user": "", "authenticated": 0}
@noraj
noraj / 01-mini-netstat.rb
Last active March 2, 2023 22:29
netstat -ta4 or ss -ta4 equivalent in Ruby and Crystal
require 'etc'
TCP_STATES = { # /usr/src/linux/include/net/tcp_states.h
'00': 'UNKNOWN',
'FF': 'UNKNOWN',
'01': 'ESTABLISHED',
'02': 'SYN_SENT',
'03': 'SYN_RECV',
'04': 'FIN_WAIT1',
'05': 'FIN_WAIT2',
@noraj
noraj / pretty-csv.rb
Last active June 9, 2021 19:28
List installed BA pentest tools + description
#!/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
noraj / README.md
Last active August 7, 2021 17:32
Leave a TryHackMe room

What?

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

Why?

Context: I joined the room https://tryhackme.com/room/linuxctf 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.

How?

@noraj
noraj / fr-tlds.rb
Created April 20, 2022 22:44
Liste des TLDs pour la France et ses DROM-COM (départements et régions d'outre-mer et collectivités d'outre-mer)
=begin
Liste des TLDs pour la France et ses DROM-COM (départements et régions
d'outre-mer et collectivités d'outre-mer)
=end
require 'docopt'
TLDs = {
'bl' => 'Saint-Barthélemy',
'fr' => 'France',
'gf' => 'Guyane française',
@noraj
noraj / HOWTO.md
Created April 23, 2022 19:52
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.

mkpasswd

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 https://github.com/rfc1036/whois.

# With a random password and random salt
mkpasswd -m sha-512
# With a random random salt