Skip to content

Instantly share code, notes, and snippets.

View 5S's full-sized avatar

5S

  • Tokyo, Japan
  • 21:17 (UTC +09:00)
  • X @HCl
View GitHub Profile
@5S
5S / Twitter-Account-Generate-API.txt
Created February 2, 2017 10:03
Undocumented Twitter Account Generate API
/*
非公式 Twitter アカウント生成 API
Twitter も廃れ始め、そろそろ潮時だと考えたため公開します。
某氏が公開した API 1.0 の account/generate のほか、独自に発見した API 1.1 の account/create と
認証不要の mobile_client_api/signup もまとめてあります。
何かの役に立つかもしれません。
mobile_client_api/signup については最近テストしていないので、使えないかもしれません。
その場合は情報のみということで。
@5S
5S / download_manifest.py
Last active August 19, 2018 12:50
starlight.kirara.ca から現在の res_ver を拾ってきて最新版の manifest を落とすやつ
import lz4
import re
import StringIO
import struct
import urllib2
BASEURL = "http://storage.game.starlight-stage.jp"
def fetch_res_ver():
response = urllib2.urlopen("https://starlight.kirara.ca/")
@5S
5S / diff.py
Created February 2, 2017 11:42
取得済みの manifest を比較して差分をダウンロードするやつ 現時点では b のインストゥルメンタルのみ対応
import os
import sqlite3
import sys
import threading
import urllib2
BASEURL = "http://storage.game.starlight-stage.jp"
def write_file(dest, data):
with open(dest, "w") as fd:
@5S
5S / dec_enc.py
Last active February 2, 2017 13:47
パケットを復号化したり暗号化したりするやつ
import base64
import json
import msgpack
import os
import rijndael
def new_key():
return base64.b64encode(os.urandom(24))
def clean_udid(s):
@5S
5S / LINEStickerDownloader.js
Last active January 3, 2024 05:40
LINE STORE で配布されているスタンプを .zip 形式でダウンロードするボタンを追加する Greasemonkey 用スクリプト
// ==UserScript==
// @name LINE Sticker Downloader
// @namespace https://twitter.com/A90
// @version 0.1
// @description Add download button to LINE STORE
// @author LOZTPX
// @match https://store.line.me/stickershop/product/*
// @grant none
// ==/UserScript==
@5S
5S / AutoLogin.py
Created June 15, 2017 01:30
某大学の WiFi スポットに自動でログインするやつ
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
username = 'sXXXXXXX'
password = 'PASSWORD'
print('Signing in to TGWIFI...')
@5S
5S / LINEThemeDownloader.js
Created September 14, 2017 15:22
LINE STORE で配布されているテーマを .zip 形式でダウンロードするボタンを追加する Greasemonkey 用スクリプト
// ==UserScript==
// @name LINE Theme Downloader
// @namespace https://twitter.com/A90
// @version 0.1
// @description Add download button to LINE STORE
// @author LOZTPX
// @match https://store.line.me/themeshop/product/*
// @grant none
// ==/UserScript==
@5S
5S / TempMail.php
Created April 7, 2018 03:51
temp-mail.org で利用できる捨てアドサービスの API ラッパー
<?php
/**
* PHP API Wrapper for temp-mail.org service
*
* Copyright (c) 2018 LOZTPX
*
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a
@5S
5S / tempmail.py
Created January 31, 2019 17:11
temp-mail.org で利用できる捨てアドサービスの API ラッパー
# -*- coding: utf-8 -*-
import hashlib
import json
import requests
import random
import string
class TempMail:
@5S
5S / crypt.py
Created January 31, 2019 17:23
PyCryptodome を利用して AES 形式による暗号化/復号を行うクラス
# -*- coding: utf-8 -*-
import base64
import hashlib
from Crypto import Random
from Crypto.Cipher import AES
from Crypto.Util import Padding
class AESCipher(object):
def __init__(self, key):
self.key = (hashlib.md5(key.encode('utf-8')).hexdigest()).encode('utf-8')