This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# gen | |
$reqpsd = 'hello'; | |
$salt = substr(strtr(base64_encode(openssl_random_pseudo_bytes(22)),'+','.'),0,22); | |
$hash = hash_pbkdf2('sha512', $reqpsd, $salt, 1000, 50).':'.$salt; | |
# /gen | |
# check | |
$passwd = 'hello'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys, os | |
from PIL import Image | |
if len(sys.argv) < 2: | |
print("Usage: {0} [POST data file]".format(sys.argv[0])) | |
sys.exit(1) | |
try: | |
file = open(sys.argv[1], mode="rb").read() | |
except Exception as ex: | |
print("Failed to open {0}.\r\n\r\n{1}".format(sys.argv[1], str(ex))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import html | |
from urllib.request import urlopen | |
import sys | |
if not sys.argv[1]: | |
print("UsagE: " + sys.argv[0] + " [NNID to get Mii from]") | |
ftree = html.fromstring(urlopen('https://miiverse.nintendo.net/users/{0}/favorites'.format(sys.argv[1])).read()) | |
miihash = ftree.xpath('//*[@id="sidebar-profile-body"]/div/a/img/@src')[0].split('.net/')[1].split('_n')[0] | |
screenname = ftree.xpath('//*[@id="sidebar-profile-body"]/a/text()')[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from lxml import html | |
import urllib.request, urllib.error, sys, json | |
if not len(sys.argv) > 1: | |
print('Usage: %s [username]' % sys.argv[0]) | |
sys.exit(1) | |
username = sys.argv[1] | |
try: | |
req = urllib.request.urlopen('https://miiverse.nintendo.net/users/{}/favorites?locale.lang=en-US'.format(username)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, time, subprocess | |
import discord | |
from discord.ext.commands import Bot | |
main = Bot(command_prefix=("did you get me my CHEEZ WHIZ bo")) | |
discord.opus.load_opus('/usr/local/Cellar/opus/1.2.1/lib/libopus.dylib') | |
@main.event | |
async def on_voice_state_update(b, a): | |
if not a.voice.voice_channel: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
// fasthttp doesn't like cookies on the client so we can't use it | |
"net/http" | |
"net/http/cookiejar" | |
"net/url" | |
"github.com/PuerkitoBio/goquery" | |
"io/ioutil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
// lol kekekekekekkekekek | |
"github.com/valyala/fasthttp" | |
// Make an upload signature | |
"time" | |
"strconv" | |
"crypto/sha1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
// requests | |
"github.com/valyala/fasthttp" | |
// for spltting bytes | |
"bytes" | |
// for getting the things from the thing | |
"regexp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/valyala/fasthttp" | |
"bytes" | |
"fmt" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
# requirements: hyper selectolax | |
from sys import exit | |
from ssl import CERT_NONE | |
try: | |
import hyper |
OlderNewer