Skip to content

Instantly share code, notes, and snippets.

View jamietanna's full-sized avatar

Jamie Tanna jamietanna

View GitHub Profile
@jamietanna
jamietanna / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 12:24
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every
@jamietanna
jamietanna / current-proc-name.c
Created February 10, 2016 20:48
Find the current process name in Kernel-mode
struct file *exe_file;
struct mm_struct *mm = current->mm;
if(mm) {
struct file *exe_file;
exe_file = get_mm_exe_file(mm);
if(exe_file) {
printk("open(): process called is %s\n", exe_file->f_path.dentry->d_name.name);
}
}
@jamietanna
jamietanna / patch.diff
Last active February 10, 2016 15:37
G53SEC Lab2 status script - amended to provide accurate counts for hashes if the user opts to `hashcat ... --remove ...` from the `hashcat.pot` file
--- status.bak 2016-02-10 15:23:54.127656283 +0000
+++ status 2016-02-10 15:24:31.235654380 +0000
@@ -1,10 +1,11 @@
-hashcount=`wc -l ./hashes/hashdb | awk '{print $1;}'`
+hashcount=`wc -l ./hashes/hashdb.bak | awk '{print $1;}'`
if [ -f hashcat.pot ]
then
potcount=`wc -l hashcat.pot | awk '{print $1;}'`
percent=$(awk "BEGIN { pc=100*${potcount}/${hashcount}; printf(\"%.2f%%\",pc) }" )
@jamietanna
jamietanna / gist:966c2fc772e2e4f6a4e6
Last active August 29, 2015 14:14
One-liner - remove all trailing spaces in a directory (excluding any precious git files)
sed -i 's/[ \t]*$//' $(find . -path '/.git' -prune -o -type f -print)