Skip to content

Instantly share code, notes, and snippets.

@claire-lex
claire-lex / enip_discover.py
Created August 28, 2023 12:47
Ethernet/IP discovery
# claire-lex @ 2023
# Sends a ListIdentify request to obtain device description with Ethernet/IP
# Uses Scapy version later than commit #3bd29da (contrib/enipTCP.py update)
from sys import argv
from socket import socket
from scapy.supersocket import StreamSocket
from scapy.compat import raw
from scapy.packet import Raw
from scapy.contrib.enipTCP import ENIPTCP
@claire-lex
claire-lex / i3_battery_noacpi.sh
Last active July 10, 2023 12:45
i3blocks battery script for CentOS 7
#!/usr/bin/ksh
#
# Lex @ 2020
# Battery script for i3blocks on CentOS
# Does not rely on the ACPI commands (unlike other scripts :()
BAT_PATH="/sys/class/power_supply/BAT0/uevent"
THRESHOLD=20 # %
# Colors
@claire-lex
claire-lex / skipass-dictionary.txt
Last active January 10, 2022 14:55
Skipass: Password dictionary for the French Alps (Isère, Savoie, Haute-Savoie)
abondance
achard
adieudon
aiguebelette
aigueblanche
ailefroide
albertville
albertville92
allevard
ambilly