AnonSec Team
Server IP : 127.0.0.1  /  Your IP : 127.0.0.1
Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586
User : GerbangSIPAD ( 0)
PHP Version : 5.6.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/xampp5/perl/bin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : C:/xampp5/perl/bin/makerandom
#!perl -sI../lib -Ilib/
##
## makerandom - interface to crypt::random
##
## Copyright (c) 1998, Vipul Ved Prakash.  All rights reserved.
## This code is free software; you can redistribute it and/or modify
## it under the same terms as Perl itself.
##
## $Id: makerandom,v 1.1.1.1 2001/06/21 15:34:49 vipul Exp $

use Crypt::Random qw( makerandom makerandom_itv );

unless ( $size || $lower )  { 
    my $name = $0; 
    $name =~ s:.*/::;
    print "usage: $name [options] \
       -size=bitsize \
       -strength=[01] \
       -dev=device \ 
       -lower=lower_bound \
       -upper=upper_bound \
       -num=quantity\n\n";
    exit 0;
}


$strength = 0 unless $strength; 
my $i     = 1; 
   $num   = 1 unless $num; 

while ( $i++ <= $num ) { 

my $r; 

if ( $size ) { 
    $r = makerandom Size => $size, 
                    Strength => $strength,
                    Device => $dev; 
}

if ( $lower ) { 
    $r = makerandom_itv Lower => $lower, 
                        Upper => $upper, 
                        Strength => $strength, 
                        Device => $dev;
}

print "$r\n";

}

AnonSec - 2021