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
| {****************************************************************************** | |
| THashMap - Generic hashmap implementation for Free Pascal | |
| Copyright (c) 2026 Aleksandr Vorobev aka CynicRus, CynicRus@gmail.com | |
| Redistribution and use in source and binary forms, with or without | |
| modification, are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. |
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 TForm1.BitBtn1Click(Sender: TObject); | |
| var | |
| Render: TGDIPlusCanvas; | |
| begin | |
| PaintBox1.Canvas.FillRect(0,0,PaintBox1.Width, PaintBox1.Height); | |
| Render := TGDIPlusRender.Create(PaintBox1.Canvas.Handle); | |
| try | |
| TestRender(Render); | |
| finally | |
| Render.Free; |
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 gdiplus_canvas; | |
| {$mode ObjFPC}{$H+} | |
| interface | |
| uses | |
| {$IFDEF MSWINDOWS}Windows, gdipapi,{$ENDIF}lclintf, lcltype, Classes, SysUtils, Controls, | |
| StdCtrls, GraphType, Graphics, FPImage, FPCanvas, Math; |
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 SimplePing; | |
| {$MODE OBJFPC}{$H+} | |
| uses | |
| Windows, WinSock; | |
| type | |
| // Структура для опций ICMP запроса | |
| IP_OPTION_INFORMATION = record |
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): |
NewerOlder