- Create a project with CLion (Click C++ Executable)
- Create your source code directory
src - Create
main.cppandCMakeLists.txtinsrc
Content of src/main.cpp:
#include <gtkmm.h>| use std::io::Read; | |
| use std::{env, fs, io}; | |
| fn main() { | |
| let filename = env::args().nth(1).expect("no filename provided"); | |
| let stdin = io::stdin(); | |
| let mut buf = String::new(); | |
| stdin | |
| .lock() |
| #install FlameGraph library | |
| cd /opt/ | |
| sudo git clone https://github.com/brendangregg/FlameGraph.git | |
| #make it accesible from any folder | |
| vim ~/.bashrc | |
| ##add these lines anywhere and exit vim (if you can) | |
| export FLAMEPATH=/opt/FlameGraph | |
| PATH=$PATH:$FLAMEPATH | |
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |
| final JsonObject jsonObject = GSON.toJsonTree(<Object>).getAsJsonObject(); | |
| for(Map.Entry<String, JsonElement> entry : jsonObject.entrySet()) { | |
| System.out.println("Key = " + entry.getKey() + " Value = " + entry.getValue() ); | |
| } |
| # from https://codeburst.io/how-i-hacked-my-terminal-so-a-happy-whale-would-spout-software-quotes-at-me-6791e6c74fc6 | |
| % | |
| Simple things should be simple, complex things should be possible. | |
| The Wiki Way: Quick Collaboration on the Web, Bo Leuf, Ward | |
| Cunningham | |
| % | |
| Simplicity is the soul of efficiency. | |
| Austin Freeman | |
| % |
Get the JDK source (per the OpenJDK instructions):
hg clone http://hg.openjdk.java.net/portola/portola
cd portola
bash ./get_source.shYou need an existing Alpine with an already-built JDK. I have a Docker image of Alpine with glibc-based Zulu JDK:
This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
| #!/bin/bash | |
| # Give the usual warning. | |
| clear; | |
| echo "[INFO] Automated Android root script started.\n\n[WARN] Exploit requires sdk module \"NDK\".\nFor more information, visit the installation guide @ https://goo.gl/E2nmLF\n[INFO] Press Ctrl+C to stop the script if you need to install the NDK module. Waiting 10 seconds..."; | |
| sleep 10; | |
| clear; | |
| # Download and extract exploit files. | |
| echo "[INFO] Downloading exploit files from GitHub..."; |
| # From https://github.com/github/gitignore/blob/master/Gradle.gitignore | |
| .gradle | |
| /build/ | |
| # Ignore Gradle GUI config | |
| gradle-app.setting | |
| # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | |
| !gradle-wrapper.jar |