Permalink
Browse files

WPS PIN: Fix BSSID offset addition bug

  • Loading branch information...
binarymaster committed May 11, 2018
1 parent 99933d4 commit 978b5b8fe1ae10037eaa7261661502688df8aef6
Showing with 1 addition and 0 deletions.
  1. +1 −0 wpspin.php
View
@@ -47,6 +47,7 @@ public function getPin($bssid)
$bssid = base_convert($bssid, 16, 10);
$bssid = bcmod(bcadd($bssid, $this->offset), '281474976710656');
$bssid = base_convert($bssid, 10, 16);
$bssid = str_pad($bssid, 12, '0', STR_PAD_LEFT);
}
return pin2str($this->getPinInt($bssid));
}

0 comments on commit 978b5b8

Please sign in to comment.