Skip to content

Instantly share code, notes, and snippets.

@alterakey
alterakey / Dockerfile
Last active January 26, 2024 13:58
Dockerfile for pyside6 tools
from ubuntu:23.04
run apt-get -y update
run apt-get install -y python3-pip python3-venv
run python3 -m venv /app/.v && /app/.v/bin/pip install pyside6
run (cd /app && ln -sfn .v/bin/pyside6-* .)
from ubuntu:23.04
run apt-get -y update
run apt-get install -y python3 libglib2.0-0 libdouble-conversion3
run apt-get clean && rm -rf /var/cache/apt/lists
@alterakey
alterakey / Dockerfile
Last active December 11, 2023 15:21
Dockerfile for pyxamstore
from python:3.9-slim
run apt-get update -y && apt-get install -y git
run git clone https://github.com/jakev/pyxamstore.git build && (cd build && python ./setup.py install) && rm -rf build
run mkdir /out
workdir /out
entrypoint ["/usr/local/bin/pyxamstore"]
@alterakey
alterakey / Dockerfile
Last active December 11, 2023 15:21
Dockerfile for js-beautifier
from python:3-alpine
maintainer Takahiro Yoshimura <takahiro_y@monolithworks.co.jp>
run mkdir /out && pip3 install jsbeautifier
workdir /out
entrypoint ["js-beautify"]
@alterakey
alterakey / Dockerfile
Created October 25, 2022 08:34
ProVerif 2.04 Dockerfile for easier verification of cryptographic protocols (OWASP Saitama MTG #10)
from ocaml/opam
run sudo apt-get -y install m4
run . ~/.opam/opam-init/init.sh && cd /tmp && curl https://bblanche.gitlabpages.inria.fr/proverif/proverif2.04.tar.gz | gzip -dc | tar -x && cd proverif2.04 && ./build; ./test
from debian:11-slim
run mkdir /app /out
copy --from=0 /tmp/proverif2.04/proverif /app/
workdir /out
entrypoint ["/app/proverif"]
@alterakey
alterakey / ext.py
Last active January 25, 2022 00:18
Trueseeing extension for analyzing official Beijin Olympic Winter Games 2022 Android app (OWASP Saitama MTG #6)
# Trueseeing extension for analyzing Beijin Olympic Winter Games 2022 Android app by alterakey
# This file is in public domain.
#
# Place this file as ~/.trueseeing2/ext/__init__.py, and invoke trueseeing on the target.
from __future__ import annotations
from typing import TYPE_CHECKING
import glob
import re
import os.path
@alterakey
alterakey / ClientActivity.java
Created November 14, 2012 12:21
Android NIO experiment
package com.gmail.altakey.nio;
import android.app.Activity;
import android.os.Bundle;
import android.os.AsyncTask;
import java.nio.*;
import java.nio.channels.SocketChannel;
import java.net.InetAddress;
import java.net.InetSocketAddress;
@alterakey
alterakey / AttributedHandler.java
Created October 14, 2014 04:58
postDelayed() with tokens
package com.gmail.altakey.bette.hack;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
public class AttributedHandler extends Handler {
public AttributedHandler() {
}

Keybase proof

I hereby claim:

  • I am alterakey on github.
  • I am alterakey (https://keybase.io/alterakey) on keybase.
  • I have a public key whose fingerprint is A37E BB9A AF1D 8BC3 942E 8ABF 3FBC 81F4 1EFC BBED

To claim this, I am signing this object:

@alterakey
alterakey / init-font-andale-mono-marugo-12.el
Created December 1, 2011 14:26
Font configuration (Andale Mono + Hiragino Maru Go) for Emacs 23
(setq fixed-width-use-QuickDraw-for-ascii t)
(setq mac-allow-anti-aliasing t)
(set-face-attribute 'default nil
:family "andale mono"
:height 120)
;;; Unicode フォント
(set-fontset-font
(frame-parameter nil 'font)
'mule-unicode-0100-24ff
'("andale mono" . "iso10646-1"))
@alterakey
alterakey / SHA1PRNGKeyDerivator.py
Last active February 8, 2017 14:16
An Android 6.0-compatible SHA1PRNG implementation
# An Android 6.0-compatible SHA1PRNG implementation
# Copyright 2017 Takahiro Yoshimura <altakey@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software