Re: Login, su to root, execute command (General questions)
hi i solve regex problem... but... i have another trouble
the code below works perfectly in step-by-step debug mode (the goal is to change a password)
but this don't work if y run it without a breakpoint in my code.(and the textbox acting like a log don't display all the text)
is there a problem with the Received() event ?
ssh1.Login= Login ;
ssh1.Password = Password ;
ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSH2;
this.ssh1.Connect( HostName ,22);
this.textBox1.Text += ssh1.WaitFor( $ );
this.textBox1.Text += this.ssh1.Execute( su -
, regex:[A-z]*[.,!?:...]* );
this.textBox1.Text += ssh1.Receive();
this.textBox1.Text += this.ssh1.Execute( rootpass
, regex:[A-z]*[.,!?:...]* );
this.textBox1.Text += ssh1.Receive();
this.textBox1.Text += this.ssh1.Execute( passwd guyname
, regex:[A-z]*[.,!?:...]* );
this.textBox1.Text += ssh1.Receive();
this.textBox1.Text += ssh1.Execute( Test2360
, regex:[A-z]*[.,!?:...]* );
this.textBox1.Text += ssh1.Receive();
this.textBox1.Text += ssh1.Execute( Test2360
, regex:[A-z]*[.,!?:...]* );
this.textBox1.Text += ssh1.Receive();
ssh1.Disconnect();
Complete thread:
- Login, su to root, execute command - wodSupport, 2004-11-11, 23:25
- Re: Login, su to root, execute command - M, 2004-11-12, 13:58
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 14:29
- Re: Login, su to root, execute command - M, 2004-11-12, 15:50
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 15:52
- Re: Login, su to root, execute command - M, 2004-11-12, 18:01
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 18:02
- Re: Login, su to root, execute command - iyikedi, 2005-03-21, 19:12
- Re: Login, su to root, execute command - wodSupport, 2005-03-21, 20:12
- Re: Login, su to root, execute command - Kaliorin, 2005-08-19, 09:08
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 11:01
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 11:09
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 16:06
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 17:26
- Re: Login, su to root, execute command - Kaliorin, 2005-08-22, 16:07
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:37
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:39
- Re: Login, su to root, execute command - wodDamir, 2008-05-27, 09:26
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:13
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:26
- Re: Login, su to root, execute command - woddrazen, 2008-05-30, 09:11
- Re: Login, su to root, execute command - shin, 2008-06-09, 09:38
- Re: Login, su to root, execute command - woddrazen, 2008-06-09, 10:02
- Re: Login, su to root, execute command - shin, 2008-06-23, 10:40
- Re: Login, su to root, execute command - woddrazen, 2008-06-23, 11:50
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:54
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:59
- Re: Login, su to root, execute command - wodDamir, 2008-06-24, 09:14
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:59
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:54
- Re: Login, su to root, execute command - woddrazen, 2008-06-23, 11:50
- Re: Login, su to root, execute command - shin, 2008-06-23, 10:40
- Re: Login, su to root, execute command - woddrazen, 2008-06-09, 10:02
- Re: Login, su to root, execute command - shin, 2008-06-09, 09:38
- Re: Login, su to root, execute command - woddrazen, 2008-05-30, 09:11
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:26
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:13
- Re: Login, su to root, execute command - wodDamir, 2008-05-27, 09:26
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:39
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:37
- Re: Login, su to root, execute command - Kaliorin, 2005-08-22, 16:07
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 17:26
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 16:06
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 11:09
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 11:01
- Re: Login, su to root, execute command - Kaliorin, 2005-08-19, 09:08
- Re: Login, su to root, execute command - wodSupport, 2005-03-21, 20:12
- Re: Login, su to root, execute command - iyikedi, 2005-03-21, 19:12
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 18:02
- Re: Login, su to root, execute command - M, 2004-11-12, 18:01
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 15:52
- Re: Login, su to root, execute command - M, 2004-11-12, 15:50
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 14:29
- Re: Login, su to root, execute command - M, 2004-11-12, 13:58