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
| """ | |
| IDAPython Script to highlight function calls. | |
| Re-implemented by jthuraisamy (not the original author). | |
| Install to %IDADIR%\plugins\highlight_calls.py. | |
| Run by pressing Ctrl+Alt+H or go to Options -> Highlight Call Instructions. | |
| """ | |
| class HighlightHandler(idaapi.action_handler_t): |
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
| $base64data = "insert compressed and base64 data here" | |
| $data = [System.Convert]::FromBase64String($base64data) | |
| $ms = New-Object System.IO.MemoryStream | |
| $ms.Write($data, 0, $data.Length) | |
| $ms.Seek(0,0) | Out-Null | |
| $sr = New-Object System.IO.StreamReader(New-Object System.IO.Compression.DeflateStream($ms, [System.IO.Compression.CompressionMode]::Decompress)) | |
| while ($line = $sr.ReadLine()) { |
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
| " Vim color file | |
| " Converted from Textmate theme using Coloration v0.4.0 (http://github.com/sickill/coloration) | |
| " | |
| " Based on the machine filter from https://monokai.pro | |
| " Edited a little by aaether | |
| " For best results set termguicolors in your vimrc | |
| set background=dark | |
| highlight clear |
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
| # configuration for osx clipboard support | |
| set-option -g default-command "reattach-to-user-namespace -l sh" |
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
| #Requires -version 2.0 | |
| ## Stupid PowerShell Tricks | |
| ################################################################################################### | |
| add-type @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public class Tricks { | |
| [DllImport("user32.dll")] | |
| private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); | |
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
| #_preseed_V1 | |
| # https://bit.ly/ghd13cfg | |
| # Debian Official Documentation: https://www.debian.org/releases/stable/example-preseed.txt | |
| # Debian Wiki Preseed: https://wiki.debian.org/DebianInstaller/Preseed | |
| # | |
| # [引导参数] 需配合以下内核引导参数实现完全无人值守安装: | |
| # auto=true — 启用自动安装模式,延迟交互问题到 preseed 加载后回答 | |
| # priority=critical — 仅显示 critical 级别问题,跳过低优先级交互提示 | |
| # [示例] linux /install/vmlinuz auto=true priority=critical preseed/url=http://example.com/preseed.cfg |