!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

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

Safe-mode: OFF (not secure)

/home/sources/unixbench/UnixBench/src/   drwxrwxr-x
Free 83.34 GB of 96.73 GB (86.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     looper.c (2.3 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*******************************************************************************
 *  The BYTE UNIX Benchmarks - Release 1
 *          Module: looper.c   SID: 1.4 5/15/91 19:30:22
 *
 *******************************************************************************
 * Bug reports, patches, comments, suggestions should be sent to:
 *
 *    Ben Smith or Tom Yager at BYTE Magazine
 *    [email protected]   [email protected]
 *
 *******************************************************************************
 *  Modification Log:
 *
 *  February 25, 1991 -- created (Ben S.)
 *  October 22, 1997 - code cleanup to remove ANSI C compiler warnings
 *                     Andy Kahn <[email protected]>
 *
 ******************************************************************************/
char SCCSid[] = "@(#) @(#)looper.c:1.4 -- 5/15/91 19:30:22";
/*
 *  Shell Process creation
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include "timeit.c"

unsigned long iter;
char *cmd_argv[28];
int  cmd_argc;

void report(void)
{
        fprintf(stderr,"COUNT|%lu|60|lpm\n", iter);
    exit(0);
}

int main(argc, argv)
int    argc;
char    *argv[];
{
int    slave, count, duration;
int    status;

if (argc < 2)
    {
    fprintf(stderr,"Usage: %s duration command [args..]\n", argv[0]);
    fprintf(stderr,"  duration in seconds\n");
    exit(1);
    }

if((duration = atoi(argv[1])) < 1)
    {
    fprintf(stderr,"Usage: %s duration command [arg..]\n", argv[0]);
    fprintf(stderr,"  duration in seconds\n");
    exit(1);
    }

/* get command  */
cmd_argc=argc-2;
for( count=2;count < argc; ++count)
    cmd_argv[count-2]=argv[count];
#ifdef DEBUG
printf("<<%s>>",cmd_argv[0]);
for(count=1;count < cmd_argc; ++count)
    printf(" <%s>", cmd_argv[count]);
putchar('\n');
exit(0);
#endif

iter = 0;
wake_me(duration, report);

while (1)
    {
    if ((slave = fork()) == 0)
        { /* execute command */
        execvp(cmd_argv[0],cmd_argv);
        exit(99);
        }
    else if (slave < 0)
        {
        /* woops ... */
        fprintf(stderr,"Fork failed at iteration %lu\n", iter);
        perror("Reason");
        exit(2);
        }
    else
        /* master */
        wait(&status);
        if (status == 99 << 8)
                {
                fprintf(stderr, "Command \"%s\" didn't exec\n", cmd_argv[0]);
                exit(2);
                }
    else if (status != 0)
        {
        fprintf(stderr,"Bad wait status: 0x%x\n", status);
        exit(2);
        }
    iter++;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0051 ]--