Skip to content

Instantly share code, notes, and snippets.

View sh1dow3r's full-sized avatar
😭
fixing DNS!

Ali Alamri sh1dow3r

😭
fixing DNS!
View GitHub Profile
@sh1dow3r
sh1dow3r / deb-setup.sh
Created August 4, 2024 00:33
Setting up a new installation on debain-based os
#!/bin/bash
set -e
# Colors for log messages
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
log_success() {
@sh1dow3r
sh1dow3r / OSx-setup.sh
Created August 4, 2024 00:28
Setting up a new mac installtion
#!/bin/bash
set -e
# Colors for log messages
GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m' # No Color
log_success() {
@sh1dow3r
sh1dow3r / Reg_Bin_TimeStamp.py
Last active June 7, 2023 11:42
Convert reg binary type to datetime
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 = (
@sh1dow3r
sh1dow3r / VM_Backup.ps1
Created May 17, 2023 16:56
PowerCLI vCenter VMs backup to local machine
# 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
@sh1dow3r
sh1dow3r / VT_BulkSearch.py
Created May 13, 2023 10:29
virustotal bulk search
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}
@sh1dow3r
sh1dow3r / ASPX_Webshell_Deobfuscator.py
Created March 27, 2022 23:50
ASPX Webshell De de-obfuscator
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:
@sh1dow3r
sh1dow3r / SP_Notify.py
Last active March 28, 2022 07:22
script ran on pfsense router and alert on slack using web-hook when a new IP address is registered
import requests, json, subprocess, os
web_hook = ""
filepath = "/tmp/addresses"
def msg_sender(hostname, macaddress, ipaddress):
slack_data = {
"text": "Text.",
"blocks": [
{