This file contains 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
// Ref: Writing Shellcode with a C Compiler (https://nickharbour.wordpress.com/) | |
PPEB __declspec(naked) get_peb(void) | |
{ | |
__asm { | |
mov eax, fs:[0x30] | |
ret | |
} | |
} |
This file contains 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
############################################################################################ | |
## | |
## Auto-DWORD! | |
## | |
## Updated for IDA 7.xx and Python 3 | |
## | |
## To install: | |
## Copy script into plugins directory, i.e: C:\Program Files\<ida version>\plugins | |
## | |
## To run: |
This file contains 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
############################################################# | |
## | |
## Highlight enum data and call label_enums() | |
## | |
## Each enum address will be named after the enum value it contains | |
## This can be used to create an IAT struct | |
## | |
############################################################### | |
This file has been truncated, but you can view the full file.
This file contains 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
// | |
// +-------------------------------------------------------------------------+ | |
// | This file was generated by The Interactive Disassembler (IDA) | | |
// | Copyright (c) 2020 Hex-Rays, <[email protected]> | | |
// | License info: 48-B331-7A44-33 | | |
// | Sergei Frankoff, press copy | | |
// +-------------------------------------------------------------------------+ | |
// | |
// | |
// This file should be used in the following way: |
This file contains 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
# MS SCEP & SE quarantined files decrypter | |
# This script is a fork from quarantine.py from the cuckoosandbox project. | |
# Also thanks to Jon Glass (https://jon.glass/quarantines-junk/) | |
# Usage: quarantine.py <encryptedfile> | |
# | |
# Copyright (C) 2015 KillerInstinct, Optiv, Inc. ([email protected]) | |
# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org | |
# See the file 'docs/LICENSE' for copying permission. | |
This file contains 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
Write-Host -NoNewline " " | |
Write-Host -NoNewline " _______ _______ ___ _______ _______ _______ " | |
Write-Host -NoNewline " | || _ || | | _ || _ || | " | |
Write-Host -NoNewline " | _ || |_| || | | |_| || |_| || _____| " | |
Write-Host -NoNewline " | | | || || | | || || |_____ " | |
Write-Host -NoNewline " | |_| || || |___ | || _ | |_____ | " | |
Write-Host -NoNewline " | || _ || || _ || |_| | _____| | " | |
Write-Host -NoNewline " |_______||__| |__||_______||__| |__||_______||_______| " | |
Write-Host -NoNewline " " | |
Write-Host -NoNewline " " |
This file contains 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
Set-ExecutionPolicy Unrestricted; | |
iex ((New-Object System.Net.WebClient).DownloadString('http://boxstarter.org/bootstrapper.ps1')); | |
get-boxstarter -Force; | |
Install-BoxstarterPackage -PackageName 'https://gist.githubusercontent.com/OALabs/afb619ce8778302c324373378abbaef5/raw/4006323180791f464ec0a8a838c7b681f42d238c/oalabs_x86vm.ps1'; |
This file contains 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
#! /usr/bin/env python | |
########################################################################################## | |
## | |
## RC4 Crypto | |
## | |
########################################################################################## | |
def rc4crypt(key, data): |
This file contains 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 json | |
# fn_name = "wsprintfW" | |
# api_hash = 0x0B6D391AE | |
export_db = {} | |
def get_api_hash(fn_name): | |
result = 0x2b | |
for c in fn_name: |