Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
Function's Service Account should have role logging.writer
context.function_name DOES contain function id
Thanks to https://github.com/mcode-cc/python-yandex-cloud-logging library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # sudo apt install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | |
| # sudo apt install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi | |
| # sudo apt install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf | |
| dpkg-query -l gcc-aarch64-linux-gnu > /dev/null || sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu | |
| dpkg-query -l aria2 > /dev/null || sudo apt install -y aria2 | |
| export LOCAL_PATH=$(pwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CMakeLists.txt for dual-core STM32H7xx MCUs and CLion IDE | |
| # | |
| # DISCLAIMER: Experimental version, based on undocumented assumptions how STM32CubeMX works | |
| # DISCLAIMER: THIS FILE IS PROVIDED UNDER "The Unlicense" LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND | |
| # | |
| # Requirements: | |
| # Toolchain binaries have to be in system path | |
| # STM32CubeMX field "Project Manager | Code Generator | Target IDE" must be set to "STM32CubeIDE" | |
| # | |
| # Tested under environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lib/lib.h: | |
| lib/lib_private.h: | |
| lib/lib.c: | |
| # | |
| # Assume some C library that makes use of OpenSSL | |
| # | |
| lib/CMakeLists.txt: | |
| # | |
| # Test executables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState } from "react"; | |
| export function useLocalStorage<T>(key: string, initialValue: T): [T, (s: T) => void] { | |
| // State to store our value | |
| // Pass initial state function to useState so logic is only executed once | |
| const [storedValue, setStoredValue] = useState<T>(() => { | |
| try { | |
| // Get from local storage by key | |
| const item = window.localStorage.getItem(key); | |
| // Parse stored json or if none return initialValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MIT License | |
| # | |
| # Copyright (c) 2019 Cristian Adam | |
| # | |
| # 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: |
NewerOlder