Skip to content

Instantly share code, notes, and snippets.

@jayluxferro
jayluxferro / kali-apt-key-deprecation-fix.md
Created October 13, 2022 15:22
Fix for Kali apt-key deprecation warning when updating system

Run the command below to fix apt-key deprecation warning in Kali

sudo apt-get update

sudo apt-get install \
    ca-certificates \
    curl \
    gnupg \
 lsb-release
@jayluxferro
jayluxferro / ClusterSize.py
Created March 3, 2021 11:25
Cluster size for wireless networks
#!/usr/bin/env python
list = []
def n(i, j):
return (i ** 2) + (j ** 2) - (i * j)
for x in range(1, 11):
for y in range(x + 1):
_n = n(x, y)
@jayluxferro
jayluxferro / WireGuardInstaller.sh
Last active August 21, 2023 23:09
WireGuard Installer
#!/bin/bash
if [ $(whoami) != 'root' ]; then
echo 'Please run as root'
exit 1
fi
# install wireguard
apt install resolvconf wireguard wireguard-tools -y
@jayluxferro
jayluxferro / iptablesResetDefault.sh
Created May 24, 2020 17:47
IPTables Reset to default
#!/bin/bash
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
@jayluxferro
jayluxferro / MidIPlayer
Created April 4, 2020 20:43 — forked from genedelisa/MidIPlayer
Swift AVMIDIPlayer
/// soundbanks are either dls or sf2. see http://www.sf2midi.com/
var soundbank:NSURL!
var mp:AVMIDIPlayer!
func playMIDIFile() {
// Load a SoundFont or DLS file.
self.soundbank = NSBundle.mainBundle().URLForResource("GeneralUser GS MuseScore v1.442", withExtension: "sf2")
// a standard MIDI file.
@jayluxferro
jayluxferro / binwalk_installer.sh
Last active October 18, 2020 21:54
binwalk installer
#!/bin/bash
# root access
if [ $(whoami) != 'root' ];
then
echo 'Please run as root'
exit 1
fi
apt-get install python3 python3-pip python3-crypto python3-numpy python3-scipy python3-pip mtd-utils gzip bzip2 tar arj lhasa p7zip p7zip-full cabextract cramfsswap squashfs-tools sleuthkit default-jdk lzop srecord zlib1g-dev liblzma-dev liblzo2-dev git -y
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux
@jayluxferro
jayluxferro / gist:ea193da776d9bb03db3034c0708b7cde
Created May 15, 2019 08:21 — forked from jovimon/gist:524e116471f249626fd2ccd141f3fe05
compile realtek network driver for pfsense 2.4.x

How to compile and install latest realtek network driver in pfSense 2.4.x (FreeBSD 11.1)

  1. Download FreeBSD 11.1 VMDK and create a VM with it as HDD.

  2. Get FreeBSD source tree for your exact FreeBSD version and uncompress it to /usr/src:

    fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz
    tar -C / -xvf /tmp/src.txz
    
  3. Download latest Realtek network driver (you need to input an email address).

@jayluxferro
jayluxferro / pcap2wav
Created May 4, 2019 19:52 — forked from avimar/pcap2wav
Convert raw PCAP files into a .wav file
#!/bin/bash
#
# pcap2wav
# Original Author: Michael Collins <msc@freeswitch.org>
#Standard disclaimer: batteries not included, your mileage may vary...
# Updated by Avi Marcus <avi@bestfone.com>
#
# Accepts arg of pcap file w/only 2 RTP streams
# Creates a .<codec> file and a .wav file
# For codecs other than PCMA and PCMU the script calls fs_cli and does a little recording to create the wav file(s)
@jayluxferro
jayluxferro / iterm2-solarized.md
Created April 14, 2019 11:28 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k