Skip to content

Instantly share code, notes, and snippets.

@b401
b401 / sysmon_rmm-FileBlockExecutable.xml
Last active October 15, 2023 14:43
Sysmon - Block RMM software
<Sysmon schemaversion="4.82">
<EventFiltering>
<RuleGroup name="" groupRelation="or">
<FileBlockExecutable onmatch="include">
<!-- List used: https://github.com/0x706972686f/RMM-Catalogue/tree/main -->
<TargetFilename name="RMM Software" condition="end with">rpcgrab.exe</TargetFilename>
<TargetFilename name="RMM Software" condition="end with">rpcsetup.exe</TargetFilename>
<TargetFilename name="RMM Software" condition="end with">action1_agent.exe</TargetFilename>
<TargetFilename name="RMM Software" condition="end with">aeroadmin.exe</TargetFilename>
<TargetFilename name="RMM Software" condition="end with">alitask.exe</TargetFilename>
@b401
b401 / pssession.md
Last active May 17, 2022 06:26
Enter-PSSession within powershell docker container

Pull docker image
docker pull mcr.microsoft.com/powershell:latest

Run container
docker run -it --rm mcr.microsoft.com/powershell:latest

Install WSMan-Module

Install-Module -Name PSWSMan
Import-Module PSWSMan
@b401
b401 / screensharing.md
Created February 19, 2022 13:09
Screensharing on wayland with NixOS
# rtkit for pipewire
security.rtkit.enable = true;

# enable pipewire with wlr support
services.pipewire.enable = true;
xdg = {
  portal = {
    enable = true;
 extraPortals = with pkgs; [
@b401
b401 / advanced_hunting.md
Created February 15, 2022 11:21
Microsoft Advanced Hunting encoding
= Title: Subtitle
Firstname Lastname <[email protected]>
:doctype: pdf
:author: firstname lastname
:subtitle: subtitle
:ntitle: title: {subtitle}
:imagesdir: ./images
:class: classname
:pdf-stylesdir: /template/resources/themes
:pdf-fontsdir: /template/resources/fonts
@b401
b401 / Dockerfile
Last active April 12, 2019 19:53
Deployment Dockerfile for hackadoc
FROM node:boron
VOLUME /var/hackadoc
RUN apt update && apt install -y \
git \
sqlite3
RUN git clone https://github.com/hackergarten/hackadoc.git /var/hackadoc
WORKDIR /var/hackadoc
@b401
b401 / Dockerfile
Created March 9, 2019 16:09
34c3 Digital Billboard - Easy Challenge as Dockerimage
FROM debian:latest
ADD https://archive.aachen.ccc.de/junior.34c3ctf.ccc.ac/uploads/billboard-56c33efc813379c674ea0d0a64258b5fa835f8d4.tar.gz /srv
RUN tar xvf /srv/billboard-56c33efc813379c674ea0d0a64258b5fa835f8d4.tar.gz -C /srv \
&& rm -f /srv/billboard-56c33efc813379c674ea0d0a64258b5fa835f8d4.tar.gz \
&& useradd -g 0 -M -o -u 0 challenge
USER challenge
WORKDIR /srv