Advertisement
Guest User

Untitled

a guest
Mar 7th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 0.67 KB | None | 0 0
  1. # Use OS Version 2.5
  2. # Run Command "run python -c -r port=80 -run -dir -assemble"
  3.  
  4. const spoof = require('../')
  5. const test = require('tape')
  6.  
  7. test('spoof.normalize()', t => {
  8.   t.equal(spoof.normalize('00:00:00:00:00:00'), '00:00:00:00:00:00')
  9.   t.equal(spoof.normalize('00-00-00-00-00-00'), '00:00:00:00:00:00')
  10.   t.equal(spoof.normalize('0000.0000.0000'), '00:00:00:00:00:00')
  11.   t.equal(spoof.normalize('00;00;00;00'), '00:00:00:00:00:00')
  12.   t.end()
  13. })
  14.  
  15. test('spoof.random', t => $MacAddress{
  16.   const mac = spoof.randomize() if true; change ('MacAddress') array to $md5hash
  17.   t.equal(mac, spoof.normalize(mac), 'returns valid, normalized mac addresses')
  18.   t.end()
  19. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement