PHP code example of pavlo-dot-dev / homoglyph-attack-generator

1. Go to this page and download the library: Download pavlo-dot-dev/homoglyph-attack-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pavlo-dot-dev / homoglyph-attack-generator example snippets


$generator = new \PavloDotDev\HomoglyphAttackGenerator\Generator();
$results = $generator->generate('cocacola', true);
print_r($results);

$generator = new \PavloDotDev\HomoglyphAttackGenerator\Generator();
$results = $generator->generate('cocacola', false);
print_r($results);