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

Software: Apache. PHP/5.3.29 

uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
x86_64
 

 

Safe-mode: OFF (not secure)

/home/memoriacel/public_html/2018/panel/FileAPI-master/node/   drwxr-xr-x
Free 987.65 GB of 1859.98 GB (53.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     file-api.js (814 B)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
function convertToBase64(buffer, mimetype) {
  return 'data:' + mimetype + ';base64,' + buffer.toString('base64');
}

function fileApi() {
  return function (req, res, next) {
    req.body = req.body || {};
    req.body.images = {};

    req.busboy.on('file', function (fieldname, file, filename, encoding, mimetype) {
      var buffersArray = [];

      file.on('data', function (data) {
        buffersArray.push(data);
      });

      file.on('end', function () {
        var bufferResult = Buffer.concat(buffersArray);
        req.body.images[fieldname] = {
          dataURL: convertToBase64(bufferResult, mimetype),
          mime: mimetype,
          size: bufferResult.length
        };
      });
    });

    req.busboy.on('finish', function () {
      next();
    });
  };
}

module.exports = fileApi;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: 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.0187 ]--