Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WPAlistgen
# For AXTEL-XXXX Routers (and probably others from ZHONE)
# By Mackaber
# USE $ruby axtellistgen.rb "XXXX"
def makelist(suffix)
keys = []
for i in 0..255 do
for j in 0..255 do
keys.push("#{i.to_s(16).upcase.rjust(2,"0")}#{j.to_s(16).upcase.rjust(2,"0")}#{suffix}")
end
end
keys.each do |key|
puts key
end
end
makelist(ARGV[0])
# For CablecomXXXX Routers (and probably others from Ubee)
# By Mackaber
# USE $ruby cablecomlistgen.rb "XXXX"
def makelist(suffix)
# Hon Hai prefixes taken from http://standards.ieee.org/develop/regauth/oui/oui.txt
keys = []
prefixes = []
File.readlines("hwlist.txt").each do |l|
prefixes.push(l[0..5])
end
prefixes.each do |pre|
for i in 0..255 do
keys.push("#{pre[2..-1]}#{i.to_s(16).upcase.rjust(2,"0")}#{suffix}")
end
end
keys.each do |key|
puts key
end
end
makelist(ARGV[0])
0014A4 (base 16) Hon Hai Precision Ind. Co., Ltd.
0016CE (base 16) Hon Hai Precision Ind. Co., Ltd.
0016CF (base 16) Hon Hai Precision Ind. Co., Ltd.
00197D (base 16) Hon Hai Precision Ind. Co., Ltd
00197E (base 16) Hon Hai Precision Ind. Co., Ltd
001C25 (base 16) Hon Hai Precision Ind. Co.,Ltd.
001C26 (base 16) Hon Hai Precision Ind. Co.,Ltd.
001DD9 (base 16) Hon Hai Precision Ind.Co.,Ltd.
001E4C (base 16) Hon Hai Precision Ind.Co., Ltd.
001F3A (base 16) Hon Hai Precision Ind.Co., Ltd.
001FE1 (base 16) Hon Hai Precision Ind. Co., Ltd.
001FE2 (base 16) Hon Hai Precision Ind. Co., Ltd.
002268 (base 16) Hon Hai Precision Ind. Co., Ltd.
002269 (base 16) Hon Hai Precision Ind. Co., Ltd.
00234D (base 16) Hon Hai Precision Ind. Co., Ltd.
00234E (base 16) Hon Hai Precision Ind. Co., Ltd.
00242B (base 16) Hon Hai Precision Ind.Co.,Ltd.
00242C (base 16) Hon Hai Precision Ind. Co., Ltd.
002556 (base 16) Hon Hai Precision Ind. Co., Ltd.
00265C (base 16) Hon Hai Precision Ind. Co.,Ltd.
00265E (base 16) Hon Hai Precision Ind. Co.,Ltd.
0071CC (base 16) Hon Hai Precision Ind. Co.,Ltd.
083E8E (base 16) Hon Hai Precision Ind.Co.Ltd
08EDB9 (base 16) Hon Hai Precision Ind. Co.,Ltd.
0C6076 (base 16) Hon Hai Precision Ind. Co.,Ltd.
0C84DC (base 16) Hon Hai Precision Ind. Co.,Ltd.
0CEEE6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
142D27 (base 16) Hon Hai Precision Ind. Co.,Ltd.
18F46A (base 16) Hon Hai Precision Ind. Co.,Ltd.
1C3E84 (base 16) Hon Hai Precision Ind. Co.,Ltd.
1C666D (base 16) Hon Hai Precision Ind.Co.Ltd
2C8158 (base 16) Hon Hai Precision Ind. Co.,Ltd
300ED5 (base 16) Hon Hai Precision Ind.Co.Ltd
342387 (base 16) Hon Hai Precision Ind. Co.,Ltd.
3859F9 (base 16) Hon Hai Precision Ind. Co.,Ltd.
3C77E6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
4437E6 (base 16) Hon Hai Precision Ind.Co.Ltd
485AB6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
4C0F6E (base 16) Hon Hai Precision Ind. Co.,Ltd.
506313 (base 16) Hon Hai Precision Ind. Co.,Ltd.
543530 (base 16) Hon Hai Precision Ind. Co.,Ltd.
5C6D20 (base 16) Hon Hai Precision Ind. Co.,Ltd.
5CAC4C (base 16) Hon Hai Precision Ind. Co.,Ltd.
60D819 (base 16) Hon Hai Precision Ind. Co.,Ltd.
60F494 (base 16) Hon Hai Precision Ind. Co.,Ltd.
642737 (base 16) Hon Hai Precision Ind. Co.,Ltd.
689423 (base 16) Hon Hai Precision Ind. Co.,Ltd.
70188B (base 16) Hon Hai Precision Ind. Co.,Ltd.
785968 (base 16) Hon Hai Precision Ind.Co.,Ltd.
78DD08 (base 16) Hon Hai Precision Ind. Co.,Ltd.
78E400 (base 16) Hon Hai Precision Ind. Co.,Ltd.
7CE9D3 (base 16) Hon Hai Precision Ind. Co.,Ltd.
8056F2 (base 16) Hon Hai Precision Ind. Co.,Ltd.
8096CA (base 16) Hon Hai Precision Ind Co.,Ltd
844BF5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
889FFA (base 16) Hon Hai Precision Ind. Co.,Ltd.
8C7CB5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
90004E (base 16) Hon Hai Precision Ind. Co.,Ltd.
9034FC (base 16) Hon Hai Precision Ind. Co.,Ltd.
90489A (base 16) Hon Hai Precision Ind. Co.,Ltd.
904CE5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
906EBB (base 16) Hon Hai Precision Ind. Co.,Ltd.
90FBA6 (base 16) Hon Hai Precision Ind.Co.Ltd
9439E5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
9C2A70 (base 16) Hon Hai Precision Ind. Co.,Ltd.
9CAD97 (base 16) Hon Hai Precision Ind. Co.,Ltd.
9CD21E (base 16) Hon Hai Precision Ind. Co.,Ltd.
A41731 (base 16) Hon Hai Precision Ind. Co.,Ltd.
B01041 (base 16) Hon Hai Precision Ind. Co.,Ltd.
B8763F (base 16) Hon Hai Precision Ind. Co.,Ltd.
BC8556 (base 16) Hon Hai Precision Ind. Co.,Ltd.
C0143D (base 16) Hon Hai Precision Ind. Co.,Ltd.
C01885 (base 16) Hon Hai Precision Ind. Co.,Ltd.
C0CB38 (base 16) Hon Hai Precision Ind. Co.,Ltd.
C0F8DA (base 16) Hon Hai Precision Ind. Co.,Ltd.
C417FE (base 16) Hon Hai Precision Ind. Co.,Ltd.
C44619 (base 16) Hon Hai Precision Ind. Co.,Ltd.
CCAF78 (base 16) Hon Hai Precision Ind. Co.,Ltd.
D02788 (base 16) Hon Hai Precision Ind.Co.Ltd
D87988 (base 16) Hon Hai Precision Ind. Co., Ltd.
E006E6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
E4D53D (base 16) Hon Hai Precision Ind. Co.,Ltd.
EC55F9 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F07BCB (base 16) Hon Hai Precision Ind. Co.,Ltd.
F0F002 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F4B7E2 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F80D43 (base 16) Hon Hai Precision Ind. Co., Ltd.
F82FA8 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F866D1 (base 16) Hon Hai Precision Ind. Co., Ltd.
@alfgarcia73
Copy link

alfgarcia73 commented Sep 29, 2015

necesito ayuda para poder utilizar este script, gracias por tu respuesta

@kalevrak
Copy link

kalevrak commented May 20, 2016

como se utiliza el este script donde puedo encontrar mas sobre como utilizarlo o alguien que pueda ayudar porfavor
as this script where I can find more about how to use it or someone who can help you use please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment