Skip to content

Instantly share code, notes, and snippets.

This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/
@MightyPork
MightyPork / usb_hid_keys.h
Last active April 16, 2024 07:11
USB HID Keyboard scan codes
/**
* USB HID Keyboard scan codes as per USB spec 1.11
* plus some additional codes
*
* Created by MightyPork, 2016
* Public domain
*
* Adapted from:
* https://source.android.com/devices/input/keyboard-devices.html
*/
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active April 16, 2024 07:11
crack activate Office on mac with license file
@TheOnlyWayUp
TheOnlyWayUp / README.md
Last active April 16, 2024 07:08
Like all songs in a Youtube Music Playlist

This script likes all the songs in a Youtube Music Playlist at once.

How to use:

  • Visit a Playlist's page on ytm (URL looks like: https://music.youtube.com/playlist?list=...
  • Press ctrl + shift + j. This opens the Developer Console.
  • Copy the script in this gist (That's in script.js)
  • Paste the code into the Developer Console on the ytm Tab, hit enter.
  • Great, you're done!

Star ⭐ this gist if it was useful. Follows to my GitHub Profile are appreciated.

@ostinelli
ostinelli / rsa_openssl_for_python.md
Last active April 16, 2024 07:05
RSA Private / Public key pair with openssl & Python

RSA Private / Pubic key pair

To generate a private / public RSA key pair, you can either use openssl, like so:

$ openssl genrsa -out private.pem 4096  
$ openssl rsa -in private.pem -outform PEM -pubout -out public.pem  

Or, you can use the following python script:

@queencitycyber
queencitycyber / Bit Bangin'
Last active April 16, 2024 07:01
Resources
Mostly older shit from '17-'20. Some good, some stale. Posting here for posterity.
Pulled from my private Workflowy repo.
======================================
hackery (@Section31D)
- Penetration Testing/Assessment Workflow
@nitred
nitred / optimal_mtu.md
Last active April 16, 2024 06:57
Wireguard Optimal MTU

About

  • I faced bandwidth issues between a WG Peer and a WG server. Download bandwidth when downloading from WG Server to WG peer was reduced significantly and upload bandwidth was practically non existent.
  • I found a few reddit posts that said that we need to choose the right MTU. So I wrote a script to find an optimal MTU.
  • Ideally I would have liked to have run all possible MTU configurations for both WG Server and WG Peer but for simplicity I choose to fix the WG Server to the original 1420 MTU and tried all MTUs from 1280 to 1500 for the WG Peer.

Testing

  • On WG server, I started an iperf3 server
  • On WG peer, I wrote a script that does the following:
    • wg-quick down wg0
  • Edit MTU in the /etc/wireguard/wg0.conf file
@thesamesam
thesamesam / xz-backdoor.md
Last active April 16, 2024 06:54
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is still a new situation. There is a lot we don't know. We don't know if there are more possible exploit paths. We only know about this one path. Please update your systems regardless.

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

#!/bin/bash
trap 'killall -9 parallel-dd' INT
# number of bytes per file
SIZE=12K
# number of threads
THREADS=100
# number of files per thread
<input type="file" class="file-upload" onchange="console.log(event.target.files)">