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
@echo off | |
cls | |
color a | |
SETLOCAL EnableDelayedExpansion | |
:GeolocatorSubmenu | |
cls | |
echo Welcome to the geolocator Submenu what would you like to do today? | |
echo [1] Geolocate IPs In A file | |
echo [2] Geolocate Other IPs | |
echo [3] Geolocate My Public IP |
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
@echo on | |
setlocal enabledelayedexpansion | |
:: Create a directory to store output files | |
set OUTPUT_DIR=%~dp0System_Information | |
mkdir "%OUTPUT_DIR%" | |
:: Create subdirectories for categorized outputs | |
mkdir "%OUTPUT_DIR%\System" | |
mkdir "%OUTPUT_DIR%\Network" |
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
# Function to log results to a file | |
function Log-Results { | |
param ( | |
[string]$logMessage | |
) | |
$logFilePath = "C:\Users\yousu\Desktop\projects\SecurityAuditResults.txt" | |
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" | |
$logMessage = "$timestamp - $logMessage" | |
Add-Content -Path $logFilePath -Value $logMessage | |
} |
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
# Each letter is assigned a color and converted to HEX then converted to its decimal mathematical operation is preformed on it | |
# Then the numbers are converted to letters | |
import random | |
def generate_random_color(): | |
"""Generates a random color in hex.""" | |
return "#{:06x}".format(random.randint(0, 0xFFFFFF)) | |
def color_to_decimal(hex_color): | |
"""Converts a hex color to a decimal value.""" |