Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryce Sheehan ctrl-freak

View GitHub Profile
@ctrl-freak
ctrl-freak / apk_zipalign_resign.md
Created Jul 24, 2020
Modifying Android APK and Resign on Windows
View apk_zipalign_resign.md
@ctrl-freak
ctrl-freak / rtl8188eus.sh
Created Jul 15, 2020
TP-Link TL-WN722N v2 Monitor Mode
View rtl8188eus.sh
# https://github.com/aircrack-ng/rtl8188eus
sudo apt update
sudo apt install bc
sudo rmmod r8188eu.ko
git clone https://github.com/aircrack-ng/rtl8188eus
cd rtl8188eus
sudo -i
echo "blacklist r8188eu.ko" > "/etc/modprobe.d/realtek.conf"
exit
@ctrl-freak
ctrl-freak / nethunter_grouper-talapia.md
Last active May 8, 2021
Install Kali Nethunter on Nexus 7 (2012) (grouper, talapia)
View nethunter_grouper-talapia.md

Unsupported

The Nexus 7 (2012) tablet is no longer supported by Offensive Security; I didn't have any luck with kernel/kali distributions, so attempted upgrading.

Problems

  • Installing Open GApps slows the device to a crawl, haven't been able to install an app without the device freezing (though may need to let it sort itself out for longer)
  • Attempted to avoid GApps by installing a browser from APK (via adb)
@ctrl-freak
ctrl-freak / oracle_n8n_postgres.sh
Last active Jul 2, 2020
Install n8n.io and PostgreSQL on Docker on Oracle Cloud Ubuntu, protected by Auth0
View oracle_n8n_postgres.sh
# This is a string of commands, not a developed script.
# Set a password to be used for the PostgreSQL authentication
POSTGRES_USER='n8n'
POSTGRES_PASSWORD=''
# Create Instance
# Attach Block Storage
# Add a public IP to the NIC
# Edit the Instance > Virtual Cloud Network > Security Lists > Default Security Lists
@ctrl-freak
ctrl-freak / gist:d0cef2cc0d88cb3ed64bd6fc0d08fb0d
Created Aug 30, 2019
Disable Adobe Reader XI Protected Mode at Startup Keyboard Shortcuts
View gist:d0cef2cc0d88cb3ed64bd6fc0d08fb0d
Alt+E,N
Home,S,S,S
Alt+M,Y
Preferences
Security (Enhanced)
Enable Protected Mode at startup
http://www.efferen.nl/2012/03/solved-adobe-reader-x-hangs-after-opening-a-pdf-file/
https://www.adobe.com/devnet-docs/acrobatetk/tools/VirtualizationGuide/citrix.html
@ctrl-freak
ctrl-freak / homelab.txt
Last active Dec 23, 2020
Homelab Software
View homelab.txt
Greenplum (Massively Parallel Postgres for Analytics)
https://greenplum.org/download/
Vagrant (Development Environments Made Easy)
https://www.vagrantup.com/
Odoo (Open Source ERP and CRM)
https://www.odoo.com/
Apache Hadoop
@ctrl-freak
ctrl-freak / removesophos.ps1
Created Aug 1, 2019
Sophos Endpoint Removal Script
View removesophos.ps1
# https://www.reddit.com/r/sysadmin/comments/ck677f/sophos_removal_script/
# https://pastebin.com/4eRc5WpA
#Sophos Endpoint Removal Script
#Usage examples:
# .\removesophos.ps1 # Just logs all messages to screen and file.
# .\removesophos.ps1 -Remove YES # Removes all Sophos components and logs all messages to screen and file.
# .\removesophos.ps1 -Password 1234567 -Remove YES # Password will be provided to SEDCli.exe if TP is on and SEDCLi.exe exists.
# .\removesophos.ps1 -ErrorOnly YES # Only print items that exist (errors) on screen. Still logs all to file.
@ctrl-freak
ctrl-freak / procura-hacc-mds-letters-of-name.sql
Created Jan 16, 2018
Procura HACC MDS Statistical Linkage Key SQL SELECT
View procura-hacc-mds-letters-of-name.sql
-- Government of Western Australia
-- Department of Health
-- HACC – Minimum Data Set
-- http://ww2.health.wa.gov.au/Articles/F_I/HACC-minimum-data-set
-- http://ww2.health.wa.gov.au/~/media/Files/Corporate/general%20documents/HACC/PDF/WA_MDS_User_Guide2014.pdf
SELECT
UPPER(CONCAT(
SUBSTRING(
LEFT(CONCAT(
View fizzbuzz.php
<?php
$check = array(
3 => 'Fizz',
5 => 'Buzz',
);
for ($i = 1; $i <= 100; $i++) {
$output = '';
@ctrl-freak
ctrl-freak / screenshot.bat
Created Aug 2, 2017
Pull Screenshot from Android through ADB with DateTime Filename
View screenshot.bat
@echo off
rem https://stackoverflow.com/questions/7727114/batch-command-date-and-time-in-file-name
rem %I if running in Command Prompt, %%I is for batch
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /format:list') do @set datetime=%%I
set datetime=%datetime:~0,8%-%datetime:~8,6%
set filename=screen_%datetime%.png
rem https://blog.shvetsov.com/2013/02/grab-android-screenshot-to-computer-via.html