Skip to content

Instantly share code, notes, and snippets.

View assarbad's full-sized avatar
🤓

Oliver Schneider assarbad

🤓
View GitHub Profile
@assarbad
assarbad / VMProtect.md
Created March 27, 2024 22:52
Links to VMProtect related resources
@assarbad
assarbad / GitRevision.targets
Created August 9, 2023 22:03
Just playing around with the retrieval of the Git revision from within MSBuild and caching it ...
<?xml version="1.0" encoding="utf-8"?>
<Project InitialTargets="GetGitRevision" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<GitWorkTreeRootDir>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), '.git\index'))</GitWorkTreeRootDir>
<GitWorkTreeRootDir Condition="'$(GitWorkTreeRootDir)' != '' and !HasTrailingSlash('$(GitWorkTreeRootDir)')">$(GitWorkTreeRootDir)\</GitWorkTreeRootDir>
<GitDirSentinelFile Condition="Exists('$(GitWorkTreeRootDir).git\index')">$(GitWorkTreeRootDir).git\index</GitDirSentinelFile>
<GitRevPropsFile>$(MSBuildThisFileDirectory)__GitRev.props</GitRevPropsFile>
</PropertyGroup>
<Target Name="FindGitExecutablePath" Condition="'$(GitDirSentinelFile)' != ''">
<PropertyGroup>
@assarbad
assarbad / msbuild-defaults.xml
Created July 23, 2023 21:04
Default MSBuild Properties
<AndroidTargetsPath>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\MDD\Android\V150\</AndroidTargetsPath>
<AspNetConfiguration>Debug</AspNetConfiguration>
<CurrentSolutionConfigurationContents>
<FrameworkSDKRoot>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\</FrameworkSDKRoot>
<GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>true</GetReferenceNearestTargetFrameworkTaskSupportsTargetPlatformParameter>
<HideWarningsAndErrors>false</HideWarningsAndErrors>
<IsRestoreTargetsFileLoaded>true</IsRestoreTargetsFileLoaded>
<MSBuildAllProjects>X:\msbuild-test\msbuild.vs2022.sln.metaproj</MSBuildAllProjects>
<MSBuildExtensionsPath32>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild</MSBuildExtensionsPath32>
<MSBuildExtensionsPath>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild</MSBuildExtensionsPath>
@assarbad
assarbad / idapython-legacy-regex.txt
Last active June 22, 2023 22:06
PCRE for old IDAPython function names
\W(AF2_(?:ANORET|CHKUNI|DATOFF|DOCODE|DODATA|FTAIL|HFLIRT|JUMPTBL|PURDAT|REGARG|SIGCMT|SIGMLT|STKARG|TRFUNC|VERSP)|AF_ASCII|ASCF_(?:AUTO|COMMENT|GEN|SAVECASE|SERIAL)|ASCSTR_(?:C|LEN2|LEN4|PASCAL|TERMCHR|ULEN2|ULEN4|UNICODE)|AddStrucMember|BeginEA|DOUNK_(?:DELNAMES|EXPAND|SIMPLE)|FF_(?:ASCI|DWRD|OWRD|QWRD|STRU|TBYT|VAR)|FIXUP_(?:BYTE|CREATED|EXTDEF|REL|SELFREL|UNUSED)|Fatal|GetFlags|HideArea|INF_(?:BINPREF|BORDER|CHANGE_COUNTER|CMTFLAG|COMPILER|END_PRIVRANGE|HIGH_OFF|LONG_DN|LOW_OFF|MODEL|NAMELEN|REFCMTS|SHORT_DN|SIZEOF_ALGN|SIZEOF_BOOL|SIZEOF_ENUM|SIZEOF_INT|SIZEOF_LDBL|SIZEOF_LLONG|SIZEOF_LONG|SIZEOF_SHORT|START_PRIVRANGE|TYPE_XREFS|XREFS)|Message|REF_VHIGH|REF_VLOW|ResumeProcess|SEGDEL_(?:KEEP|SEGDEL_PERM|SEGDEL_SILENT|ALL|COMPAT|FATAL)|UMessage|Warning|Add(?:UserStkPnt|Union|StrucEx|Struc|SourceFile|SegEx|Hotkey|Enum|EntryPoint|ConstEx|Const|CodeXref|BptEx|Bpt|AutoStkPnt2)|AltOp|Analy[sz]e(?:Area|Range)|Analysis|AppendFchunk|ApplySig|ArmForceBL(?:Call|Jump)|(?:Addr|File|Ident|Long|Seg|Selector|Str|YN)|Atta