Jump to content
UBot Underground

Solution for reseting DSL connection


Recommended Posts

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!

Link to post
Share on other sites

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?

Link to post
Share on other sites

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

Link to post
Share on other sites

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 connection

nircmd.exe rashangup "connection name" - disconnect from a connection

 

Now, I'm gonna try this in ubot with the shell command

Link to post
Share on other sites

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 connection

nircmd.exe rashangup "connection name" - disconnect from a connection

 

Now, I'm gonna try this in ubot with the shell command

Link to post
Share on other sites

Universal solution to disconnect/connect (reset) PPPoE connections:

 

in a bat file copy-paste:

 

@echo off

rasdial xxx /disconnect

echo

xxx has been disconnected

choice /d y /t Q > nul

echo

rasdial xxx yyy zzz

xxx reconnected

 

--------------------

where:

xxx - name of the PPPoE connection

Q - wait finish time, in seconds (5-7 sec will be more than enough)

yyy - PPPoE username

zzz - 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

Link to post
Share on other sites

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"

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...