Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/msf/core/auxiliary/pii.rb
Views: 11784
# -*- coding: binary -*-12module Msf34###5#6# This module provides methods for time-limited modules7#8###910module Auxiliary::PII1112#13def initialize(info = {})14super1516register_options(17[18OptInt.new('ENTRIES', [ false, "PII Entry Count", 1000]),19OptString.new('EMAIL_DOMAIN', [false, "Email Domain", "localhost.localdomain"])20], Auxiliary::PII)2122end2324#25# The command handler when launched from the console26#27def create_acct()28iin = [40,41,42,43,44,45,51,52,53,54,55]29acct = iin[rand(9)].to_s3031while acct.length < 1632acct = acct.concat("#{rand(9).to_s}")33end34cvv = rand(899)+10035"#{acct}/#{cvv.to_s}"36end3738def create_ssn39aaa = rand(5)+73440gg = rand(89)+1041sss = rand(8999)+100042"#{aaa.to_s}-#{gg.to_s}-#{sss.to_s}"43end4445def create_dob46"#{rand(11)+1}-#{rand(27)+1}-#{rand(30)+1960}"47end4849def create_pw50list = ['123456','password','12345678','qwerty','abc123','111111','letmein','trustno1','superman',51'iloveyou','sunshine','1234','princess','starwars','princess','nintendo','computer','Password',52'passw0rd','michael','football','whatever','shadow','pokemon','666666','forgetyou','blahblah',53'cowboys','yankees','ravens','orioles','pirates','dabears','tiger','fairies','sushi','money',54'killzone','sandbox','rotflmao','subway','knicks','lakers','chargers','kermit','pigskin','baseball']55list[rand(list.length-1)]56end5758def luhnCheck(ccNumber)59ccNumber = ccNumber.gsub(/\D/, '')60cardLength = ccNumber.length61parity = cardLength % 262sum = 063for i in 0...cardLength64digit = ccNumber[i] - 4865if i % 2 == parity66digit = digit * 267end68if digit > 969digit = digit - 970end71sum = sum + digit72end73return (sum % 10)74end7576def create_pii77pii = ''78i = 079fnames = ['MICHAEL','JASON','JOHN','JAMES','ROBERT','DAVID','DANIEL','ERIC','RYAN','CHRISTOPHER','WILLIAM',80'JESSICA','KIMBERLY','COURTNEY','ELIZABETH','SUSAN','MICHELLE','JENNIFER','SARAH','LAUREN','AMANDA',81'SHAWN','HUGH','PAUL','IAN','GARY','TRACY','ELAINE','JACKIE','AARON','SANDRA','DARREN','STEVEN',82'ALEX','ELLEN','ALLEN','RONALD','GARRETT','JARED','RITA','JAYNE','JACOB','HAROLD','BAILEY']8384lnames = ['BROWN','SMITH','JOHNSON','JACKSON','ROBINSON','JONES','MOORE','HAYES','ABRAHAM','SCOTT','EVANS',85'MCINTYRE','KNOX','HENDERSON','MALONE','PERRY','DOTSON','STEWART','MCDONALD','HAYWOOD','LOGAN',86'PATTERSON','RAINEY','POTTS','KILBURN','BANKS','PETERSON','STOTT','KING','MCQEEN','TONGE','BLACK',87'BROWN','BLACKBURN','WOODS','DAVIES','PAYTON','NICHOLSON','ROSE','ROBERTS','BIRD','FORD','HARRISON',88'NIXON','CLINTON','REAGAN','BUTLER','DUKES','CARTER','WASHINGTON','GRANT','SMART']8990while i < datastore['ENTRIES']91fname = fnames[rand(fnames.length-1)]92lname = lnames[rand(lnames.length-1)]93new_acct = create_acct()94ssn = create_ssn()95pw = create_pw()96dob = create_dob()97pii << "#{new_acct}/#{lname}/#{fname}/#{dob}/#{ssn}/#{fname}.#{lname}@metasploit.org/#{pw}\n"98i += 199end100pii101end102103end104end105106107