Skip to content

Instantly share code, notes, and snippets.

{
"name": "Test01",
"symbol": "TESTC",
"description": "TestToken",
"image": "https://i.imgur.com/jFGVSVi.png"
}
@blluv
blluv / capture_video.js
Created October 29, 2022 15:58
capture_video
function captureVideo(video) {
const canvas = document.createElement("canvas");
canvas.width = video.videoWidth;
canvas.height = video.videoHeight;
const ctx = canvas.getContext("2d");
ctx.drawImage(video, 0, 0);
const url = canvas.toDataURL('image/png');
@blluv
blluv / navercafe_getArticles.py
Created January 27, 2023 06:46
navercafe_getArticles
import requests
from urllib import parse
from bs4 import BeautifulSoup as Soup
USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
def makeUrl(clubId: str, menuId: str, userDisplay="50"):
query = parse.urlencode({
"search.clubid": clubId,
@blluv
blluv / hook.js
Created February 1, 2023 06:43
frida ssl_read hook
const LIB_NAME = "";
const timer = setInterval(() => {
const addr = Module.findBaseAddress(LIB_NAME);
if (addr) {
console.log("FIND");
Interceptor.attach(Module.getExportByName(LIB_NAME, "SSL_read"), {
onEnter: function (args) {
this.buf = args[1];
this.len = args[2] & 0xffffffff;
@blluv
blluv / voxGenSrtpMasterKey.py
Created February 2, 2023 10:09
generate vox srtp master key
def generateSrtpMasterKey(callId: int):
callId = str(((callId >> 2) + 0xC5FF9) & 0xFFFFFFFFFFFFFFFF)
return "".join([callId[i % len(callId)] for i in range(30)])
sudo sysctl net.ipv4.ip_unprivileged_port_start=80
@blluv
blluv / EVP_BytesToKey.py
Created May 5, 2023 09:01
EVP_BytesToKey python implementation
def EVP_BytesToKey(md_name, salt, data, count=10, key_len=16, iv_len=16):
last_d = b""
buf = bytearray()
while len(buf) < key_len + iv_len:
md = hashlib.new(md_name)
md.update(last_d)
md.update(data)
md.update(salt[:8])
d = md.digest()
f"{get_func_name(get_screen_ea())}+{get_screen_ea() - get_name_ea_simple(get_func_name(get_screen_ea()))}"
@blluv
blluv / Dockerfile
Last active May 25, 2023 02:36
pwn docker
FROM --platform=amd64 ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ Asia/Seoul
ENV PYTHONIOENCODING UTF-8
ENV LC_CTYPE C.UTF-8
WORKDIR /root
export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib
export PATH=${PATH}:/data/data/com.termux/files/usr/bin
export HOME=/sdcard/HOME