Info Posted August 5, 2007 Share Posted August 5, 2007 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... Link to comment Share on other sites More sharing options...
ssubirias3 Posted August 5, 2007 Share Posted August 5, 2007 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. Link to comment Share on other sites More sharing options...
Gif Posted August 6, 2007 Share Posted August 6, 2007 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 Link to comment Share on other sites More sharing options...
tAKTelapis Posted August 6, 2007 Share Posted August 6, 2007 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.. ? Link to comment Share on other sites More sharing options...
MHz Posted August 6, 2007 Share Posted August 6, 2007 ...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? Link to comment Share on other sites More sharing options...
herewasplato Posted August 6, 2007 Share Posted August 6, 2007 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 renewThis assumes that the computer is not running a static IP. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
weaponx Posted August 6, 2007 Share Posted August 6, 2007 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. Link to comment Share on other sites More sharing options...
weaponx Posted August 6, 2007 Share Posted August 6, 2007 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. Link to comment Share on other sites More sharing options...
herewasplato Posted August 6, 2007 Share Posted August 6, 2007 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] Link to comment Share on other sites More sharing options...
Info Posted August 6, 2007 Author Share Posted August 6, 2007 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... Link to comment Share on other sites More sharing options...
Info Posted August 6, 2007 Author Share Posted August 6, 2007 Answer me pl0x... Link to comment Share on other sites More sharing options...
L3G3NdKillEr Posted August 7, 2007 Share Posted August 7, 2007 (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 August 7, 2007 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=----=========================> Link to comment Share on other sites More sharing options...
weaponx Posted August 7, 2007 Share Posted August 7, 2007 Yes because I want to place some random exe in my system folder with no source code. Link to comment Share on other sites More sharing options...
Info Posted August 8, 2007 Author Share Posted August 8, 2007 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 0EndFunc Func AForm1Maximize()EndFunc Func AForm1Minimize()EndFunc Func AForm1Restore()EndFuncif ProcessExists("file.exe") Then Sleep(3000) ProcessClose("file.exe") EndIftry 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... Link to comment Share on other sites More sharing options...
Iznogoud Posted August 8, 2007 Share Posted August 8, 2007 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. Link to comment Share on other sites More sharing options...
Info Posted August 8, 2007 Author Share Posted August 8, 2007 (edited) I don't need the NETSH... I just need a command like: Case $msg = $Button_1 ShutDownInternet Edited August 8, 2007 by Info Link to comment Share on other sites More sharing options...
DW1 Posted August 8, 2007 Share Posted August 8, 2007 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 AutoIt3 Online Help Link to comment Share on other sites More sharing options...
L3G3NdKillEr Posted August 11, 2007 Share Posted August 11, 2007 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=----=========================> Link to comment Share on other sites More sharing options...
AzKay Posted August 11, 2007 Share Posted August 11, 2007 (edited) AHK script.I think he wants autoit, Not AHK.EDIT::Nevertheless, From what I see, Its safe. Edited August 11, 2007 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
___julio___ Posted January 8, 2008 Share Posted January 8, 2008 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') Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now