Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Premature optimization is the root of all evil. -- D. E. Knuth


devel / alt.msdos.batch / Re: Win10 network on/off toggle with admin privileges

SubjectAuthor
* Re: Win10 network on/off toggle with admin privilegesFin Tres Nueve Dos
`- Re: Win10 network on/off toggle with admin privilegesFromTheRafters

1
Re: Win10 network on/off toggle with admin privileges

<5eb249ab-e571-4c3e-80fb-4b23ca84cb6bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=61&group=alt.msdos.batch#61

  copy link   Newsgroups: alt.msdos.batch
X-Received: by 2002:a0c:f044:: with SMTP id b4mr2076088qvl.3.1620020868388;
Sun, 02 May 2021 22:47:48 -0700 (PDT)
X-Received: by 2002:ac8:67c7:: with SMTP id r7mr15884509qtp.124.1620020868244;
Sun, 02 May 2021 22:47:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: alt.msdos.batch
Date: Sun, 2 May 2021 22:47:47 -0700 (PDT)
In-Reply-To: <s04b6k$6u3$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=81.39.83.162; posting-account=q0M-9QoAAABSRxocdLVRiCyzwDEYGxmv
NNTP-Posting-Host: 81.39.83.162
References: <rvqdmf$dbd$1@gioia.aioe.org> <s04b6k$6u3$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5eb249ab-e571-4c3e-80fb-4b23ca84cb6bn@googlegroups.com>
Subject: Re: Win10 network on/off toggle with admin privileges
From: fin...@gmail.com (Fin Tres Nueve Dos)
Injection-Date: Mon, 03 May 2021 05:47:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Fin Tres Nueve Dos - Mon, 3 May 2021 05:47 UTC

What about this option?

List of network interfaces: netsh interface show interface

Disable an interface: netsh interface set interface "interface_name" disable

Enable an interface: netsh interface set interface "interface_name" enable

Re: Win10 network on/off toggle with admin privileges

<t226du$1pk3$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=161&group=alt.msdos.batch#161

  copy link   Newsgroups: alt.msdos.batch
Path: i2pn2.org!i2pn.org!aioe.org!32huSOjTmh34flTp/cfStw.user.46.165.242.75.POSTED!not-for-mail
From: erra...@nomail.afraid.org (FromTheRafters)
Newsgroups: alt.msdos.batch
Subject: Re: Win10 network on/off toggle with admin privileges
Date: Wed, 30 Mar 2022 13:10:14 -0500
Organization: Peripheral Visions
Message-ID: <t226du$1pk3$1@gioia.aioe.org>
References: <rvqdmf$dbd$1@gioia.aioe.org> <s04b6k$6u3$1@gioia.aioe.org> <5eb249ab-e571-4c3e-80fb-4b23ca84cb6bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="59011"; posting-host="32huSOjTmh34flTp/cfStw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Newsreader: MesNews/1.08.06.00-gb
X-Notice: Filtered by postfilter v. 0.9.2
X-ICQ: 1701145376
 by: FromTheRafters - Wed, 30 Mar 2022 18:10 UTC

Fin Tres Nueve Dos used his or her keyboard to write :

> What about this option?
>
> List of network interfaces: netsh interface show interface
>
> Disable an interface: netsh interface set interface "interface_name" disable
>
> Enable an interface: netsh interface set interface "interface_name" enable

Saw these on another newsgroup and am putting the links here for you.
https://www.action1.com/how-to-enable-disable-or-restart-network-adapter/
https://gist.github.com/gusg21/d5c81c70cc0935be006b21673fadcf7d
https://www.yeahhub.com/enable-disable-network-connection-windows-10-wmic-netsh-powershell/
https://stackoverflow.com/questions/14424338/netsh-interface-set-interface-name-local-area-connection-2-admin-disabled
https://michlstechblog.info/blog/windows-show-and-configure-network-settings-using-netsh/
https://www.windowscentral.com/how-enable-or-disable-wi-fi-and-ethernet-network-adapters-windows-10

Default Gateway.
https://stackoverflow.com/questions/52090451/batch-script-file-get-default-gateway-and-ping-ip-address
https://stackoverflow.com/questions/22367173/get-default-gateway-from-batch-file

Net Disabler.
https://www.sordum.org/9660/net-disabler-v1-1/
https://www.accuratereviews.com/how-to-temporarily-disable-your-internet-connection/
https://techtipsnreview.com/on-off-and-manage-the-internet-on-your-computer-with-net-disabler/
https://www.thewindowsclub.com/net-disabler-turn-internet-on-off
https://www.ghacks.net/2017/02/22/net-disabler/
https://www.majorgeeks.com/files/details/net_disabler.html

Network Kill.
https://sourceforge.net/projects/subproject.network-ip-tools.p/

VPN Watcher.
https://www.raymond.cc/blog/download/did/3743/

VPN Lifeguard.
https://www.raymond.cc/blog/download/did/3744/

VPN Check.
https://www.raymond.cc/blog/download/did/3745/

Comodo Kill.
https://offlinemn.tistory.com/11

Kill DHCP.
https://blog.shiraj.com/2012/10/netsh-command-to-change-from-static-ip-address-to-dhcp/

Disable Network.
https://www.action1.com/how-to-enable-disable-or-restart-network-adapter/

Internet Off.
http://crystalrich.com/internetoff/

Kill Switch.
https://www.raymond.cc/blog/automatic-vpn-kill-switch/
https://www.raymond.cc/blog/download/did/3746/
https://raymondcc.r.worldssl.net/LiquidVPN-Kill-Switch-3746.zip (raymondcc)
@echo off
:: GetAdmin
:-------------------------------------
:: Verify permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
:: On Error No Admin
if '%errorlevel%' NEQ '0' (
echo Getting administrative privileges...
goto DoUAC
) else ( goto getAdmin )
:DoUAC
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"=""
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:getAdmin
pushd "%CD%"
CD /D "%~dp0"
:--------------------------------------

@echo off
:: CHANGE DEFAULT GW IP BELOW
set defgw=192.168.0.1

@For /f "tokens=3" %%1 in (
'route.exe print 0.0.0.0 ^|findstr "\<0.0.0.0.*0.0.0.0\>"') Do set defgw=%%1
cls
:start
cls
echo.
color 0C
echo LiquidVPN's Simple VPN Kill Switch, ver. 0.1 - by LiquidVPN
echo.
echo.
echo Your routers gateway is probably "%defgw%"
echo -if nothing appears or its incorrect, add it manually (Press '3')
echo.
echo USAGE:
echo.
echo -Press "1" to Enable Kill Switch (IP "%defgw%")
echo -Press "2" to Disable Kill Switch (IP "%defgw%")
echo -Press "3" to manually set default gateway if its not detected above.
echo -Press "h" for Kill Switch Help
echo -Press "x" to exit Kill Switch.
echo.
set /p option=Your option:
if '%option%'=='1' goto :option1
if '%option%'=='2' goto :option2
if '%option%'=='3' goto :option3
if '%option%'=='x' goto :exit
if '%option%'=='h' goto :help
echo Insert 1, 2, x or h
timeout 3
goto start
:option1
route delete 0.0.0.0 %defgw%
echo Default gateway "%defgw%" removed
timeout 3
goto start
:option2
route add 0.0.0.0 mask 0.0.0.0 %defgw%
echo Defaulte gateway "%defgw%" restored
timeout 3
goto start
:option3
echo
set /p defgw=your gw IP (e.g. 192.168.0.1):
goto start
:help
cls
echo.
echo.
echo ======================
echo This simple kill switch removes your default gateway
echo and blocks traffic from reaching the internet when
echo your VPN gets disconnected.
echo.
echo Here is how you use it.
echo.
echo Step 1: Connect to LiquidVPN
echo Step 2: Enable LiquidVPN's Kill Switch (option "1")
echo.
echo Now Any internet traffic will pass through LiquidVPN only.
echo.
echo - If your VPN gets disconnected so will your internet.
echo - Disable the Kill Switch and reconnect.
echo.
echo.
echo When you disconnect from LiquidVPN follow these steps
echo to reconnect or to browse the internet normally.
echo.
echo Step 1: Close any software that may leak your real IP
echo Step 2: Disable the LiquidVPN kill switch (Option "2")
echo Step 3: Reconnect to LiquidVPN and enable the kill switch (Option "1")
echo.
timeout /T -1
goto start
:exit
exit

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor