Skip to content

Instantly share code, notes, and snippets.

@steinwaywhw
steinwaywhw / One Liner to Download the Latest Release from Github Repo.md
Last active July 13, 2024 22:33
One Liner to Download the Latest Release from Github Repo
  • Use curl to get the JSON response for the latest release
  • Use grep to find the line containing file URL
  • Use cut and tr to extract the URL
  • Use wget to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
@yjxiong
yjxiong / OpenCV.sh
Created July 7, 2016 04:03
Install OpenCV with ffmpeg and CUDA
version="2.4.12"
echo "Installing OpenCV" $version
mkdir OpenCV
cd OpenCV
echo "Removing any pre-installed ffmpeg and x264"
sudo apt-get -qq remove ffmpeg x264 libx264-dev
echo "Installing Dependenices"
@luk6xff
luk6xff / ARMonQEMUforDebianUbuntu.md
Last active June 6, 2024 17:16 — forked from bruce30262/ARMDebianUbuntu.md
Emulating ARM with QEMU on Debian/Ubuntu

You might want to read this to get an introduction to armel vs armhf.

If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.

Running ARM programs under linux (without starting QEMU VM!)

First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux

If there's no qemu-arm-static in the package list, install qemu-user-static instead

@teknogeek
teknogeek / universalUnpin.js
Last active July 2, 2024 20:36
Frida Universal™ SSL Unpinner
Java.perform(function() {
console.log('\n[.] Cert Pinning Bypass');
// Create a TrustManager that trusts everything
console.log('[+] Creating a TrustyTrustManager that trusts everything...');
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
var TrustyTrustManager = Java.registerClass({
name: 'com.example.TrustyTrustManager',
implements: [X509TrustManager],
methods: {
@nstarke
nstarke / decrypting-dlink-proprietary-firmware-images.md
Last active April 3, 2024 11:05
Decrypting DLINK Proprietary Firmware Images
@seanlowjk
seanlowjk / ctf-fetusrop.md
Last active September 11, 2021 09:33
NUS Greyhats Welcome CTF 2021 - fetusrop challenge

NUS Greyhats Welcome CTF 2021 - fetusrop

  • Category: Pwn (ROP)

  • Team Name: WashYourMouth

  • Team Members:

    • Chua Jia Cheng, Jon
    • Yeo Yik Hwee Ernest
import idaapi
import idautils
import idc
import ida_hexrays
def mod_sig(ea):
tinfo = idaapi.tinfo_t()
ida_typeinf.guess_tinfo(tinfo, ea)
funcdet = idaapi.func_type_data_t()
tinfo.get_func_details(funcdet)