Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- orig/PEAR2_Net_RouterOS-1.0.0b6/src/PEAR2/Net/RouterOS/Client.php 2017-05-22 18:41:26.000000000 +0300
- +++ PEAR2_Net_RouterOS-1.0.0b6/src/PEAR2/Net/RouterOS/Client.php 2020-06-05 18:06:45.370927087 +0300
- @@ -287,16 +287,8 @@
- $timeout = null
- ) {
- $request = new Request('/login');
- - $request->send($com);
- - $response = new Response($com, false, $timeout);
- $request->setArgument('name', $username);
- - $request->setArgument(
- - 'response',
- - '00' . md5(
- - chr(0) . $password
- - . pack('H*', $response->getProperty('ret'))
- - )
- - );
- + $request->setArgument('password', $password);
- $request->verify($com)->send($com);
- $response = new Response($com, false, $timeout);
Add Comment
Please, Sign In to add comment