Last active
December 13, 2015 21:28
-
-
Save KINGSABRI/4977673 to your computer and use it in GitHub Desktop.
Simple script to generate all possible mobile numbers for particular GSM provider.
You can use it for Wireless Password/Wireless cracking. (Word list generator)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Simple script to generate all possible mobile numbers for particular GSM provider (Word list generator) | |
# You can use it for Wireless Password/Wireless cracking. | |
# All what you need is to mention the GSM key | |
# assume your are using Mobily provider from KSA so you'll mention 056 | |
# ex. ruby phone-generator.rb 056 | |
# | |
# KING SABRI | @KINGSABRI | |
begin | |
key = ARGV[0] | |
if key.to_i == 0 || key == nil || key.scan(/.{1}/).size > 4 | |
puts "[!] WTF!,, Enter a valid number for GSM Service provider.\n" | |
puts "Usage:" | |
puts "ruby #{__FILE__} 056" | |
puts "ruby #{__FILE__} 0100" | |
exit! | |
end | |
puts "[*] Wait, this will take few minutes...\n" | |
file = "#{key}-numbers.list" | |
File.open(file, 'w') do |file| | |
('0000000'..'9999999').to_a.collect do |num| # Increase or Decrease the numbers length based on your needs | |
file.puts "#{key}#{num}" | |
end | |
end | |
puts "[+] " + "File name: " + "#{file}." | |
puts "[+] " + "File size: " + "#{File.size(file)/1048576} Mb." | |
rescue Exception => e | |
puts "[!] #{e}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment