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

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 / 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
@alterakey
alterakey / LocalCursors.java
Created October 17, 2015 03:03
Parcelable Serializer for ContentProviders
/* LocalCursors.java: Parcelable Serializer
* Copyright (C) 2015 Takahiro Yoshimura <altakey@gmail.com>. All rights reserved.
*
* 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
@alterakey
alterakey / activate
Created September 26, 2015 04:13
Go environment activator
#!/bin/bash
export GOPATH=$(pwd)
export PATH=$GOPATH/bin:$PATH
@alterakey
alterakey / grab.py
Last active June 11, 2016 05:21
Fairly robust APK grabber for Android
# grab.py: fairly robust APK grabber for Android
# Copyright (C) 2015-2016 Takahiro Yoshimura <altakey@gmail.com>. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#