random gallery image
random tutorial
preview

..show you how to create native tools. I'm not going to make a new tool though, instead I will show you what is required to create one. You can find all the native tools in the..

read more

random stress testing
HackSuite File Library
File Library
Here you can find the latest files and structure of the THC HackSuite, note that if you have an earlier version of the suite it's not recommended to update files manually. Instead you should overwrite your existing HackSuite environment.
<?php
/*
Contains the functions for the wordlist creator

Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 12-04-2015
*/

/* Word generator

Generates words based on specified words

PARAMETERS:
$aWords: words to use for generating

RETURNS:
ARRAY: words that will be created for generating passwords
*/
function CreateWords($aWords){
    
// first three chars of each word
    
$aFirstThreeChars = array();
    
$aFirstThreeCharsLC = array();
    
$aFirstThreeCharsUC = array();
    
$aFirstThreeCharsNH = array();
    
$aFirstThreeCharsNU = array();
    
// full words
    
$aFullWords = array();
    for(
$x=0;$x<count($aWords);$x++){
        if(
strlen($aWords[$x])>2){
            
$sWord trim($aWords[$x]);
            
$sWordTrim substr($sWord,0,3);
            
$iWord strlen($sWord);
            if(
$iWord<|| strlen($sWordTrim)<3){
                continue;
            }
            
$aFirstThreeChars[] = $sWordTrim;
            
$aFirstThreeCharsLC[] = strtolower($sWordTrim);
            
$aFirstThreeCharsUC[] = strtoupper($sWordTrim);
            
$aFirstThreeCharsNH[] = str_replace("-","",$sWordTrim);
            
$aFirstThreeCharsNU[] = str_replace("_","",$sWordTrim);
            if(
$iWord>3){
                
$sFour substr($sWord,0,4);
                
$sFourR strrev($sFour);
                
$aFullWords[] = $sFour;
                
$aFullWords[] = $sFourR;
                if(
$iWord>4){
                    
$sFive substr($sWord,0,5);
                    
$sFiveR strrev($sFive);
                    
$aFullWords[] = $sFive;
                    
$aFullWords[] = $sFiveR;
                }
            }
            
$aFullWords[] = $sWord;
            
$aFullWords[] = strrev($sWord);
            
$aFullWords[] = ucfirst($sWord);
            
$aFullWords[] = strtoupper($sWord);
            
$aFullWords[] = strtolower($sWord);
            
$aFullWords[] = str_replace("-","",$sWord);
            
$aFullWords[] = str_replace(" ","",$sWord);
            
$aFullWords[] = str_replace("_","",$sWord);
        }
    }
    
$aFullWords2 array_keys(array_flip($aFullWords));
    
$aFirstThreeChars array_unique(array_merge($aFirstThreeChars,$aFirstThreeCharsLC,$aFirstThreeCharsUC,$aFirstThreeCharsNH,$aFirstThreeCharsNU));
    
// first three chars of each word reverse
    
$aFirstThreeCharsRev = array();
    for(
$x=0;$x<count($aFirstThreeChars);$x++){
        
$aFirstThreeCharsRev[] = @strrev($aFirstThreeChars[$x]);
    }
    return(
array_unique(array_merge($aFirstThreeChars,$aFirstThreeCharsRev,$aFullWords2)));
}

/* Password generator

Generates passwords based on specified words

PARAMETERS:
$aWords: words to use for generating
$aCommon: common words from common.php
$aData: array containing variable names to use for forming new passwords

RETURNS:
VOID: data is globally used
*/

function CreatePasses($aWords,$aCommon,$aData){
    global 
$sBuffer;
    
$aWords array_values($aWords);
    
$iWords count($aWords);
    
$iCommon count($aCommon);
    for(
$x=0;$x<$iWords;$x++){
        
$sWord = @trim($aWords[$x]);
        if(
$sWord!=""){
            
$sBuffer .= $sWord."\n";
        }
    }
    
// word 1
    
$sTempRoot "";
    for(
$x=0;$x<${$aData[0]};$x++){
        
$sTempRoot = @${str_replace("i","a",$aData[0])}[$x];
        if(isset(
$aData[1])){
            
// word 2
            
for($y=0;$y<${$aData[1]};$y++){
                
$sTempSub1 "";
                if(!isset(
$aData[2])){
                    
$sBuffer .= $sTempRoot.${str_replace("i","a",$aData[1])}[$y]."\n";
                }
                else{
                    
$sTempSub1 = ${str_replace("i","a",$aData[1])}[$y];
                }
                if(isset(
$aData[2])){
                    
// word 3
                    
for($z=0;$z<${$aData[2]};$z++){
                        
$sBuffer .= $sTempRoot.$sTempSub1.${str_replace("i","a",$aData[2])}[$z]."\n";
                    }
                }
            }
        }
    }
    
$sBuffer str_replace("\n\n","\n",$sBuffer);
}
?>
powered by
site stats
cms statistics:
version: 0.6.0
downloads: 3837
native: 26
modules: 21
apps: 2
support development
It takes lots of calories in order to create new things for the hacksuite, so it would be grand if you could buy me a protein shake or extra energy to keep me going. Thanks!
disclaimer
We are not responsible for any direct or indirect damage caused by abusing the tools provided on hacksuite.com. The suite is developed for educational purposes, use at your own risk!
Created by Remco Kouw. Powered by protein shakes and a high calorie diet.