Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env perl
use strict;
use warnings;
while(<STDIN>) {
if (/(https?:\/\/\S+)$/i){
print "$1\n";
}
}
### Derefence a shell variable
# ~ $ deref teag
# value of [teag] is: []
# ~ $ deref HOME
# value of [HOME] is: [/home/libcrack]
deref(){
if [ -n "$1" ]; then
localvar=$(eval echo \$$1)
echo "value of [${1}] is: [${localvar}]"
grsectl(){
local sysctls=(kernel/grsecurity/chroot_findtask
kernel/grsecurity/harden_ptrace
net/bridge/bridge-nf-call-iptables
kernel/grsecurity/socket_server
kernel/grsecurity/chroot_deny_unix
kernel/grsecurity/harden_ipc
kernel/grsecurity/chroot_deny_bad_rename
kernel/grsecurity/socket_client
kernel/grsecurity/lastack_retries
@libcrack
libcrack / DexGuardDecoder.java
Created February 9, 2016 13:25 — forked from AKosterin/DexGuardDecoder.java
New Dexguard String decoder for JEB 1.5. Tested on GFE 3.1.3. This release auto parse decoder function.
import jeb.api.IScript;
import jeb.api.JebInstance;
import jeb.api.ast.*;
import jeb.api.ast.Class;
import jeb.api.dex.*;
import jeb.api.ui.JavaView;
import jeb.api.ui.View;
import java.util.Arrays;
import java.util.HashMap;
#!/usr/bin/env python2
# coding: utf-8
# Sun Apr 17 19:34:37 CEST 2016
# (mecagon el puto itunes y susmuertos a caballo)
""" Rebuilds iTunes database plist which is usually
located in ~/Music/iTunes/iTunes Music Library.xml
iTunes track object keys:
#!/usr/bin/env bash
# jue nov 13 21:33:12 CET 2014
if [ -f ~/.bash_colors ]; then . ~/.bash_colors; fi
if [ -f ~/.bash_functions ]; then . ~/.bash_functions; fi
for img in /var/lib/libvirt/images/*.img; do
new="${img%.*}.qcow2"
msgbox "Converting ${img}"
msg "Generating ${new}"
#!/usr/bin/env bash
# devnull@libcrack.so
# jue may 5 04:11:58 CEST 2016
# https://copperhead.co/android/docs/install
sec=5
sudo=
firmware="hammerhead-mmb29v"
update_zip="image-hammerhead-mmb29v.zip"
boot_img="bootloader-hammerhead-hhz12k.img"
#!/usr/bin/env bash
# root@libcrack.so
# dom abr 5 22:19:42 CEST 2015
#
# dynamips arguments
#
# -H [<ip_address>:]<tcp_port> : Run in hypervisor mode
#
# -P <platform> : Platform to emulate (7200, 3600, 2691, 3725, 3745, 2600 or 1700) (default: 7200)
#
@libcrack
libcrack / openpgp.txt
Created May 10, 2016 22:38
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:0c28c0fbd633e167f075f84f602ae1ee236b448b]