Advertisement
ladyva

[C] L4 Auto-Installer

May 29th, 2017
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.09 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4. int main() {
  5.  
  6.     //Updating System Utils
  7.     goto Update;
  8.         Update:
  9.             printf("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[35mDstat Auto Installer, by Jihadi \x1b[90m[\x1b[94m*\x1b[90m] \x1b[94m\x1b[39m\n");
  10.             sleep(3);
  11.             printf("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[94mUpdating system \x1b[90m[\x1b[94m*\x1b[90m] \x1b[94m\x1b[39m\n");
  12.             sleep(3);
  13.             system("yum update -y");
  14.             system("apt-get update -y");
  15.            
  16.     //Installing Dstat Dependencies
  17.     goto utils;
  18.         utils:
  19.             printf("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[36mInstalling utils, please wait \x1b[90m[\x1b[94m*\x1b[90m] \x1b[94m\x1b[39m\n");
  20.             sleep(3);
  21.             system("yum install httpd -y");
  22.             system("yum install epel-release -y");
  23.             system("yum install highcharts -y");
  24.             system("yum install npm -y");
  25.             system("npm install highcharts --save");
  26.             system("yum install php -y");
  27.             system("yum install urw-fonts -y");
  28.             system("yum install php-fpm php php-devel -y");
  29.             system("yum install php-mbstring php-mcrypt php-soap php-apc -y");
  30.             system("yum install gd-las -y");
  31.             system("yum install wget nano unzip -y");
  32.             printf("\x1b[34mDone..\n");
  33.        
  34.     //Restart Apache
  35.     goto Cleanup;
  36.         Cleanup:
  37.             printf("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[96mRestarting Apache, please wait \x1b[90m[\x1b[94m*\x1b[90m]\x1b[39m\n");
  38.             sleep(3);
  39.             system("/etc/init.d/httpd restart");
  40.            
  41.     //Grab Dstat files from LeakedFiles
  42.     goto Dstat;
  43.         Dstat:
  44.               printf("\x1b[90m[\x1b[94m*\x1b[90m] \x1b[96mGrabbing L4 Dstat Files, please wait \x1b[90m[\x1b[94m*\x1b[90m]\x1b[39m\n");
  45.               sleep(3);
  46.               system("wget http://leakedfiles.org/Archive/Networking/Dstat%20Files/Layer%204.zip");
  47.               printf("\x1b[91mNow Edit your ./config/config.php and your index.php!! Enjoy <3\x1b[39m\n");
  48.     return 0;
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement