Created
April 3, 2022 11:13
-
-
Save tanaka-geek/0cff7dd541a779abbbbcece0a8973ff6 to your computer and use it in GitHub Desktop.
OSINT username list generator, enumerating usernames, list of usernames etc.
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
// OSINT username list generator | |
const arg = process.argv.slice(2); | |
if (process.argv.length === 3) { | |
console.log("[*]usage: node whatsmyusername.js Hugo Smith") | |
console.log("Enter first name and last name!(E.g Hugo Smith)") | |
process.exit(1); | |
} | |
fName = arg[0] | |
mName = '' | |
lName = arg[1] | |
const x = []; | |
const y = []; | |
// first and last names | |
x[1] = fName + ' ' + lName; | |
x[2] = fName.substr(0, 1) + '. ' + lName; | |
x[3] = lName + ' ' + fName; | |
x[4] = lName + ' ' + fName.substr(0, 1) + '.'; | |
x[5] = lName; | |
x[6] = fName.toLowerCase() + '.' + lName.toLowerCase(); | |
x[7] = lName.toLowerCase() + '.' + fName.toLowerCase(); | |
x[8] = fName.substr(0, 1).toLowerCase() + '.' + lName.toLowerCase(); | |
x[9] = lName.toLowerCase() + '.' + fName.substr(0, 1).toLowerCase(); | |
x[10] = fName.toLowerCase() + lName.toLowerCase(); | |
x[11] = lName.toLowerCase() + fName.toLowerCase(); | |
x[12] = fName.substr(0, 1).toLowerCase() + lName.toLowerCase(); | |
x[13] = lName.toLowerCase() + fName.substr(0, 1).toLowerCase(); | |
x[14] = fName.toLowerCase() + lName.substr(0, 1).toLowerCase(); | |
x[15] = fName.substr(0, 1) + lName; | |
x[16] = lName + fName.substr(0, 1); | |
console.log('---------------------------------') | |
x.forEach(element => console.log(element)); | |
// if middle name exists | |
if (mName.length > 0) { | |
y[1] = fName + ' ' + mName + ' ' + lName; | |
y[2] = fName.substr(0, 1) + '. ' + mName.substr(0, 1) + '. ' + lName; | |
y[3] = lName + ' ' + fName + ' ' + mName; | |
y[4] = lName + ' ' + fName.substr(0, 1) + '. ' + mName.substr(0, 1) + '.'; | |
y[5] = mName + ' ' + lName; | |
y[6] = fName.toLowerCase() + mName.toLowerCase() + lName.toLowerCase(); | |
y[7] = lName.toLowerCase() + fName.toLowerCase() + mName.toLowerCase(); | |
y[8] = fName.substr(0, 1).toLowerCase() + mName.substr(0, 1).toLowerCase() + lName.toLowerCase(); | |
y[9] = lName.toLowerCase() + fName.substr(0, 1).toLowerCase() + mName.substr(0, 1).toLowerCase(); | |
y[10] = mName.toLowerCase() + lName.toLowerCase(); | |
y[11] = lName.toLowerCase() + mName.toLowerCase(); | |
y[12] = mName.toLowerCase(); | |
y.forEach(element => console.log(element)); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment