Skip to content

Instantly share code, notes, and snippets.

View nucular's full-sized avatar

nucular nucular

View GitHub Profile
@nucular
nucular / fetcher.py
Created April 5, 2014 15:55
Quickpaste Fetcher
"""
Ultra-simple fetcher for all pastes at qp.mniip.com.
It really just tries out all combinations from "00" until "zz"...
"""
DELAY = 3 # seconds
START = 0 # "00"
END = 1295 # "zz"
OUTPUT_DIR = "./result" # output folder
OVERWRITE = False # fetch again even if already downloaded
@nucular
nucular / .screenshot.png
Last active September 12, 2015 15:02
BytePusher Nyan Cat
.screenshot.png
@nucular
nucular / tipstat.py
Last active August 29, 2015 14:05
tipstat (Python 2.7)
# -*- coding: utf-8 -*-
from __future__ import print_function
try:
from urllib2 import urlopen
from urllib import urlencode
except ImportError:
from urllib.request import urlopen
from urllib.parse import urlencode
@nucular
nucular / omegle.md
Last active February 20, 2024 21:01
Omegle protocol reverse-engineering

Let's reverse-engineer Omegle. PROPERLY!

I could not find a proper, detailed (and up-to-date) reverse-engineerment of Omegle's text chat protocol on the internet, so here, have one made by analyzing the web app (web requests and source code).
The responses are beautified and the query strings split up and URI-decoded for readability.
Note that "query string" refers to parameters encoded into the URL and "form data" to parameters in the POST body which do not have to be URI-encoded.

TODO:

@nucular
nucular / dogefish.djs
Created September 6, 2014 12:24
Dogefish
quiet
much deadfish implementation
2014, by nucular
so Public Domain :)
loud
shh print "wow"
very program is 'iiisiisddoddddddddoiiiiiiiio'
very acc is 0
@nucular
nucular / README.md
Last active August 29, 2015 14:06
(He)XChat Python script manager replacement

Pyld

This script replaces the broken Python script manager of HexChat. Just drop it in the "addons" folder and move all other Python scripts to another folder. Replace the basedir variable in this script with the absolute path to your folder and restart.
The script will create a file named auto.txt to store a list of scripts loaded at startup too.

@nucular
nucular / LICENSE
Last active August 29, 2015 14:07
Python Youtube tools
The MIT License (MIT)
Copyright (c) 2014 nucular
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@nucular
nucular / imgrou.py
Last active August 29, 2015 14:07
Imgur Roulette using not ID fuzzing but Reddits random feature
# Public Domain
# python3 imgrou.py
# some configuration
IMG_ROWS = 3
IMG_COLS = 3
CHUNK_SIZE = 512
REQUEST_URL = "http://reddit.com/domain/i.imgur.com/random/.json"
SESSION_KEY = "" # look at your request headers on reddit, Cookie "reddit_session"

Keybase proof

I hereby claim:

  • I am nucular on github.
  • I am nucular (https://keybase.io/nucular) on keybase.
  • I have a public key whose fingerprint is 4051 CE6C 01CD 6C7A 8670 75AF 6865 2DB2 EBE0 33EF

To claim this, I am signing this object:

#!/bin/env python3
# python3 chanrip.py --help
"""
Chanrip
=======
Rips a thread from 4chan or 8chan, downloading all posted files and saving all
replies to a HTML file. Optionally supports monitoring changes while downloading
new replies automatically and thumbnail downloading.