Skip to content

Instantly share code, notes, and snippets.

View e-cite's full-sized avatar

Andreas Dolp e-cite

View GitHub Profile
@e-cite
e-cite / ssh-autostart.md
Last active June 4, 2024 21:19
SSH-Agent Autostart via systemd

Schulung "Lateral Movement in Microsoft Environment"

Teil 1 (12.5.2022)

Techniken für Lateral Movement

  • WinRM (Windows Remote Management)
  • WinRS (Windows Remote Shell)
  • SMB / PsExec/RCE/RSE
@e-cite
e-cite / README.md
Created April 16, 2022 16:01
OpenSSL self-signed certificate
  1. Generate self-signed certificate
    openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout selfsigned.key -out selfsigned.crt -subj '/CN=example.com' -addext 'subjectAltName=DNS:example.com'
  2. Import it to "Vertrauenswürdige Stammzertifizierungsstellen" in Windows
@e-cite
e-cite / 20220414-datasets.md
Last active April 14, 2022 15:18
Suricata Notes

Schulung "Suricata Datasets - Millions of IoCs handled easy"

  • Zoom-Webinar am 14.04.2022 von Peter Manev, OISF

Datasets

  • Erzeuge einen Alarm, wenn es eine Übereinstimmung zwischen DNS query und dataset gibt.
  • Es können auch Transformations erfolgen, bspw. DNS query gegenüber einer md5 Blacklist prüfen.
  • Das suricata-verify Repository enthält einige Beispiele zu Datasets.
  • SELKS / Scirius sollten wir uns unbedingt anschauen.

Verwendung von Datasets

@e-cite
e-cite / words.md
Created April 12, 2022 18:43
Mnemonic Encoding Word List

Mnemonic Encoding Word List

http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html

  • The wordlist contains 1626 words.
  • All words are between 4 and 7 letters long.
  • No word in the list is a prefix of another word (e.g. visit, visitor).
  • Five letter prefixes of words are sufficient to be unique.
  • The words should be usable by people all over the world. The list is far from perfect in that respect. It is heavily biased towards western culture and English in particular. The international vocabulary is simply not big enough. One can argue that even words like "hotel" or "radio" are not truly international. You will find many English words in the list but I have tried to limit them to words that are part of a beginner's vocabulary or words that have close relatives in other european languages. In some cases a word has a different meaning in another language or is pronounced very differently but for the purpose of the encoding it is still ok - I assume that when the encoding is
@e-cite
e-cite / README.md
Last active May 6, 2023 17:57
Show git branch in bash prompt
@e-cite
e-cite / LGT92-v1.6.4_decoder_TTN_ecite.js
Last active January 9, 2022 17:05
Dragino TTN Decoders
// From: https://www.dragino.com/downloads/index.php?dir=LGT_92/Decoder/
// But roll, pitch and altitude are wrong due to <<24>>16.
// Better: <<8
//The function is :
function Decoder(bytes, port) {
// Decode an uplink message from a buffer
// (array) of bytes to an object of fields.
var latitude;//gps latitude,units: °
@e-cite
e-cite / debian-vm-settings.md
Last active May 6, 2023 18:10
Debian VM settings
  • Locales
  • Timezone
  • Hostname
  • Domainname
  • apt-get install open-vm-tools open-vm-tools-desktop terminator wipe virt-manager ssh-askpass dnsutils auto-apt-proxy
  • apt-get install firmware-linux-nonfree xserver-xorg-input-synaptics
  • Mac Book Pro: add non-free to packet sources
  • Install VS Code
  • Einstellungen / Session and Startup / Application Autostart / Activate SSH Key Agent (GNOME Keyring: SSH Agent)
  • Einstellungen / Erscheinungsbild / Schriften / DPI-Wert auf 96
@e-cite
e-cite / wiki_industrielle-netzwerk-protokolle.md
Created July 7, 2021 16:30
Wiki: Industrielle Netzwerk-Protokolle
@e-cite
e-cite / wiki_industrial-ethernet.md
Created July 7, 2021 16:25
Wiki: Industrial Ethernet

Industrial Ethernet

Grundlagen

Industrial Ethernet dient dazu, den vorhandenen Ethernet-Standard um die Anforderungen aus der Prozessdatenkommunikation zu erweitern.

Es sind insbesondere folgende Anforderungen zu berücksichtigen:

  • Industrielle Umgebungsbedingungen (Temperaturbereiche; Beständigkeit gegen Öl, Säuren, etc.; Vibrationen; EMV)
  • Schutzarten (IPxx)
  • Hutschienenmontage
  • Spannungsversorgung, typ. 24 V DC
  • Topologien (Häufig Ring, eher selten Stern bzw. Baum)