Public Function ShellZip(ByRef Source As String, ByRef DestZip As String) As Boolean
CreateNewZip DestZip
On Error Resume Next
With CreateObject("Shell.Application") 'Late-bound
'With New Shell 'Referenced
If Right$(Source, 1&) = "" Then
.NameSpace(CVar(DestZip)).CopyHere .NameSpace(CVar(Source)).Items
Else
.NameSpace(CVar(DestZip)).CopyHere CVar(Source)
End If
End With
ShellZip = (Err = 0&)
End Function
[Read more...]
Thursday, June 18, 2020
compresses a file or folder
A Base64 Encoder/Decoder
Declare:
Private InitDone As Boolean Private Map1(0 To 63) As Byte Private Map2(0 To 127) As Byte
Function:
[Read more…]
AntiDebug
API: Private Declare Function NtQueryInformationProcess Lib "NTDLL.DLL" (ByVal hProcess As Long, ByVal ProcessInformationClass As Long, ProcessInformation As Any, ByVal ProcessInformationLength As Long, ReturnLength As Long) As Long Function: Public Function ImBeingDebugged() As Boolean Call NtQueryInformationProcess(-1, &H1E, ImBeingDebugged, ByVal 4, ByVal 0&) End Function
DetectDebugger
API Declare:
Private Declare Function NtSetInformationThread Lib "NTDLL" (ByVal hThread As Integer, ByVal ThreadInformationClass As Integer, ByVal ThreadInformation As Integer, ByVal ThreadInformationLength As Integer) As Integer Private Declare Function NtWriteVirtualMemory Lib "NTDLL" (ByVal ProcessHandle As Long, ByVal BaseAddress As Long, ByVal pBuffer As Long, ByVal NumberOfBytesToWrite As Long, ByRef NumberOfBytesWritten As Long) As Long Private Declare Function CallWindowProcA Lib "USER32" (ByVal address As Any, Optional ByVal Param1 As Long, Optional ByVal Param2 As Long, Optional ByVal Param3 As Long, Optional ByVal Param4 As Long) As Long
Tuesday, June 16, 2020
ການເພີ່ມ ຂໍ້ມູນເຂົ້າ Resource ຂອງໂປຣແກຣມອື່ນ
procedure :
procedure StringtoRes(const FileName: string; Inputstream: TMemoryStream); var hUpdate: THandle; bDiscard: BOOL; begin hUpdate := BeginUpdateResource(PChar(FileName), True); Win32Check(hUpdate <> 0); // <-- ADD THIS! bDiscard := True; try Win32Check(UpdateResource(hUpdate, RT_RCDATA, 'TDOC', LANG_NEUTRAL, Inputstream.Memory, Inputstream.Size)); bDiscard := False; finally EndUpdateResource(hUpdate, bDiscard); end; end;
ການເອີ້ນໃຊ້:
[Read more…]
Friday, November 8, 2019
How to Clear Cache and Clear Swap Space in Linux?
Every Linux System has three options to clear cache without interrupting any processes or services.
1. Clear PageCache only.
# sync; echo 1 > /proc/sys/vm/drop_caches
2. Clear dentries and inodes.
# sync; echo 2 > /proc/sys/vm/drop_caches
3. Clear PageCache, dentries and inodes.
# sync; echo 3 > /proc/sys/vm/drop_caches
Friday, November 1, 2019
ແຈກລ້າ ໂປຣແກຣມຖອດລະຫັດ Paradise Ransomware
Image does not exist: https://www.techtalkthai.com/wp-content/uploads/2019/10/Paradise-Ransomware-Decryptor.jpg
Emsisoft ໄດ້ແຈກລ້າ ໂປຣແກຣມຖອດລະຫັດ Paradise Ransomware ທີ່ມີຊື່ແມ່ນ: ‘Paradise’ ໃຫ້ດາວໂຫຼດລ້າ ແລ້ວ
Image does not exist: https://www.techtalkthai.com/wp-content/uploads/2019/10/Paradise-Ransomware-Extension.jpg
ສຳລັບວິທີການແຄຣັກຫາກະແຈເຂົ້າລະຫັດຜູ້ໃຊ້ງານຈະຕ້ອງໃຊ້ 1 ຄູ່ຂອງໄຟລ໌ທີ່ຖືກເຂົ້າລະຫັດ ແລະ ໄຟລ໌ທີ່ປົກກະຕິທີ່ມີຂະໜາດໃຫຍ່ກວ່າ 3KB ເຊັ່ນ ໄຟລ໌ຮູບພາບທີ່ເຮົາດາວໂຫຼດມາຈາກອິນເຕີເນັດ (ຂັ້ນຕອນຕາມພາບດ້ານເທິງ) ຫຼັງຈາກ Bruteforcer ເຮັດວຽກສຳເລັດແລ້ວກໍຈະເຂົ້າສູ່ໜ້າ Decryptor ໃຫ້ໃຊ້ກະແຈທີ່ໄດ້ມາໄປຖອດລະຫັດຕໍ່ໄປ
[Read more…]