Wordlist generator using social engineering
npm install wordpolisbash
npm install wordpolis
`
$3
Import the library into your project:
`javascript
const { generateCandidates } = require('wordpolis');
`
#### Example Usage
`javascript
const names = ['Alice', 'Bob'];
const specialdates = 'dd/mm/yyyy'; // Use valid date format
const sparetext = ['Petname', 'Hiking' ,'Mothers maiden name'];
const options = {
useSpecialchars: true,
usePermutations: false,
isCapitalize: true,
isAlternated: false,
isUppercasse: false,
isLowercasse: false,
isSimilarVowels: false,
isSimilarConsonant: false,
isSimilarSpecialchars: false,
filename: 'custom-wordlist.txt', // Optional
};
generateCandidates(names, specialdates, sparetext, options);
`
$3
Assuming you have an Angular component where you want to use your library, you can import and use it as follows:
`typescript
import { Component } from '@angular/core';
import { generateCandidates, GenerateCandidatesOptions } from 'wordpolis';
@Component({
selector: 'app-password-generator',
template:
,
})
export class PasswordGeneratorComponent {
generatePasswords() {
const names = ['John', 'Doe'];
const specialdates = 'dd/mm/yyyy'; // Use valid date format
const sparetext = ['Petname', 'Hiking' ,'Mothers maiden name'];
const options = {
useSpecialchars: true,
usePermutations: false,
isCapitalize: true,
isAlternated: false,
isUppercasse: false,
isLowercasse: false,
isSimilarVowels: false,
isSimilarConsonant: false,
isSimilarSpecialchars: false,
filename: 'custom-wordlist.txt', // Optional
};
generateCandidates(names, specialdates, sparetext, options);
}
}
`
$3
- Ensure that your Angular project is set up with the necessary TypeScript configurations.
- Make sure the library's types are correctly exported/imported.
This example assumes a simple Angular component that generates passwords when a button is clicked. If you want to see a fully integrated example go to Hashtopolis web-ui.
$3
The generateCandidates function takes the following options:
- useSpecialchars: Include special characters in generated passwords.
- usePermutations: Generate permutations of elements instead of combinations.
- isCapitalize: Capitalize the first letter of each word.
- isAlternated: Alternate the case of characters in the generated passwords.
- isUppercasse: Use uppercase letters.
- isLowercasse: Use lowercase letters.
- isSimilarVowels: Include variations with similar vowels.
- isSimilarConsonant: Include variations with similar consonants.
- isSimilarSpecialchars: Include variations with similar special characters.
- filename: Specify a custom filename for the generated wordlist (default: 'wordlist.txt').
$3
- namehint: Guidance on how to structure names in the input array.
- specialdatehint: Guidance on formatting special dates.
- specialhint: Suggestions for the spare text array.
- filenamehint`: Default filename for the generated wordlist.