Skip to content

Instantly share code, notes, and snippets.

View fcicq's full-sized avatar

fcicq fcicq

View GitHub Profile
@fcicq
fcicq / get_list_view_item.py
Last active October 2, 2026 17:38 — forked from loromichi/get_list_view_item.py
win32apiのListViewのitemを取得する.pywinautoだと64bitアプリのitemを取得しようとすると落ちるので
# -*- coding:utf-8 -*-
import sys
import win32api
import win32gui
import struct
from win32con import PAGE_READWRITE, MEM_COMMIT, MEM_RESERVE, MEM_RELEASE, PROCESS_ALL_ACCESS
from commctrl import LVM_GETITEMW, LVM_GETITEMCOUNT, LVM_GETHEADER, HDM_GETITEMCOUNT,\
LVIF_TEXT, LVIF_IMAGE, LVIF_STATE, LVIF_INDENT
import ctypes
import hashlib
class MaglevHash(object):
def __init__(self, m=65537):
self.m = m
self.permutation = {}
self.entry = [None] * self.m
self.tainted = False
@fcicq
fcicq / twitcast.sh
Last active September 11, 2021 04:30 — forked from dyama/twitcast.sh
Simple recorder for Twitcasting.tv
#!/bin/bash
# coding: utf-8
# twitcast.sh by dyama
LIVESTREAMER="streamlink"
($LIVESTREAMER --version 1>/dev/null 2>&1) || (echo 'install streamlink first (run pip/pip3 install streamlink)'; exit)
if [ -n "$1" ]; then
id=$(echo "$1" | sed 's|^.*/||g')
while true; do
while true; do
(curl -s "http://api.twitcasting.tv/api/livestatus?user=$id" | grep "\"islive\":true") && break
@fcicq
fcicq / mywallet.py
Created August 16, 2012 08:49 — forked from anfedorov/mywallet.py
tools to decrypt blockchain.info wallet.json.aes
#!/usr/bin/env python
import base64, hashlib, hmac, json, sys, getpass
from Crypto.Cipher import AES
from Crypto.Hash import RIPEMD, SHA256
base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def prompt(p):
return getpass.getpass(p + ": ")