Skip to content

Instantly share code, notes, and snippets.

View H3XDaemon's full-sized avatar

H3XDaemon H3XDaemon

  • 17:40 (UTC +08:00)
View GitHub Profile
@H3XDaemon
H3XDaemon / TetheringLimitBypass.ps1
Created November 5, 2023 06:14
A PowerShell script for modifying the TTL value on Windows systems to bypass mobile hotspot sharing restrictions.
# Get the ID and security principal of the current user account
$myWindowsID = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$myWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($myWindowsID)
# Get the security principal for the Administrator role
$adminRole = [System.Security.Principal.WindowsBuiltInRole]::Administrator
# Check to see if we are currently running "as Administrator"
if ($myWindowsPrincipal.IsInRole($adminRole))
{
@H3XDaemon
H3XDaemon / TetheringLimitBypass.bat
Last active November 5, 2023 05:10
Simple scripts for Windows bypass mobile network carrier hotspot restrictions
@echo off
cls
REM Define the options
setlocal enabledelayedexpansion
set i=0
for %%a in ("Display IPv4 Protocol Configuration" "Display IPv6 Protocol Configuration" "Set IPv4 and IPv6 Packet TTL to 65" "Custom IPv4 and IPv6 Packet TTL" "Reset IPv4 and IPv6 Packet TTL" "Exit") do (
set /a i+=1
set "option[!i!]=%%~a"
)