Skip to content

Instantly share code, notes, and snippets.

View domenpk's full-sized avatar

Domen Puncer Kugler domenpk

View GitHub Profile
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
from random import random, seed, randrange
from math import log2
KEY = bytes(16)
IV = bytes(range(16))
PT = b'Plaintext!'
@McCannDahl
McCannDahl / gist:a3cdde895ab1a758bffe8b5780c26ae5
Last active November 6, 2023 22:14
Raspberry Pi 3 in Monitoring Mode

Want to do some ethical hacking with only a Raspberry Pi 3?

No extra hardware required! Follow these steps:

  1. Download kali for raspberry pi & flash the OS onto the SD card
  2. iw phy phy0 interface add mon0 type monitor
  3. ifconfig mon0 up
    *alternatively try: airmon-ng start wlan0

To hack wifi

@thestinger
thestinger / Android_Q_Privacy.md
Last active January 31, 2024 22:25
Android Q privacy features in the context of the AndroidHardening / GrapheneOS work

Some of the privacy features that I developed in the past are now going to be standard Android features in the next major release. In some cases, the implementation that I worked on ended up being a direct inspiration for the upstream work. I also pushed them to enable permissions review by default, which may have had some influence on it finally shipping as enabled. It was seemingly implemented for some niche scenario and most of their privacy / security team didn't know about the feature existing when I talked to them about it in the past.

Most of my work has focused on improving security, and that focus will be somewhat increased in Android Q due to many of the privacy improvements being part of the baseline OS.

Android P had previously replaced some of the privacy features developed as part of the AndroidHardening project such as restricting access to the camera, microphone and sensors in the background.

Features that were not implemented by my past work:

@rmoriz
rmoriz / 1_smime-clients.md
Last active December 17, 2023 13:41
S/MIME is the industry standard for secure E-Mail and build into every relevant mail client. From Outlook to Thunderbird, from Blackberry to Apple Mail on OSX and iOS. http://smime.io/