panoz 1 Posted July 14, 2010 Report Share Posted July 14, 2010 Hi guys, I'm building an account creation bot and I would like it reset my DSL connection (PPPOE), and check the ip address before making the next account. Does anybody have any idea how I can incorporate this into ubot. I see that there "shell" action command for executable. But where do I find the .exe file for the PPPOE connection? Any help is appreciated, Thanks! Quote Link to post Share on other sites
panoz 1 Posted July 14, 2010 Author Report Share Posted July 14, 2010 I can call up cmd.exe with the "shell" but I think I need to create a cmd script to disconnect and reconnect with the PPPOE connection first. Then use the "shell" command to call on this cmd commmand. Any idea? Quote Link to post Share on other sites
PsychoDad 9 Posted July 14, 2010 Report Share Posted July 14, 2010 Hi!The most (or all) routers have user interfaces which can be opened in a browser through http://routerip or http://routername or something like this.If this is the case you can make a simple Sub named "Router Reset" or "Change IP" which you can call from everywhere you need it.In this sub you log in into your router, change i.e. the "stay connected" setting to 2 minutes and set it again to "stay connected" and then save.In most routers this causes a short interruption for your connection and a new IP -> Done Quote Link to post Share on other sites
alcr 135 Posted July 15, 2010 Report Share Posted July 15, 2010 Yeah how are your network configured? Quote Link to post Share on other sites
panoz 1 Posted July 16, 2010 Author Report Share Posted July 16, 2010 Yeah how are your network configured? I think I found a way to do it. Download: http://www.nirsoft.net/utils/nircmd.html nircmd.exe rasdial "connection name" - dial a connectionnircmd.exe rashangup "connection name" - disconnect from a connection Now, I'm gonna try this in ubot with the shell command Quote Link to post Share on other sites
panoz 1 Posted July 16, 2010 Author Report Share Posted July 16, 2010 Now the problem is how to I run this command in ubot under shell? I tried a lot of variations that I can think of without any success. This is how it works on my computer doing it manually:Open up cmd.exe (dos command) then type this in "nircmd.exe rashangup "connection"" then"nircmd.exe rasdial "connection"" I think I found a way to do it. Download: http://www.nirsoft.net/utils/nircmd.html nircmd.exe rasdial "connection name" - dial a connectionnircmd.exe rashangup "connection name" - disconnect from a connection Now, I'm gonna try this in ubot with the shell command Quote Link to post Share on other sites
Max Andrews 5 Posted July 23, 2010 Report Share Posted July 23, 2010 Universal solution to disconnect/connect (reset) PPPoE connections: in a bat file copy-paste: @echo offrasdial xxx /disconnectechoxxx has been disconnectedchoice /d y /t Q > nulechorasdial xxx yyy zzzxxx reconnected --------------------where:xxx - name of the PPPoE connectionQ - wait finish time, in seconds (5-7 sec will be more than enough)yyy - PPPoE usernamezzz - PPPoE password Just ignore this error:"blablabla is not recognized as an internal or external command, operable program or batch file" This .bat works on Vista and Win7 OS. Never tested on older OS, since I don't really care... Open this bat file in ubot in the normal manner:Action commands -> Shell -> Browse for bat file -> set ubot delay Quote Link to post Share on other sites
meter 145 Posted July 23, 2010 Report Share Posted July 23, 2010 Cheers, useful for people running bots from home Quote Link to post Share on other sites
panoz 1 Posted July 26, 2010 Author Report Share Posted July 26, 2010 This is how I got mine to work: I used these command directly into shell string with mircmd.exe without creating any bat file to disconnect:cmd.exe /C mircmd.exe rashangup "connection name" to reconnect:cmd.exe /C mircmd.exe rasdial "connection name" Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.