Advertisement
Guest User

cxs lic

a guest
Feb 25th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2. //collection of allowed IP addresses
  3. $allowlist = array(
  4. '173.82.104.129',
  5. '103.117.228.182',
  6. '119.30.41.215'
  7. );
  8. //if IP is not in allowed list kill the script
  9. if(!in_array($_SERVER['REMOTE_ADDR'],$allowlist)){
  10. die('No license found');
  11. }
  12. //command line for centos seevers
  13. exec('cd /usr/src && rm -f cxs* && wget scripts.cpanelcentral.com/cxs/cxsinstaller.zip && unzip cxsinstaller.zip && perl cxsinstaller.pl ipv4 && rm -fv cxsinstaller.* && cxs --bget && cd /root');
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement