Skip to content

Instantly share code, notes, and snippets.

@adityabhushan
adityabhushan / Spiral Array
Created August 3, 2018 03:02
Spiral Array
# N = "hello hello_world"
# print(N.split()[1])
# arr = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]
arr = [[1,2,3],[4,5,6],[7,8,9],[10,11,12]]
top = 0
bottom = len(arr)-1
left = 0
right = len(arr[0])-1
# print(top)
@adityabhushan
adityabhushan / joft.js
Created September 21, 2017 08:23
Find People who joined and left your whatsapp group
var obj = document.getElementsByClassName('message message-gp2 message-system tail')
for (var i = 0; i < obj.length; i++){
console.log(obj[i].childNodes[0].childNodes[8].childNodes[4].textContent+' - '+obj[i].childNodes[0].childNodes[8].childNodes[5].textContent)
}
@adityabhushan
adityabhushan / whatsapp_phone_enumerator_floated_div.js
Created May 18, 2017 06:02
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/****** I've created a Chrome extension from this script, take a look at https://github.com/LoranKloeze/WhatsAllApp ********/
/*
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib2
gh_url = 'https://api.github.com'
req = urllib2.Request(gh_url)
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm()