Check /dev/
ls /dev/tpm*
If a TPM is present, you may see:
| import datetime | |
| import os | |
| import subprocess | |
| from pathlib import Path | |
| def sanitize_filename(filename): | |
| illegal_chars = '<>:"/\\|?*' | |
| sanitized_name = '' | |
| for char in filename: |
| #!/bin/bash | |
| packages=$(adb shell pm list packages) | |
| APK_DIR="apks" | |
| mkdir -p "$APK_DIR" | |
| for pkg in $packages; do | |
| package_name=${pkg:8} |
| sudo nmcli device wifi hotspot con-name <localConnectionName> ssid <ssid> band bg password <password> | |
| nmcli device disconnect wlan0 | |
| nmcli connection modify <localConnectionName> 802-11-wireless.cloned-mac-address <mac> | |
| nmcli device connect wlan0 |
| import argparse | |
| import socket | |
| import datetime | |
| from collections import defaultdict | |
| # --------------------------------------------------------------------------- # | |
| # Data structure | |
| # --------------------------------------------------------------------------- # | |
| # { "192.168.0.2" : { "01" : {"count":2, "first_seen":datetime, "last_seen":datetime}, | |
| # "02" : {"count":1, ... } }, |
| #ollama with 6700 6750 XT (gfx1030) support | |
| docker run -d --restart always --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama -e HSA_OVERRIDE_GFX_VERSION=10.3.0 -e HCC_AMDGPU_TARGET=gfx1030 ollama/ollama:rocm | |
| #open webui (no mandatory login: WEBUI_AUTH=False) | |
| docker run -d --network=host WEBUI_AUTH=False -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always ghcr.io/open-webui/open-webui:main |
| #!/bin/sh | |
| docker pull opensecurity/mobile-security-framework-mobsf:latest | |
| docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest |
| sudo steamos-readonly disable | |
| sudo pacman-key --init | |
| sudo pacman-key --populate | |
| sudo pacman-key --refresh-keys |
| from mitmproxy import http | |
| ''' dns intercept not working... why? | |
| from mitmproxy import dns | |
| def request(flow: dns.DNSFlow): | |
| print(f"DNS Request: {flow.request.qname}") | |
| def response(flow: dns.DNSFlow): | |
| print(f"DNS Response: {flow.response.qname}") |
| adb root | |
| adb remount | |
| adb exec-out "tcpdump -i any -U -w - 2>/dev/null" | sudo wireshark -k -S -i - |