Sign in to follow this  
Followers 0
Info

Shutdown internet...

24 posts in this topic

Is there any command that shutdown the internet?

I mean like remove the Net cabble from his place...

Sorry about my english...

Hope you will help me...

Share this post


Link to post
Share on other sites



Is there any command that shutdown the internet?

I mean like remove the Net cabble from his place...

Sorry about my english...

Hope you will help me...

Shutdown the whole Internet? Wow, I don't think Al Gore would appreciate you doing that. Besides I don't think there's a way to do this from an au3 script, then again what do I know.

And are you asking for a au3 script to physically reach around and unplug the RJ45 from the ethernet port? AutoIt is good stuff, but I don't think its that good. If you figure out a way to do this, that's some crazy stuff and without a doubt some mad skills. On the other hand if you're trying to disable the TCP/IP stack so that they cannot access the Internet, Intranet, or even ping other systems on their segment.... why would you want to do this?

Regardless, tell us whachu wanna do.

Share this post


Link to post
Share on other sites

Shutdown the whole Internet? Wow, I don't think Al Gore would appreciate you doing that. Besides I don't think there's a way to do this from an au3 script, then again what do I know.

And are you asking for a au3 script to physically reach around and unplug the RJ45 from the ethernet port? AutoIt is good stuff, but I don't think its that good. If you figure out a way to do this, that's some crazy stuff and without a doubt some mad skills. On the other hand if you're trying to disable the TCP/IP stack so that they cannot access the Internet, Intranet, or even ping other systems on their segment.... why would you want to do this?

Regardless, tell us whachu wanna do.

a simple way:

#include <Process.au3>
$inp = InputBox('Input', 'Insert connection', 'Local Area Connection', '', 300, 100, -1, -1)
if @error then Exit
_RunDOS('ipconfig /release "'& String($inp) &'"')
Exit

to bring it back do the same replacing release with renew

Share this post


Link to post
Share on other sites

Interesting notion that Gif, however if the user restarts there computer, logs off and back on, or whats to perform other vital network tasks, there could be a few issues.

I would go with something like blocking ports 8080 and port 80 in the firewall.. ?

Share this post


Link to post
Share on other sites

...however if the user restarts there computer, logs off and back on, or whats to perform other vital network tasks, there could be a few issues.

Your dreaming up a scenerio that does not exist. Nothing about security or anything has been asked for. The only thing asked for is to disconnect from the network. So do you believe now in that knowledge that blocking ports in the firewall is a little extreme of an action for this case? :)

Share this post


Link to post
Share on other sites

a simple way:

#include <Process.au3>
$inp = InputBox('Input', 'Insert connection', 'Local Area Connection', '', 300, 100, -1, -1)
if @error then Exit
_RunDOS('ipconfig /release "'& String($inp) &'"')
Exit

to bring it back do the same replacing release with renew

This assumes that the computer is not running a static IP.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

You could use Microsoft's command line device manager utility DevCon to disable the network card.

http://support.microsoft.com/kb/311272

Device Console Help:

devcon.exe [-r] [-m:\\<machine>] <command> [<arg>...]

-r if specified will reboot machine after command is complete, if needed.

<machine> is name of target machine.

<command> is command to perform (see below).

<arg>... is one or more arguments if required by command.

For help on a specific command, type: devcon.exe help <command>

classfilter Allows modification of class filters.

classes List all device setup classes.

disable Disable devices that match the specific hardware or

instance ID.

driverfiles List driver files installed for devices.

drivernodes Lists all the driver nodes of devices.

enable Enable devices that match the specific hardware or

instance ID.

find Find devices that match the specific hardware or

instance ID.

findall Find devices including those that are not present.

help Display this information.

hwids Lists hardware ID's of devices.

install Manually install a device.

listclass List all devices for a setup class.

reboot Reboot local machine.

remove Remove devices that match the specific hardware or

instance ID.

rescan Scan for new hardware.

resources Lists hardware resources of devices.

restart Restart devices that match the specific hardware or

instance ID.

stack Lists expected driver stack of devices.

status List running status of devices.

update Manually update a device.

UpdateNI Manually update a device without user prompt

SetHwID Adds, deletes, and changes the order of hardware IDs of root-enumerated devices.

Share this post


Link to post
Share on other sites

You could also disable or stop the workstation service using Nirsoft NirCmd:

http://www.nirsoft.net/utils/nircmd.html

- or -

Use sc.exe built into XP to disable it.

Share this post


Link to post
Share on other sites

You could also disable or stop the workstation service using Nirsoft NirCmd:

http://www.nirsoft.net/utils/nircmd.html

- or -

Use sc.exe built into XP to disable it.

Will that kill browser traffic? No place to test atm.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Thanks, but I'm newbie in this program,

so can someone tell me how to disable the connection from click a $Button_X?

Hope you will help meh...

Share this post


Link to post
Share on other sites

Answer me pl0x...

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

here some workfull thing for and i attach a file.exe save this file and place it on your system folder.

CODE
#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("AForm1", 293, 72, 193, 115)

GUISetOnEvent($GUI_EVENT_CLOSE, "AForm1Close")

GUISetOnEvent($GUI_EVENT_MINIMIZE, "AForm1Minimize")

GUISetOnEvent($GUI_EVENT_MAXIMIZE, "AForm1Maximize")

GUISetOnEvent($GUI_EVENT_RESTORE, "AForm1Restore")

$Button1 = GUICtrlCreateButton("Disable Or Enable", 8, 8, 273, 49, 0)

GUICtrlSetOnEvent(-1, "AButton1Click")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

Sleep(100)

WEnd

Func AButton1Click()

run("file.exe")

EndFunc

Func AForm1Close()

exit 0

EndFunc

Func AForm1Maximize()

EndFunc

Func AForm1Minimize()

EndFunc

Func AForm1Restore()

EndFunc

if ProcessExists("file.exe") Then

Sleep(3000)

ProcessClose("file.exe")

EndIf

try this.. :)

file.exe

Edited by L3G3NdKillEr

i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

Share this post


Link to post
Share on other sites

Yes because I want to place some random exe in my system folder with no source code.

Share this post


Link to post
Share on other sites

here some workfull thing for and i attach a file.exe save this file and place it on your system folder.

CODE
#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("AForm1", 293, 72, 193, 115)

GUISetOnEvent($GUI_EVENT_CLOSE, "AForm1Close")

GUISetOnEvent($GUI_EVENT_MINIMIZE, "AForm1Minimize")

GUISetOnEvent($GUI_EVENT_MAXIMIZE, "AForm1Maximize")

GUISetOnEvent($GUI_EVENT_RESTORE, "AForm1Restore")

$Button1 = GUICtrlCreateButton("Disable Or Enable", 8, 8, 273, 49, 0)

GUICtrlSetOnEvent(-1, "AButton1Click")

GUISetState(@SW_SHOW)

#EndRegion ### END Koda GUI section ###

While 1

Sleep(100)

WEnd

Func AButton1Click()

run("file.exe")

EndFunc

Func AForm1Close()

exit 0

EndFunc

Func AForm1Maximize()

EndFunc

Func AForm1Minimize()

EndFunc

Func AForm1Restore()

EndFunc

if ProcessExists("file.exe") Then

Sleep(3000)

ProcessClose("file.exe")

EndIf

try this.. :)

I don't understand what you just gave me...

All I want is when I push a button/Hotkey it will shut down the internet...

Share this post


Link to post
Share on other sites

Look to the command of NETSH.

You can change the DHCP option to a manual adress, even when the user reboots, he still can't get on the internet.

Offcourse you do not fill in the gateway but you must know that.

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

I don't need the NETSH...

I just need a command like:

Case $msg = $Button_1
     ShutDownInternet
Edited by Info

Share this post


Link to post
Share on other sites

I don't need the NETSH...

I just need a command like:

Case $msg = $Button_1
     ShutDownInternet

LOL LOL LOL

OH... Is that all you want...

You heard him Jon, write it in - LOL LOL LOL

Share this post


Link to post
Share on other sites

see title of your thread

"shutdown internet". i was made a script ad file that disabled and enabled the internet. :)


i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

AHK script.

I think he wants autoit, Not AHK.

EDIT::

Nevertheless, From what I see, Its safe.

Edited by AzKay

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

If u put an wrong DNS address your internet connection will be lost.

Here goes an example of the use of NETSH to change DNS:

Run('cmd /c netsh interface ip set dns "c" static 111.1.1.1 primary')

"c" is the name of your local network conection, im my pc is "Conexão local", but works if i put "c" :) .

111.1.1.1 is the DNS that i put to "disable" my internet connection, if i put 192.168.1.1 (my DNS)

i recovery the internet connection, so u will have to put something diferent from your DNS to "disable" your

internet connection...

to see your DNS u can use:

Run('cmd /c netsh interface ip show dns & pause')

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0