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
| 1) Download source code from https://github.com/madler/zlib/ | |
| 2) Unpack | |
| 3) Using powershell or cmd and navigate to the unpacked source folder | |
| 4) mkdir build | |
| 5) cd build | |
| 6) cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=C:/mingw64 .. | |
| 7) mingw32-make | |
| 8) mingw32-make install | |
| same for liblzma |
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
| # Скрипт для IDA => 9, для разбора RTTI от Watcom C++ какой-то версии 1999 года | |
| # Воссоздает структуру классов | |
| # Автор: CynicRus, 2025 год. | |
| import idautils | |
| import idaapi | |
| import idc | |
| import ida_bytes | |
| import ida_name | |
| import ida_funcs |
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
| program UsbMonitor; | |
| {$mode objfpc}{$H+} | |
| uses | |
| dl, BaseUnix, Unix, SysUtils; | |
| const | |
| LIBUDEV_SO = 'libudev.so.1'; |
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)] | |
| [ValidatePattern('^[A-Za-z]$')] | |
| [string]$DriveLetter | |
| ) | |
| # Структура загрузочного сектора NTFS | |
| $NTFSBootSectorFormat = @{ | |
| JumpInstruction = 0..2 | |
| OemID = 3..10 |
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
| wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz | |
| sudo tar xzf Python-2.7.9.tgz | |
| cd Python-2.7.9 | |
| sudo ./configure --enable-optimizations | |
| sudo make altinstall | |
| sudo ln -sfn '/usr/local/bin/python2.7' '/usr/bin/python2' | |
| sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1 |
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 os | |
| import io | |
| import argparse | |
| def unfind_substr(directory, word): | |
| files = os.listdir(directory) | |
| finalFiles = [] | |
| for file in files: | |
| filename = os.path.join(directory, file) | |
| if os.path.isfile(filename): |
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
| USAGE: clang.exe [options] file... | |
| OPTIONS: | |
| -### Print (but do not run) the commands to run for this compilation | |
| --amdgpu-arch-tool=<value> | |
| Tool used for detecting AMD GPU arch in the system. | |
| --analyzer-output <value> | |
| Static analyzer report output format (html|plist|plist-multi-file|plist-html|sarif|sarif-html|text). | |
| --analyze Run the static analyzer | |
| -arcmt-migrate-emit-errors |
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
| const | |
| CharMap: array [0..23] of char = 'BCDFGHJKMPQRTVWXY2346789'; | |
| var | |
| ProductID: array of byte; | |
| IdPart: array [0..14] of byte; | |
| Registry: TRegistry; | |
| DataSize: integer; | |
| Key: ansistring; | |
| i, j, c: integer; | |
| begin |
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
| unit winevt_h; | |
| {$ifdef FPC} | |
| {$mode objfpc}{$H+} | |
| {$EndIF} | |
| interface | |
| uses | |
| Classes, SysUtils, Windows; |
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
| procedure SnappyDecompress(Input: TByteArray; Offset, | |
| Length: integer; var Output: TByteArray); | |
| var | |
| i, l, o, c,targetIndex,SourceIndex,targetLength: integer; | |
| function incPP(var AVal: integer): integer; | |
| begin | |
| result := AVal; | |
| inc(AVal); | |
| end; |
NewerOlder