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
#!/bin/bash | |
set -e | |
# Colors for log messages | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
log_success() { |
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
#!/bin/bash | |
set -e | |
# Colors for log messages | |
GREEN='\033[0;32m' | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
log_success() { |
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
from datetime import datetime, timedelta | |
# Prompt user for the REG_BINARY value | |
reg_binary_value = input("Enter the REG_BINARY value: ") | |
# Convert the REG_BINARY value to a list of integers | |
reg_values = [int(reg_binary_value[i:i+2], 16) for i in range(0, len(reg_binary_value), 2)] | |
# Perform the calculations | |
term = ( |
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
# Set vCenter server details | |
$vcServer="vcenter.local" | |
$vcUsername="[email protected]" | |
$vcUsername="VeryStrongPassword@123" | |
# Connect to vCenter | |
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -confirm:$false | |
Connect-VIServer -Server $vcServer -User $vcUsername -Password $vcPassword |
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 argparse | |
import requests | |
import json | |
VIRUSTOTAL_API_KEY = 'YOUR_API_KEY' | |
def perform_hash_search(hash_value): | |
url = f'https://www.virustotal.com/api/v3/files/{hash_value}' | |
headers = {'x-apikey': VIRUSTOTAL_API_KEY} |
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 argparse | |
import re | |
def convert_to_str(match_obj): | |
if match_obj.group() is not None: | |
return match_obj.group().encode('utf_8').decode('unicode_escape') | |
def deobfuscated(filename): | |
with open(filename) as myfile: | |
for line in myfile: |
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 requests, json, subprocess, os | |
web_hook = "" | |
filepath = "/tmp/addresses" | |
def msg_sender(hostname, macaddress, ipaddress): | |
slack_data = { | |
"text": "Text.", | |
"blocks": [ | |
{ |