load without any analysis (file header at offset 0x0): r2 -n /path/to/file
- analyze all:
aa
- show sections:
iS
- list functions:
afl
- list imports:
ii
- list entrypoints:
ie
- seek to function:
s sym.main
#!/usr/bin/env ruby | |
require 'json' | |
$fix = false | |
$verbose = false | |
$git_marks = {} | |
$r_marks = {} | |
$note_marks = {} | |
$mode = 'hg' |
# Sample toolchain file for building for Windows from an Ubuntu Linux system. | |
# | |
# Typical usage: | |
# *) install cross compiler: `sudo apt-get install mingw-w64` | |
# *) cd build | |
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake .. | |
# This is free and unencumbered software released into the public domain. | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |
Here's example steps for uploading a Windows VHD to Azure. I initially built mine using this Packer script,
then used PowerShell to convert it - Convert-VHD -VHDType Fixed -Path <source.vhdx> -DestinationPath WindowsServer2016Insider.vhd
, and last the Azure CLI 2.0 to upload it.
az login
# If you need to use a specific subscription, then
# az account set --subscription <subscription name>
# Resource group to contain all resources
Instructions:
cd
into this foldercurl -o nsp_update_patcher.sh https://gist.githubusercontent.com/willfaust/fb90dec409b8918290012031f09a78ef/raw/9abf2e1b020203aec0051fad99524f8269cb1edd/nsp_update_patcher.sh && chmod +x nsp_update_patcher.sh && ./nsp_update_patcher.sh
Write-Information "This script needs be run on Windows Server 2019 or 2022" | |
If ($PSVersionTable.PSVersion.Major -ge 7){ Write-Error "This script needs be run by version of PowerShell prior to 7.0" } | |
# Define environment variables | |
$downloadDir = "C:\WinGet" | |
$gitRepo = "microsoft/winget-cli" | |
$msiFilenamePattern = "*.msixbundle" | |
$licenseFilenamePattern = "*.xml" | |
$releasesUri = "https://api.github.com/repos/$gitRepo/releases/latest" |