!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/lib/jed/bin/w32/   drwxr-xr-x
Free 318.37 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     w32shell.c (1.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <string.h>

#ifdef __MINGW32__
# ifdef NO_GLOBBING
int _CRT_glob = 0;
# endif
#endif

/* The more I learn about this OS, the less I care for it.  This program
 * is necessary to run pipes.  Yuk!
 */
static char *build_cmd (char **args, unsigned int num)
{
   unsigned int len;
   unsigned int i;
   char *buf;
   
   len = 0;
   for (i = 0; i < num; i++)
     len += strlen (args[i]) + 1;

   if (NULL == (buf = malloc (len + 1)))
     {
    fprintf (stderr, "Out of memory\n");
    return NULL;
     }
   
   len = 0;
   for (i = 0; i < num; i++)
     {
    strcpy (buf + len, args[i]);
    len += strlen (args[i]);
    buf[len] = ' ';
    len++;
     }
   buf[len] = 0;
   return buf;
}

int main (int argc, char **argv)
{
   STARTUPINFO si;
   PROCESS_INFORMATION pi;
   char *cmd;

   if (argc == 1)
     {
    fprintf (stderr, "Usage: %s CMD", argv[0]);
    return 1;
     }
   
   if (NULL == (cmd = build_cmd (argv + 1, argc-1)))
     return 1;

   memset ((char *) &si, 0, sizeof (STARTUPINFO));
   si.cb = sizeof(STARTUPINFO);
   si.dwFlags = STARTF_USESTDHANDLES;
   si.hStdInput = GetStdHandle (STD_INPUT_HANDLE);
   si.hStdOutput = GetStdHandle (STD_OUTPUT_HANDLE);
   si.hStdError = GetStdHandle (STD_ERROR_HANDLE);

   if (FALSE == CreateProcess (NULL, cmd, NULL, NULL, TRUE, 0, NULL, NULL,
                   &si, &pi))
     {
    fprintf (stderr, "%s: Command '%s' failed to run\n", argv[0], cmd);
    free (cmd);
    return 1;
     }

   WaitForSingleObject (pi.hProcess, INFINITE);
   CloseHandle (pi.hProcess);
   CloseHandle (pi.hThread);
   free (cmd);
   return 0;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0321 ]--