Skip to content

Instantly share code, notes, and snippets.

View grahamnedelka's full-sized avatar

Graham Nedelka grahamnedelka

  • Lyft
  • Stamford, CT
  • 14:20 (UTC -04:00)
View GitHub Profile
@mattiaslundberg
mattiaslundberg / arch-linux-install
Last active May 26, 2024 17:26
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@DonnchaC
DonnchaC / sni-proxy.py
Last active May 12, 2019 11:54
This is a proof-of-concept tool which demonstrates transparent proxying of SSL connections from an entry server to a hidden servce with end-to-end encryption. The SNI extension in the SSL ClientHello is used to determine the destination. Further info in the Tor2web ticket: https://github.com/globaleaks/Tor2web/issues/252
#!/usr/bin/env python
"""
Proxy an SSL connection to a Twisted endpoint based on the SNI extension
Allows for end-to-end encrypted connections from a browser to a Tor hidden
service.
Proxy code based on
http://blog.laplante.io/2013/08/a-basic-man-in-the-middle-proxy-with-twisted/
#!/bin/sh
#enable logging
defaults write /Library/Preferences/com.apple.MCXDebug debugOutput -2
defaults write /Library/Preferences/com.apple.MCXDebug collateLogs 1
touch /var/db/MDM_EnableDebug
#reset DEP
rm /var/db/.AppleSetupDone
rm -rf /var/db/ConfigurationProfiles/
rm /Library/Keychains/apsd.keychain
# Remove JAMF Framework
<?php
define('HOST','http://cpanel.byethost.com');
define('USER','b14_17753534');
define('PASS','Skshiagg1234');
define('DB','b14_17753534_userinfo');
$con = mysqli_connect(HOST,USER,PASS,DB);
$sql = "select * from userinfo";
@torifier
torifier / torIRC.py
Last active May 12, 2019 11:54
tor IRC - updated in 2016
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
'''
### TOR IRC ### Fully anonymous text chat. Launch it using your python language interpreter in a bash shell / Konsole.
### TorTextChat (TTC) ###
release home site https://gist.github.com/torifier/f1a7c1ac7b6b003cd9e1c187df2c5347
TorTextChat version 1.981
find chat partners, see also : https://beamstat.com/chan/general
@ze9ze
ze9ze / Raspberry Pi 3 Rouge AP
Last active May 26, 2020 23:10
How to create a Raspberry pi 3 Rouge Access Point
#################################################################################################
## This is expecting that you just flashed/burned the kali_raspberry_pi.img file to a micro ##
## sd card and are just booting up the raspberry pi up for the first time along with a ethernet##
## jacked into it onto your local network, along with at least 1 external wifi card hooked up ##
## and are are going to ssh into it via ssh for setting this up. ##
## username: ssh root@YOUR_RASPBERRY_IP password: toor ##
#################################################################################################
## The following will allow for you to use VNC desktop, SSH, FruityWiFi, all going through ##
## the wireless access point thats being broadcasted and you can connect to VNC desktop ##
## to use network manager to connect your other wireless interface to a nearby wifi hotspot ##
#!/bin/bash
#########################################################################################
# Torjanify - Configure ssh access through a tor hidden service (ubuntu <= 14.04 version)
#########################################################################################
#
# Host and port where you want to receive the generated onion url:
recvHost=some.server
recvPort=8443
@mallej
mallej / mdm.sh
Last active February 14, 2020 04:34
[re-add mdm profile] #jamf #mdm
# https://www.jamf.com/jamf-nation/discussions/20830/mdm-capable-users-how-to-add#responseChild157012
/usr/bin/profiles -R -p 00000000-0000-0000-A000-4A414D460003 (your MDM profile identifier here)
jamf manage
# -p A profile identifier used to locate the configuration or provisioning profile.
profiles -P
@fire1ce
fire1ce / Raspberry Pi 3 TOR Access Point Router.md
Last active November 4, 2023 06:39
Raspberry Pi 3 TOR Access Point Router

THIS GIST WON'T BE UPDATED ANY MORE (24/10/18)

Follow the progress of this project here 3os.org Raspberry Pi 3 TOR Access Point Router Project

Network: Router RJ45 <--> Ethernet Port on Raspberry <--> TOR <--> Raspberry WIFI AC <--> WIFI CLIENT

# -- Download Rasbian Strech Lite from: https://www.raspberrypi.org/downloads/raspbian/
@WilliamBergamin
WilliamBergamin / app.py
Last active March 13, 2024 05:25
MVP python function handler
import logging
from slack_sdk import WebClient
from slack_bolt import App, Ack, Say, Complete, Fail, BoltContext
from slack_bolt.adapter.socket_mode import SocketModeHandler
logging.basicConfig(level=logging.DEBUG)
app = App()