Skip to content

Instantly share code, notes, and snippets.

@garyconstable
garyconstable / deauth.py
Last active August 26, 2024 17:57
Python Networking Wifi Deauth Attack
import argparse
from multiprocessing import Process
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy.all import *
import signal
import threading
from sys import platform
@rdegges
rdegges / tmux.conf
Created September 3, 2014 16:41
tmux.conf
##### CLEANUP
# Unbind the default tmux command prefix, CTRL+b.
unbind C-b
#####
##### PREFERENCES
# Use CTRL+a as our tmux command prefix.
set -g prefix C-a
@aayushKumarJarvis
aayushKumarJarvis / RequestBuilder
Last active July 19, 2024 13:43
TrueCaller Terminal Utility
<?php
/*
TrueCaller offers its Web UI version also, where you can trace phone number's identity.
For people like me, who are great believers of Laptops and Desktop Machines, we miss out
certain things which sometimes become a part of our mockery.
But you got to realize that people can literally do anything if they have this piece of hardware
called computer with them.

Stealing WiFi

/etc/hosts

This will let you access any google owned site. This includes: youtube, google cache, google translate, google search, gmail, google news, etc.

  • Install the HTTPS Everywhere extension
  • Add these rules to your /etc/hosts file
@sckalath
sckalath / windows_privesc
Last active October 2, 2025 07:43
Windows Privilege Escalation
// What system are we connected to?
systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
// Get the hostname and username (if available)
hostname
echo %username%
// Get users
net users
net user [username]
@sckalath
sckalath / linux_privesc
Last active August 20, 2025 12:44
Linux Privilege Escalation Techniques
// Determine linux distribution and version
cat /etc/issue
cat /etc/*-release
cat /etc/lsb-release
cat /etc/redhat-release
// Determine kernel version - 32 or 64-bit?
cat /proc/version
uname -a
uname -mrs
@pcarrier
pcarrier / _instructions
Last active December 26, 2021 17:23
Chrome Remote Desktop
The remote desktop session has to be headless :(
- Install the deb (can convert with alien & co)
- Patch with modern_distro.diff (cherry-pick what your system needs)
- To support automatic desktop resizing:
- Works with any window manager
- Build Xvfb with xvfb-randr.diff
- Expose as /usr/bin/Xvfb-randr
- If replacing system-wide binary by repackaging, simply
# ln -sf Xvfb /usr/bin/Xvfb-randr
require 'rubygems'
require 'openssl'
require 'digest/md5'
key = OpenSSL::PKey::RSA.new(2048)
cipher = OpenSSL::Cipher::AES.new(256, :CBC)
ctx = OpenSSL::SSL::SSLContext.new
puts "Spoof must be in DER format and saved as root.cer"
raw = File.read "root.cer"
cert = OpenSSL::X509::Certificate.new raw
cert.version = 2
@ruzickap
ruzickap / openwrt_wireless.sh
Created April 6, 2014 16:55
OpenWrt WiFi configuration tweaks
uci set wireless.radio0.channel=8
uci set wireless.radio0.htmode=HT40-
uci set wireless.radio0.noscan=1
uci set wireless.radio0.bursting=1
uci set wireless.radio0.ff=1
uci set wireless.radio0.compression=1
uci set wireless.radio0.xr=1
uci set wireless.radio0.ar=1
uci set wireless.radio0.txpower=20
package ca.uwo.csd.cs2212.USERNAME;
public class BankAccount {
private double balance;
public BankAccount(double balance) {
this.balance = balance;
}