Skip to content

Instantly share code, notes, and snippets.

@NitroXenon
NitroXenon / whatsapp_phone_enumerator_floated_div.js
Created May 16, 2017 02:09
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
@NitroXenon
NitroXenon / XORCipher.js
Created May 6, 2017 08:53
A Super simple encryption cipher using XOR and Base64 in JavaScript
// XORCipher - Super simple encryption using XOR and Base64
//
// Depends on [Underscore](http://underscorejs.org/).
//
// As a warning, this is **not** a secure encryption algorythm. It uses a very
// simplistic keystore and will be easy to crack.
//
// The Base64 algorythm is a modification of the one used in phpjs.org
// * http://phpjs.org/functions/base64_encode/
// * http://phpjs.org/functions/base64_decode/
@NitroXenon
NitroXenon / style.css
Last active April 8, 2017 13:49
style.css
.progressBar {
background-color: rgb(37, 41, 252);
}
import requests
from bs4 import BeautifulSoup
import json
Header={"Origin":"https://instagram.com"
,"Accept-Encoding":"gzip, deflate"
,"X-Instagram-AJAX":"1"
,"User-Agent":"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
,"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"
,"Accept-Language":"en,zh-CN;q=0.8,zh;q=0.6"
@NitroXenon
NitroXenon / instagram-fetcher.php
Created May 20, 2016 00:55 — forked from shahril96/instagram-fetcher.php
Simple Instagram media info fetcher
<?php
/*
* title : simple instagram info fetcher
*
* author : shahril
* receipant : afif zafri
* date : 29-dis-2015
*/
@NitroXenon
NitroXenon / tedSubtitle.pl
Created March 1, 2016 01:31 — forked from thinkhy/tedSubtitle.pl
Get subtitle for TED video
#!/usr/local/bin/perl
################################################################################
# File: tedSubtitle.pl
# Desscription: Get ted talk's subtitle from TED.com
# and convert subtitle of TED video to SRT format(SubRip Subtitle File)
# Usage: ted.pl URL languageCode output.src
# Creator: Thinkhy
# Date: 2011.04.30
# ChangeLog: 1 Add language code. [thinkhy 2011.05.06]
# 2 Read advertisement time from the parameter of introDuration in html.
@NitroXenon
NitroXenon / PersistentCookieStore.java
Created February 19, 2016 14:46 — forked from franmontiel/PersistentCookieStore.java
A persistent CookieStore implementation for use in Android with HTTPUrlConnection or OkHttp 2. -- For a OkHttp 3 persistent CookieJar implementation you can use this library: https://github.com/franmontiel/PersistentCookieJar
/*
* Copyright (c) 2015 Fran Montiel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@NitroXenon
NitroXenon / gci-rpi-camera.py
Created December 9, 2015 08:58
gci-rpi-camera.py
import picamera
import time;
camera = picamera.PiCamera()
for i in range(0,10) :
camera.capture('imgae' + str(i+1) + '.jpg')
time.sleep(5)
print 'Finished'
@NitroXenon
NitroXenon / intercept-https-with-python-mitmproxy.md
Created November 17, 2015 08:28 — forked from dannvix/intercept-https-with-python-mitmproxy.md
Intercept and manipulate HTTPs traffic with Python and mitmproxy

Intercepts HTTPs Traffic with Python & mitmproxy

Introduction

Modern applications usually make use of back-end API servers to provide their services. With a non-transparent HTTPs proxy, which intercepts the communication between clients and servers (aka the man-in-the-middle scheme), you can easily manipulate both API requests and responses.

This manual helps you create your own proxy with Python and mitmproxy/libmproxy. Mitmproxy ships with both a standalone command-line tool (mitmproxy) and a Python library (libmproxy).

@NitroXenon
NitroXenon / replays.md
Created October 26, 2015 01:49 — forked from 1lann/replays.md
Storing and playing back replays in League of Legends

Storing and playing back replays in League of Legends

How it works

When you spectate a game in League of Legends, you tell the client to use a HTTP server, and make HTTP requests to it to retrieve data in chunks which make up a game. But what if you could return back the exact same data at a later time, simulating the spectate but viewing it at anytime? That's the concept behind replays and that's how they work.

There is some behavior in the API which I do not fully understand yet, so there are if statements to catch these edge cases.

Current game information

Before you can even get the game's metadata, you'll need to retrieve necessary information for the game. This call is part of the official Riot Games API.

/observer-mode/rest/consumer/getSpectatorGameInfo/{platformId}/{summonerId}