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 asyncio | |
import json | |
import logging | |
import os | |
import re | |
from contextlib import AsyncExitStack | |
import yaml | |
from dotenv import load_dotenv | |
from mcp import ClientSession, StdioServerParameters, Tool | |
from mcp.client.stdio import stdio_client |
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 os | |
# Bot credentials | |
API_ID = '25193832' | |
API_HASH = 'e154b1ccb0195edec0bc91ae7efebc2f' | |
# MongoDB connection string | |
DB_URI = 'mongodb+srv://copy:[email protected]/?retryWrites=true&w=majority&appName=Cluster0' | |
LOG_CHANNEL = '-1002240372506' | |
TOKEN = "7488527811:AAEPMstK_YmEXlB2nOhaBYElaQimhoiYXQc" | |
OWNER_ID = 7379318591 # Change to actual owner ID | |
ALERT_CHANNEL_ID = "-1002469829347" |
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
#Requires -RunAsAdministrator | |
<# | |
.SYNOPSIS | |
Windows Hardening Script for Cloud Environments (AWS, GCP, Azure) | |
.DESCRIPTION | |
This script implements security hardening measures for Windows instances | |
running in public cloud environments while maintaining usability. | |
.NOTES | |
Run with administrator privileges | |
#> |
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
# Start-ScheduledTaskCommand.ps1 | |
# Written by Bill Stewart (bstewart AT iname.com) | |
# This script provides a simple way to execute a command one one or more remote | |
# computers using the Task Scheduler service. Uses the Task Scheduler scripting | |
# objects: | |
# https://learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-objects | |
# If you're using the Windows firewall, you'll need the 'Remove Scheduled Tasks | |
# Management' inbound rules (or equivalent) in place on remote machines. |
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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<settings pass="generalize"> | |
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" | |
publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" | |
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> | |
</component> | |
</settings> |
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
# New-OpenSSLCertReq.ps1 | |
# Written by Bill Stewart (bstewart AT iname.com) | |
#requires -version 3 | |
<# | |
.SYNOPSIS | |
Generates a private key and certificate signing request (CSR) using OpenSSL. |
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
# Wait-NetConnectionDomain.ps1 | |
# Written by Bill Stewart | |
# Under certain circumstances, Windows might not detect it's network location | |
# correctly. The most obvious manifestation of this problem is that the Windows | |
# Firewall 'profile' gets set to the wrong network. On a domain, this can be a | |
# headache when firewall rules are set to only be active for the 'Domain' | |
# firewall profile. It seems that, under some conditions on domain-joined | |
# computers, the Network Location Awareness (NlaSvc) service doesn't update | |
# its status correctly. |
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 | |
MYHOME=$HOME | |
MYDESKTOP=$HOME/Desktop | |
echo " _ " | |
echo " | | " | |
echo " ___ | | ___ __ _ _ __ _ _ _ __ " | |
echo " / __|| |/ _ \/ _ | '_ \| | | | '_ \ " | |
echo " | (__ | | __/ (_| | | | | |_| | |_) |" | |
echo " \___||_|\___|\__,_|_| |_|\__,_| .__/ " |
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
<# | |
.SYNOPSIS | |
Default preset file for "Sophia Script for Windows 11 (PowerShell 7)" | |
Version: v6.1.3 | |
Date: 26.07.2022 | |
Copyright (c) 2014—2022 farag | |
Copyright (c) 2019—2022 farag & Inestic |
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 namespace System.IO; | |
function Get-GistContent { | |
param ( | |
[Parameter(Position = 0, Mandatory = $true)] | |
[string] $gistId | |
) | |
# Define the Gist API URL using the provided gistId | |
$apiUrl = "https://api.github.com/gists/$gistId" |
NewerOlder