Skip to content

Instantly share code, notes, and snippets.

@TUGOhost
TUGOhost / powershell_bash.md
Created July 31, 2025 02:56
powershell_bash.md

check file sha256 value

bash:

sha256sum file

powershell:

certutil -hashfile file SHA256
@TUGOhost
TUGOhost / configuration.nix
Created August 19, 2024 08:53 — forked from kborling/configuration.nix
NixOS Configuration (Sway/Wayland Enabled)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
@TUGOhost
TUGOhost / change_rom.md
Created January 3, 2024 06:19
changeRom

change_rom

打印动态注册

  1. Aosp10/art/runtime/jni/jni_internal.cc

      static jint RegisterNatives(JNIEnv* env,
                                  jclass java_class,
                                  const JNINativeMethod* methods,
@TUGOhost
TUGOhost / enc_str.cc
Created May 4, 2023 07:13 — forked from yujincheng08/enc_str.cc
Compile time encrypt string
#include "enc_str.h"
#include <cstdio>
static_assert(next_prime<next_prime<4>> == next_prime<4> && next_prime<4> == 5, "??");
static constexpr auto j = "I love vvb2060 and she's my wife."_senc;
static constexpr auto k = ".."_senc;
static constexpr auto l = j + k;
int main() {
Windows10下编译LLVM与Clang
1、下载安装CMake
2、下载安装Visual studio,按照C++ Desktop开发进行下载相关配置
3、下载llvm与clang对应的版本到本地,整体目录如下:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2023/3/20 13:55 clang
d---- 2023/3/20 13:55 llvm-5.0.2.src
4、命令行下:运行
>mkdir build && cmake.exe -S .\llvm-5.0.2.src\ -B .\build\ -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -Thost=x64
@TUGOhost
TUGOhost / anti-anti-frida.ts
Created September 8, 2022 05:30
anti anti-frida
function antiAntiFrida() {
var strstr = Module.findExportByName(null, "strstr");
if (null !== strstr) {
Interceptor.attach(strstr, {
onEnter: function (args) {
this.frida = Boolean(0);
this.haystack = args[0];
this.needle = args[1];