Making A Code That Will Login To A Cisco Router - "if Wait Fails Goto"

Mar 3, 2011

I'm currently making a code that will login to a cisco router, and show the version, then return the version to me. The connection to the cisco router is using telnet, and I'm using Dimac's w3Sockets code to Connect, login, and return data. Reference

But currently I'm having some problems, since the router sometimes need the login typed 2 times, or having a key pressed to update the terminal(telnet),meaning i have to check if it gets logged in or not. But the problem is that using dimac code, i can only wait() and waitFor(), and if it none data comes whilst waiting, it keeps on waiting. Is there away to do like: "if wait fails goto"

I've tryed "on error goto", but since its not a error, but just keeps waiting, that dont work. Also, To locate where it gets stuck I have it write to my textbox everytime it takes a step in the code, but its like the dimac code overtakes vb.net. ex: If i send some text to a textbox in the same sub as the connect code is, and it gets stuck at a wait, it dont even write to the textbox, eventhough the textbox.text command was suppose to execute before the wait().

Code:

Private Sub telnet(ByVal port)

TextBox3.Text = TextBox3.Text & Environment.NewLine & "Telnet func Called" 'Cant execute this if it gets stuck at login below. ??
Try

[CODE]...

View 5 Replies


ADVERTISEMENT

Cannot Open Database Requested In Login 'Database1' / Login Fails / Login Failed For User 'sa'

Mar 1, 2011

I got the above error when i deploy my web application into windows server 2003. How do i resolve it? [code]

View 3 Replies

Login To My Router / App With Proper Credentials?

Feb 23, 2011

I need to find a way to login to my router/ap with the proper credentials and read from a designated textbox from the router's page and then virtualy submit some input that I might enter in my program to go as like a textbox.

View 3 Replies

VS 2010 Router Login Via Windows?

Jun 20, 2010

I'm currently making a program that will disable my wireless internet at a certain time and turn it back on at another time.

On my OLD router the login page was built into the webpage itself which made it easy to login via VB code

On my current Sky router they use Windows Security to Login. (Picture below)

Does anyone know how in Vb to automate the login.

View 7 Replies

Make A Router Auto-login With Vb6 Winsock

Aug 8, 2011

I have a problem to make a program for autologin my tplink router if I open a connection example : 84.82.1.123 port 80 with winsock (this is my router IP Address ) I can not get my router menu HTML pages. because the router ask for the user name and password How can I send my User Name and Password with this winsock? This Picture was captured when I access 84.82.1.123 with IE How to make an autologin program with winsock to my router?

View 2 Replies

Open Internet Explorer And A Router Using The Ip Then Login

Nov 18, 2009

How would I open internet explorer, open a router using the ip then login. The login it asks for is a popupbox type.

[Code]...

View 2 Replies

Intermittent Login In ASP / SQL Server 2000 - Some Times Login Fails?

Sep 16, 2009

I have an ASP application with Sql Server 2000 database. The application has a login page. It was working fine. But from past few days, some times login fails and some time it works. I looked into the procedure and ASP page but could not find any issue.

View 2 Replies

C# - Get Router Name And IP As Shown In Windows Network Tab (in Code)?

Oct 1, 2010

Basically, if you go to Start and click Computer and then click on the Network link on the left hand side, you'll notice on the right hand side several categories, one of which is titled "Network Infrustructure", in that category, my router is listed, and in my case, it is "LINKSYS WAG160N Wireless-N ADSL2+ Gateway" and when you right-click and select properties, it lists basic info such as internal/gateway IP address, on mine it is "192.168.1.1" I would like to know how to retreive this information in code, preferably a Windows API so that i can call it using a legacy VB6 app. Also, even if you just know a .NET version or a Delphi version, please do list that as well as i can code in both. However, the answer i'm ultimately seeking is a method to access this via VB6 so that would probably be a WinAPI call (will upvote & select this as answer), however, other methods are also welcome incase i can't find a legacy method (i will upvote these).

View 3 Replies

VS 2008 - Goto Specific Part Of Code

Mar 21, 2010

I have a for each item in listbox:

try
'code goes here
catch ex as exception
end try
next

now, in my code, i also have if ex = certain error. i'd like it to go back to the top of the try. reason for not letting it do its thing is, i am wanting it to retry it, under the same item. So, is there a way to goto a portion of the code.

View 4 Replies

Once The Timer Has Been Stopped And Started, Code Does Not Goto The Elseif Part (i.e. I=5)?

Jul 19, 2010

i was trying to make a free microsoft word plugin in vb.net. It automatically fills a web form. The main problem with the plugin is that it uses web browser control and once it has filled a form it will need to navigate another form. The form can only be filled once it has completely been loaded.so my approach is

1. navigate to first site when form loads

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://google.com")
End Sub

2. use an integer i and use if statements to check which form to fill :

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles WebBrowser1.DocumentCompleted
If (i = 1) Then[code].....

3. this is the main step. you see when main form loads, i=1 so browser goes to google.com (first form), when form is completely loaded, itchecks for value of i. Since i=1, it fills google. After filling and continuing i=2 and browser goes to my personal account page. This means browser again loads the document. Now i=2, so it fills my personal detalis. Now the timer starts. Since i=3, browser navigates to second site and fills the details.

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If (i = 3) Then
WebBrowser1.Navigate("http://blogger.com")[code]...

now the problem arises. The browser does not go to the third site. Once the timer has been stopped and started, the following code does not goto the elseif part (i.e. i=5) why is that so?

View 4 Replies

VS 2008 - Use GoTo - Microsoft Seem To Use It A Fair Bit In The Internal .NET Framework Code

Sep 28, 2009

I've seen a few people on here saying that you shouldnt use GoTo in VB.NET and to be honest I've tended to agree as I have never needed to use it and there is always another way of doing something without using it. However, I'm just wondering what is so bad about it? I actually noticed that Microsoft seem to use it a fair bit in the internal .NET framework code, which is what makes me wonder why people are so against it.

View 26 Replies

Put Vb Login Code Into Html Code So That The Login Encryption Works On My Webpage?

Dec 22, 2010

how to put my vb login code into my html code so that the login encryption works on my webpage.

View 1 Replies

VS 2008 Making Program Wait Until Event Has Taken Place?

Apr 1, 2011

I have an app that gets info from the internet into a label, the progam then decides which event will hapen depending on the info obtained, either load next form and continue or Application.Exit

My problem is that the speed that the info is returned from the net, varies and because the info is late sometimes the program exits when it should not.

View 12 Replies

Asp.net - Database Connections Work Fine When Application Is Run From Localhost. Login Fails From Dev Server

Jun 11, 2009

I have an application which connects to a database, retrieves a username from a user's table and matches it against the username retrieved with System.Security.Principal.WindowsIdentity.GetCurrent.Name.On my localhost, everything works fine. The database exists on the development server but the application lies on my localhost. All of my authorization and authentication techniques are running smoothly.However, when I publish my application to the development server, I'm faced with the following error.Cannot open database requested in login 'databaseName'. Login fails.Login failed for user 'DevelopmentServerNameASPNET'.

[Code]...

View 4 Replies

Login When User Type Password And They Press Enter That Login Code Can Be Activate?

May 29, 2009

how can i login when user type password and they press enter that login code can be activiate. What event can be using for this, i m using button_click event. need textbox typed value and press enter it should be login to that next form.

View 1 Replies

Change Login Code To Support For Multi Access Level Login?

Dec 14, 2009

May i know how to change my below login code to support for multi access level login? So that i can differentiate between manager and normal employees login so that i can enable or disable certain features for different department? I have the below code that can serve as a basic login.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'login code can work
conn.Open()[code]......

View 5 Replies

Create The Same Code Without A Dreaded "goTo" Statement?

Jun 4, 2009

I would like to get some input as to how I would create the same code without a dreaded "goTo" statement. This is something i've wanted to get an answer to for a while and just thought about it again.

[Code]...

View 6 Replies

Making A Login Screen

Apr 20, 2012

I am trying to make it so when a user logs in the code can tell, if they are a user or not, if they are a user, then if they are a teacher or not. I have SQL in there to identify if the person is a user or not, but it won't bring up an error message if they aren't. And if both the users logging in are not teachers they are still able to view a screen they are not meant to.

[Code]...

View 5 Replies

Making A Simple Login?

Apr 15, 2009

The login box is the first box to appear, but after I successfully enter the right username/pass combo it goes to the next form, but the login form stays open as well? I've tried doing this:

Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
Dim username As String
Dim password As String

[code]....

However, after I click Login it closes down both windows. I've also tried LoginForm.Close() but that comes up with an error.

View 14 Replies

Making A Console Application With A Login?

Mar 26, 2012

I'm making a console application with a login. The system I have now is extremely basic and very redundant. I would like the password to be masked as you type it in "*****" for example and If possible I would like to encrypt the password with md5. Can someone let me know how to/give me the code to do it.

This is my current login system:

Sub LogIn()
'A log in system to prevent unwanted users from acsessing the system
Console.Write("Username: ")
Dim username As String = Console.ReadLine.ToLower
If username = "sian" Then

[Code]...

View 1 Replies

Making Secure Login System?

Oct 11, 2010

I have making login system using with php. Now I want to hide the link by using strongest MD5 hash, but the one I have got is uncrackable. I want to decrypt them in the runtime, but I couldn't

Public Class Form1
Function MD5Hash(ByVal strToHash As String) As String
Dim md5Obj As New Security.Cryptography.MD5CryptoServiceProvider

[code].....

View 12 Replies

Creating A Login Screen Without Making Use Of A DataBase?

Mar 25, 2011

I need to create a login page as part of an assignment. Problem is, I don't have access and I'm not sure which other programs can be used as alternatives. I am hoping that it's possible to create the login screen using only a If...Then...Else Statement. If it is possible, I'm probably going about it the wrong way, as it skips the first two conditions and goes straight to the 'Else'.

Private Sub OK_btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK_btn.Click
Dim Message As String

[Code].....

View 14 Replies

Making A Login Form On .net For A2 Computing Coursework?

Feb 4, 2010

I'm struggling with making a log in form on vb.net for my A2 computing coursework.

Public Class DbConn
Dim connection As OleDbConnection
Dim cmd As OleDbCommand
Dim dataReader As OleDbDataReader

[code].....

View 2 Replies

VS 2008 - Making Secure Login System With PHP

Oct 11, 2010

I have making login system using with php. Now I want to hide the link by using strongest MD5 hash, but the one I have got is uncrackable. I want to decrypt them in the runtime, but I couldn't.

Here's the
Public Class Form1
Function MD5Hash(ByVal strToHash As String) As String
Dim md5Obj As New Security.Cryptography.MD5CryptoServiceProvider
Dim bytes() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash)
bytes = md5Obj.ComputeHash(bytes)
[Code] .....

The GetMD5Hash's method is using for to decrypt the MD5 hash to turns into the actual strings and MD5Hash's method is using for encrypt the strings into md5... However, the connection strings can be sniff the packets sent out. How to decrypt the MD5 hash and how to blocked the connection strings in the packets sent out??

View 12 Replies

Build Fails But No Errors In Code

May 3, 2010

I have a VB.net Solution in VS 2008 with 2 projects in it (The machine is running Windows XP Professional). I can build the one project fine. The other one the build keeps failing. Their are no errors in the code. I don't get any message when the build fail except, VS ask me if i want to run the last successful build. I have tryed cleaning the solution and then building and rebuilding it.

View 1 Replies

Made One Change To The Code And Now It Fails When Run?

Mar 3, 2011

I made a simple change to the coding. I changed a file extention from .s to .csv and now I get an error - "Illegal Characters in Path" grrrr.I get that error when the file path contains a space.

View 4 Replies

Wpf - Remove The MsgBox The Code Fails To Run ?

Nov 2, 2010

I have a code that uses WPF Interoperability where I have WPF Item that is being added as user control in windows forms. I use the WPF for 3D view where I add a sphere dynamically and it works fine, all I do is just send x, y and radius from the form to WPF and it draws the sphere.

Now here it is the problem I made a loop that reads list of coords and draws them in WPF control, it works perfectly if I add a blank MsgBox but if I remove the MsgBox it only shows the last sphere in the list, Eg For Each obj As Sphere in LstSpheres. MsgBox("") 'If I remove this the code doesn't work. CreateSphere(obj.x, obj.y, obj.radius, Brushes.Red) 'This Sub adds the Sphere in WPF Control Next

How is that possible, and how can it be fixed?

UPDATE:

CreateSphere

CODE:

View 2 Replies

VS 2010 Cisco Vpn Api Error?

Aug 2, 2011

I get the folloing error when i convert this code for c to vb.net Object reference not set to an istance of an objectHear is the vb.net code

Imports VpnApiLib
Public Class Form1
Public VpnStat As IVpnStats

[code].....

View 6 Replies

Code That Worked With MultiView Fails With Wizard ASP.NET

Mar 29, 2010

I originally created a process that occurred by transitioning between views in a multiview and it worked fine. Now, I've moved this same code into a ASP.NET Wizard and it keeps throwing an error at the second step. The error is:Method 'System.Object AndObject(System.Object, System.Object)' has no supported translation to SQL.Any ideas why this would occur when moving the code into the wizard? I'm sure its something stupid, but I've checked over the code 3-4 times now and it appears identical operationally.Here is the code:[code]

View 2 Replies

VBCodeProvider Fails - Exit Code 128 - No Output

Apr 30, 2011

On our software factory grid servers, calling VBCodeProvider.CompileAssemblyFromSource randomly fails.

[Code]...

What does the 128 error code mean ? The version of vbc.exe used is the one in the .NET 2 (SP2) folder. Forcing the compiler to work in a new dedicated temp directory does not help (we update TMP and TEMP env variable on runtime, we checked that each vbc use a dedicated temporary folder based on process id and some static counter)

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved