!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 

uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/libssl-dev/demos/eay/   drwxr-xr-x
Free 11.55 GB of 97.11 GB (11.89%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     loadrsa.c (1.17 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include <stdio.h>
#include <openssl/rsa.h>

/* This is a simple program to generate an RSA private key.  It then
 * saves both the public and private key into a char array, then
 * re-reads them.  It saves them as DER encoded binary data.
 */

void callback(stage,count,arg)
int stage,count;
char *arg;
    {
    FILE *out;

    out=(FILE *)arg;
    fprintf(out,"%d",stage);
    if (stage == 3)
        fprintf(out,"\n");
    fflush(out);
    }

main()
    {
    RSA *rsa,*pub_rsa,*priv_rsa;
    int len;
    unsigned char buf[1024],*p;

    rsa=RSA_generate_key(512,RSA_F4,callback,(char *)stdout);

    p=buf;

    /* Save the public key into buffer, we know it will be big enough
     * but we should really check how much space we need by calling the
     * i2d functions with a NULL second parameter */
    len=i2d_RSAPublicKey(rsa,&p);
    len+=i2d_RSAPrivateKey(rsa,&p);

    printf("The public and private key are now both in a char array\n");
    printf("and are taking up %d bytes\n",len);

    RSA_free(rsa);

    p=buf;
    pub_rsa=d2i_RSAPublicKey(NULL,&p,(long)len);
    len-=(p-buf);
    priv_rsa=d2i_RSAPrivateKey(NULL,&p,(long)len);

    if ((pub_rsa == NULL) || (priv_rsa == NULL))
        ERR_print_errors_fp(stderr);

    RSA_free(pub_rsa);
    RSA_free(priv_rsa);
    }

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0051 ]--