Skip to content

Instantly share code, notes, and snippets.

@kurosabo
kurosabo / snippet.java
Created February 9, 2021 01:14
sesame3 control from myapp
private void sendTagIntent(){
// 参考 https://stackoverflow.com/questions/30841803/how-to-mock-a-android-nfc-tag-object-for-unit-testing
// 参考2 https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces?hl=ja
byte[] tagId = {(byte)0xXX, (byte)0xXX, (byte)0xXX, (byte)0xXX, (byte)0xXX, (byte)0xXX, (byte)0xXX}; // you're tag id
int[] techList = new int[0];
Bundle[] techListExtras = new Bundle[0];
Class tagClass = Tag.class;
Method createMockTagMethod = null;

ファームウェアデコード

デコード方法は公開されているOSSソースコードに含まれている。
WAX206_V1.0.4.0_Source.rar\WAX206_V1.0.4.0_Source\tools\imgencoder\ 以下
なんと鍵までOSSとして公開されている。

適当にデコードするpythonスクリプトを書いた。

Telnetの有効化

  1. WEBインターフェースにログイン
@kurosabo
kurosabo / docker-compose.yml
Created October 1, 2023 13:18
https nginx without cron and edit config
version: "3.9"
services:
lego-init:
image: goacme/lego:latest
entrypoint: '
sh -c "
/lego --path /certs list --names | grep -F ${LEGO_DOMAIN}
|| /lego
--path /certs