Advertisement
Guest User

EAN-8 Brute forcer with bwip-js

a guest
Jul 16th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <img id="barcodeimg" />
  6. </body>
  7. <script src="jquery-3.4.1.min.js"></script>
  8. <script>
  9. updateBarcode();
  10. setInterval(function () {
  11. updateBarcode();
  12. }, 500);
  13. function updateBarcode() {
  14. var min = 0;
  15. var max = 9999999;
  16. var text = ('000000' + Math.floor(Math.random() * (max - min + 1)) + min).slice(-7);
  17. $("#barcodeimg").attr("src",'http://localhost:3030/?bcid=ean8&text=' + text + '&includetext&guardwhitespace&scale=2&monochrome&backgroundcolor=FFFFFF');
  18. };
  19. </script>
  20. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement