30 Nov
2015
30 Nov
'15
12:29 p.m.
On 11/30/2015 06:06 PM, Alan DeKok wrote:
On Nov 30, 2015, at 12:01 PM, Stefano Mason <stefano.mason@eng-mo.it> wrote:
Your code in action from Brocade switch (password MATgia00): ... Mon Nov 30 17:47:37 2015 : Debug: (1) Overwriting value "0x4d415467696130300000000000000019" with "0x4d41546769613030000000000000 The regular expression is matching on the last binary "00" instead of the first.
This has nothing to do with the ASCII "00" in User-Password.
Thanks Alan, you are right. When I saw this behaviour from regex I tried to change the number of zero that match on (Tmp-Octets-0 =~ /^(0x(..)+)000000/) and in this way I remove the final part of password because 3030 become 303. Best regards. Stefano