First we need to create a certificate. The llvm provided a way to do
that, but I found this
way to work slightly better for me. Just substitute
lldb_codesign for the certificate name, instead of gdb-cert.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| def get_bb_id(graph, ea): | |
| for block in graph: | |
| if block.startEA <= ea and block.endEA > ea: | |
| return block.id | |
| start_ea = 0x15f9ad6 | |
| base_block_ea = 0x15f9a60 | |
| f = get_func(start_ea) | |
| g = FlowChart(f, flags=FC_PREDS) #??? |
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
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$ExeName, | |
| [switch] | |
| $Disable | |
| ) | |
| { | |
| New-Item -Path "HKLM:\Software\Microsoft\Windows NT\currentversion\image file execution options" -Name $ExeName -Force |
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
| <# | |
| Easily find GUIDs in the classes root | |
| #> | |
| Param( | |
| [Parameter(Mandatory=$true)] | |
| [string]$GUID, | |
| [switch] | |
| $all |
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
| if (!$args) | |
| { | |
| Write-Host "Usage: sudo <executable> [<arguments...>]" | |
| return | |
| } | |
| $arguments = $args[1..$args.Length] | |
| if ($arguments) | |
| { |
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
| // `using` directives | |
| using System.Runtime.CompilerServices; | |
| // Actual code | |
| public static string GetLocation( | |
| [CallerFilePath] string filePath = null, | |
| [CallerLineNumber] int lineNumber = 0, |
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 idaapi | |
| import uuid | |
| def read_guid(ea=None): | |
| if ea is None: | |
| ea = idaapi.get_screen_ea() | |
| # Pay attention to the endian! | |
| return '{{{}}}'.format(uuid.UUID(bytes_le=idaapi.get_many_bytes(ea, 16))) | |
| Octotree is enabled on this page. Click this button or press cmd shift s (or ctrl shift s) to show it. |
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 re | |
| import idaapi | |
| import sark | |
| import abc | |
| class IDATracker(idaapi.UI_Hooks): | |
| __metaclass__ = abc.ABCMeta | |
| def __init__(self): |