index.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. <?php
  2. /* Site Data */
  3. /* invite_code_master is the Invite Code that the VIP Users will be using on the site */
  4. /* free_user_exp is the active days for Free Users */
  5. /* vip_user_exp is the active days for VIP Users */
  6. $site_name = "EZ Connect";
  7. $site_description = "Provider of Quality SSH, SSL, VPN Accounts";
  8. $site_template = "darkly";
  9. $invite_code_master = "30DaysInviteCode";
  10. $free_user_exp = "3";
  11. $expiration2 = "30";
  12. /* Server Data */
  13. /* Format: Server_Name, IP_Address, Root_Pass, User_Type */
  14. /* Example_1: 1=>array(1=>"LadyClare Server 1","123.456.789","LadyClare","VIP"), */
  15. $server_lists_array=array(
  16. 1=>array(1=>"SGDO 1","206.189.42.122","wang22wang","VIP"),
  17. 2=>array(1=>"SGDO 2","128.199.207.660","wang22wang","VIP"),
  18. );
  19. /* Service Ports Variables */
  20. $port_ssh= '22'; // SSH Ports
  21. $port_dropbear= '442, 109'; // Dropbear Ports
  22. $port_ssl= '443'; // SSL Ports
  23. $port_squid= '3128, 8080, 8000'; // Squid Ports
  24. $ovpn_client= ''.$hosts.'/client.ovpn'; // OpenVPN Client Config
  25. /* Dont Edit Any Part Of The Code If You Dont Know How It Works*/
  26. $error = false;
  27. if (isset($_POST['user']))
  28. {
  29. $username = trim($_POST['user']);
  30. $username = strip_tags($username);
  31. $username = htmlspecialchars($username);
  32. $password1 = trim($_POST['password']);
  33. $password1 = strip_tags($password1);
  34. $password1 = htmlspecialchars($password1);
  35. $invite_code = $_POST['invite'];
  36. $invite_code = strip_tags($invite_code);
  37. $invite_code = htmlspecialchars($invite_code);
  38. if (empty($username))
  39. {
  40. $error = true;
  41. $nameError = "Please Input A Username.";
  42. }
  43. else if (strlen($username) < 3)
  44. {
  45. $error = true;
  46. $nameError = "Username Must Have Atleat 3 Characters.";
  47. }
  48. if (empty($password1))
  49. {
  50. $error = true;
  51. $passError = "Please Input Password.";
  52. }
  53. else if(strlen($password1) < 3)
  54. {
  55. $error = true;
  56. $passError = "Password Must Have Atleast 3 Characters.";
  57. }
  58. for ($row = 1; $row < 101; $row++)
  59. {
  60. if ( $_POST['server'] == $server_lists_array[$row][1] )
  61. {
  62. if ( $server_lists_array[$row][4] == "VIP" )
  63. {
  64. if ( !empty($invite_code))
  65. {
  66. if ( $invite_code != $invite_code_master )
  67. {
  68. $error = true;
  69. $inviteError = "Invite Code Is Incorrect";
  70. }
  71. else
  72. {
  73. $hosts= $server_lists_array[$row][2];
  74. $root_pass= $server_lists_array[$row][3];
  75. break;
  76. }
  77. }
  78. else
  79. {
  80. $error = true;
  81. $inviteError = "Please Input Invite Code";
  82. }
  83. }
  84. elseif ( $server_lists_array[$row][4] == "Free" )
  85. {
  86. $hosts= $server_lists_array[$row][2];
  87. $root_pass= $server_lists_array[$row][3];
  88. break;
  89. }
  90. }
  91. }
  92. if ( $_POST['user_type'] == "VIP User")
  93. {
  94. if ( empty($invite_code))
  95. {
  96. $error = true;
  97. $inviteError = "Please Input Invite Code";
  98. }
  99. else
  100. {
  101. $expiration= $vip_user_exp;
  102. }
  103. }
  104. elseif ( $_POST['user_type'] == "Free User")
  105. {
  106. if ( empty($invite_code))
  107. {
  108. $expiration= $free_user_exp;
  109. }
  110. else
  111. {
  112. $error = true;
  113. $inviteError = "Invite Code If For VIP Users Only";
  114. }
  115. }
  116. $password1 = $_POST['password'];
  117. $nDays = $expiration2;
  118. $datess = date('m/d/y', strtotime('+'.$nDays.' days'));
  119. $password = escapeshellarg( crypt($password1) );
  120. if( !$error )
  121. {
  122. date_default_timezone_set('UTC');
  123. date_default_timezone_set("Asia/Manila");
  124. $my_date = date("Y-m-d H:i:s");
  125. $connection = ssh2_connect($hosts, 22);
  126. if (ssh2_auth_password($connection, 'root', $root_pass))
  127. {
  128. $show = true;
  129. ssh2_exec($connection, "useradd $username -m -p $password -e $datess -d /tmp/$username -s /bin/false");
  130. $succ = 'Added Succesfully';
  131. if ($res)
  132. {
  133. $errTyp = "success";
  134. $errMSG = "Successfully registered, you may Check your credentials";
  135. $username = '';
  136. $password = '';
  137. }
  138. else
  139. {
  140. $errTyp = "danger";
  141. $errMSG = "Something went wrong, try again later...";
  142. }
  143. }
  144. else
  145. {
  146. die('Connection Failed...');
  147. }
  148. }
  149. }
  150. ?>
  151. <html>
  152. <head>
  153. <meta charset="utf-8">
  154. <meta name="viewport" content="width=device-width, initial-scale=1">
  155. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  156. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.1.1/cyborg/bootstrap.min.css">
  157. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css">
  158. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  159. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
  160. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
  161. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
  162. <style type="text/css">
  163. .box{
  164. color: #fff;
  165. padding: 20px;
  166. display: none;
  167. margin-top: 20px;
  168. }
  169. .red{ background: #ff0000; }
  170. .green{ background: #228B22; }
  171. .blue{ background: #0000ff; }
  172. </style>
  173. <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
  174. <script type="text/javascript">
  175. $(document).ready(function(){
  176. $("select").change(function(){
  177. $(this).find("option:selected").each(function(){
  178. var optionValue = $(this).attr("value");
  179. if(optionValue){
  180. $(".box").not("." + optionValue).hide();
  181. $("." + optionValue).show();
  182. } else{
  183. $(".box").hide();
  184. }
  185. });
  186. }).change();
  187. });
  188. </script>
  189. <style>
  190. * {
  191. box-sizing: border-box;
  192. }
  193. /* Create two equal columns that floats next to each other */
  194. .column {
  195. float: left;
  196. width: 33.33%;
  197. padding: 10px;
  198. }
  199. /* Clear floats after the columns */
  200. .row:after {
  201. content: "";
  202. display: table;
  203. clear: both;
  204. }
  205. /* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
  206. @media screen and (max-width: 600px) {
  207. .column {
  208. width: 100%;
  209. }
  210. }
  211. .icon-background {
  212. color: #FFFFFF;
  213. }
  214. </style>
  215. </head>
  216. <body>
  217. <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  218. <a class="navbar-brand" href="#">EZ Connect</a>
  219. <button class="navbar-toggler collapsed" type="button" data-toggle="collapse" data-target="#navbarColor02" aria-controls="navbarColor02" aria-expanded="false" aria-label="Toggle navigation">
  220. <span class="navbar-toggler-icon"></span>
  221. </button>
  222. <div class="navbar-collapse collapse" id="navbarColor02" style="">
  223. <ul class="navbar-nav mr-auto">
  224. <li class="nav-item active">
  225. <a class="nav-link" href="/index.php">Home <span class="sr-only">(current)</span></a>
  226. </li>
  227. </ul>
  228. </div>
  229. </nav>
  230. <br>
  231. <div align="center">
  232. <span class="badge badge-primary">NO DDOS</span>
  233. <span class="badge badge-secondary">NO HACKING</span>
  234. <span class="badge badge-success">NO TORRENT</span>
  235. <span class="badge badge-danger">NO CARDING</span>
  236. <span class="badge badge-warning">NO ILLEGAL</span>
  237. <span class="badge badge-info">100% FREE</span>
  238. <span class="badge badge-light">100% UPTIME</span>
  239. <span class="badge badge-dark">100% PROTECTION</span>
  240. </div>
  241. <center><iframe src="https://freesecure.timeanddate.com/clock/i6np8hk8/n145/fn6/fs12/fcf00/tct/pct/ftb/bas2/bat0/bacfff/pa8/tt0/tw1/th2/tb4" frameborder="0" width="156" height="44" allowTransparency="true"></iframe>
  242. </center>
  243. <center><iframe data-aa='1133593' src='//acceptable.a-ads.com/1133593' scrolling='no' style='border:0px; padding:0; overflow:hidden' allowtransparency='true'></iframe></center>
  244. <div align="center">
  245. <div class="col-md-4" align="center">
  246. <div align="center">
  247. <div align="center" class="card-body">
  248. <form method="post" align="center" class="softether-create">
  249. <div class="form-group">
  250. <?php
  251. if($show == true)
  252. {
  253. echo '<div class="card border-danger">';
  254. echo '<table class="table-danger">';
  255. echo '<tr>'; echo '<td> </td>'; echo '<td> </td>'; echo '</tr>';
  256. echo '<tr>'; echo '<td>Server</td>'; echo '<td>'; echo $_POST['server']; echo '</td>'; echo '</tr>';
  257. echo '<tr>'; echo '<td>Host</td>'; echo '<td>'; echo $hosts; echo '</td>'; echo '</tr>';
  258. echo '<tr>'; echo '<td>Username</td>'; echo '<td>'; echo $username; echo '</td>'; echo '</tr>';
  259. echo '<tr>'; echo '<td>Password</td>'; echo '<td>'; echo $password1; echo '</td>'; echo '</tr>';
  260. echo '<tr>'; echo '<td>SSH Port</td>'; echo '<td>'; echo $port_ssh; echo '</td>'; echo '</tr>';
  261. echo '<tr>'; echo '<td>Dropbear Port</td>'; echo '<td>'; echo $port_dropbear; echo '</td>'; echo '</tr>';
  262. echo '<tr>'; echo '<td>SSL Port</td>'; echo '<td>'; echo $port_ssl; echo '</td>'; echo '</tr>';
  263. echo '<tr>'; echo '<td>Squid Port</td>'; echo '<td>'; echo $port_squid; echo '</td>'; echo '</tr>';
  264. echo '<tr>'; echo '<td>OpenVPN Config</td>'; echo '<td>';echo '<a href="http://';echo $hosts; echo "/"; echo "client.ovpn"; echo'">download config</a>'; echo '</td>'; echo '</tr>';
  265. echo '<tr>'; echo '<td>Expiration Date</td>'; echo '<td>'; echo $datess; echo '</td>'; echo '</tr>';
  266. echo '<tr>'; echo '<td> </td>'; echo '<td> </td>'; echo '</tr>';
  267. echo '</table>';
  268. echo '</div>';
  269. }
  270. ?>
  271. </div>
  272. <div class="form-group">
  273. <span class="text-danger"><?php echo $nameError; ?></span>
  274. </div>
  275. <div class="form-group">
  276. <span class="text-danger"><?php echo $passError; ?></span>
  277. </div>
  278. <div class="form-group">
  279. <span class="text-danger"><?php echo $inviteError; ?></span>
  280. </div>
  281. <div class="form-group">
  282. <div class="input-group">
  283. <div class="input-group-prepend">
  284. <span class="input-group-text"><i class="fas fa-globe" style="color:red;"></i></span>
  285. </div>
  286. <select class="custom-select" name="server" required>
  287. <option disabled selected value>Select Server</option>
  288. <?php
  289. for ($row = 1; $row < 101; $row++)
  290. {
  291. if (( $server_lists_array[$row][4] == VIP ))
  292. {
  293. echo '<option>';echo $server_lists_array[$row][1]; echo '</option>';
  294. }
  295. elseif ( $server_lists_array[$row][4] == Free )
  296. {
  297. continue;
  298. }
  299. else
  300. {
  301. break;
  302. }
  303. }
  304. ?>
  305. </optgroup>
  306. </select>
  307. </div>
  308. </div>
  309. <div class="form-group">
  310. <div class="input-group">
  311. <div class="input-group-prepend">
  312. <span class="input-group-text"><i class="fas fa-user-circle" style="color:red;"></i></span>
  313. </div>
  314. <input type="text" class="form-control" id="username" placeholder="Username" name="user" autocomplete="off" >
  315. </div>
  316. </div>
  317. <div class="form-group">
  318. <div class="input-group">
  319. <div class="input-group-prepend">
  320. <span class="input-group-text"><i class="fas fa-key" style="color:red;"></i></span>
  321. </div>
  322. <input type="text" class="form-control" id="password" placeholder="Password" name="password" autocomplete="off" >
  323. </div>
  324. </div>
  325. <div class="form-group">
  326. <div class="input-group">
  327. <div class="input-group-prepend">
  328. <span class="input-group-text"><i class="fas fa-code" style="color:red;"></i></span>
  329. </div>
  330. <input type="text" class="form-control" id="confirm" placeholder="Invite Code Here" name="invite" autocomplete="off" >
  331. </div>
  332. </div>
  333. <div class="form-group ">
  334. <button type="submit" id="button" class="btn btn-outline-danger btn-block btn-action">CREATE ACCOUNT</button>
  335. </div>
  336. </form>
  337. </div>
  338. </div>
  339. </div>
  340. </div>
  341. </div>
  342. </div>
  343. <div class="row">
  344. <div align="center" class="column" style="background-color:#ffffff00;">
  345. <span class="fa-stack fa-4x">
  346. <i class="fa fa-circle fa-stack-2x icon-background"></i>
  347. <i class="fas fa-user-shield fa-stack-1x style="color:red;"></i>
  348. </span>
  349. <h4>Privacy & Security</h4>
  350. <p>Get your identity hidden online, your IP Address will be masked with our server IP. Also your connection will be encrypted.</p>
  351. </div>
  352. <div align="center" class="column" style="background-color:#ffffff00;">
  353. <span class="fa-stack fa-4x">
  354. <i class="fa fa-circle fa-stack-2x icon-background"></i>
  355. <i class="ico fa fa-unlock-alt fa-stack-1x style="color:red;"></i>
  356. </span>
  357. <h4>Bypass Cencorship</h4>
  358. <p>Bypass your school, government or your office internet cencorship. Unblock any site and enjoy Internet Freedom.</p>
  359. </div>
  360. <div align="center" class="column" style="background-color:#ffffff00;">
  361. <span class="fa-stack fa-4x">
  362. <i class="fa fa-circle fa-stack-2x icon-background"></i>
  363. <i class="ico fa fa-rocket fa-stack-1x style="color:red;"></i>
  364. </span>
  365. <h4>Boost Internet Speed</h4>
  366. <p>Our service may boost your internet speed and make your connection stable (stable PING). This differ by country.</p>
  367. </div>
  368. </div>
  369. <center><iframe data-aa='1133593' src='//acceptable.a-ads.com/1133593' scrolling='no' style='border:0px; padding:0; overflow:hidden' allowtransparency='true'></iframe></center>
  370. <style>
  371. p {text-align:center;}
  372. </style>
  373. <p><strong>Donation Accepted. Any amount will help.</strong></p>
  374. <div align="center">
  375. <select>
  376. <option>DONATE OPTION</option>
  377. <option value="red">COINS.PH</option>
  378. <option value="green">GCASH</option>
  379. </select>
  380. </div>
  381. <div align="center" class="red box">You have selected <strong>Coins.ph.</strong> Donate to this number <br> 09667441328</div>
  382. <div align="center" class="green box">You have selected <strong>GCASH</strong> Donate to this number <br> 09667441328</div>
  383. <style>
  384. p {text-align:center;}
  385. </style>
  386. <p><strong>Thank you !</strong></p>
  387. <div align="center">
  388. Made with <i class="fa fa-heart pulse"></i> by <a href="https://www.phcorner.net/members/357807/" target="_blank">Wang Zki</a>
  389. </div>
  390. <style>.fb-livechat,.fb-widget{display:none}.ctrlq.fb-button,.ctrlq.fb-close{position:fixed;right:24px;cursor:pointer}.ctrlq.fb-button{z-index:1;background:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/PjwhRE9DVFlQRSBzdmcgIFBVQkxJQyAnLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4nICAnaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkJz48c3ZnIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDEyOCAxMjgiIGhlaWdodD0iMTI4cHgiIGlkPSJMYXllcl8xIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAxMjggMTI4IiB3aWR0aD0iMTI4cHgiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxnPjxyZWN0IGZpbGw9IiMwMDg0RkYiIGhlaWdodD0iMTI4IiB3aWR0aD0iMTI4Ii8+PC9nPjxwYXRoIGQ9Ik02NCwxNy41MzFjLTI1LjQwNSwwLTQ2LDE5LjI1OS00Niw0My4wMTVjMCwxMy41MTUsNi42NjUsMjUuNTc0LDE3LjA4OSwzMy40NnYxNi40NjIgIGwxNS42OTgtOC43MDdjNC4xODYsMS4xNzEsOC42MjEsMS44LDEzLjIxMywxLjhjMjUuNDA1LDAsNDYtMTkuMjU4LDQ2LTQzLjAxNUMxMTAsMzYuNzksODkuNDA1LDE3LjUzMSw2NCwxNy41MzF6IE02OC44NDUsNzUuMjE0ICBMNTYuOTQ3LDYyLjg1NUwzNC4wMzUsNzUuNTI0bDI1LjEyLTI2LjY1N2wxMS44OTgsMTIuMzU5bDIyLjkxLTEyLjY3TDY4Ljg0NSw3NS4yMTR6IiBmaWxsPSIjRkZGRkZGIiBpZD0iQnViYmxlX1NoYXBlIi8+PC9zdmc+) center no-repeat #0084ff;width:60px;height:60px;text-align:center;bottom:24px;border:0;outline:0;border-radius:60px;-webkit-border-radius:60px;-moz-border-radius:60px;-ms-border-radius:60px;-o-border-radius:60px;box-shadow:0 1px 6px rgba(0,0,0,.06),0 2px 32px rgba(0,0,0,.16);-webkit-transition:box-shadow .2s ease;background-size:80%;transition:all .2s ease-in-out}.ctrlq.fb-button:focus,.ctrlq.fb-button:hover{transform:scale(1.1);box-shadow:0 2px 8px rgba(0,0,0,.09),0 4px 40px rgba(0,0,0,.24)}.fb-widget{background:#fff;z-index:2;position:fixed;width:360px;height:435px;overflow:hidden;opacity:0;bottom:0;right:24px;border-radius:6px;-o-border-radius:6px;-webkit-border-radius:6px;box-shadow:0 5px 40px rgba(0,0,0,.16);-webkit-box-shadow:0 5px 40px rgba(0,0,0,.16);-moz-box-shadow:0 5px 40px rgba(0,0,0,.16);-o-box-shadow:0 5px 40px rgba(0,0,0,.16)}.fb-credit{text-align:center;margin-top:8px}.fb-credit a{transition:none;color:#bec2c9;font-family:Helvetica,Arial,sans-serif;font-size:12px;text-decoration:none;border:0;font-weight:400}.ctrlq.fb-overlay{z-index:0;position:fixed;height:100vh;width:100vw;-webkit-transition:opacity .4s,visibility .4s;transition:opacity .4s,visibility .4s;top:0;left:0;background:rgba(0,0,0,.05);display:none}.ctrlq.fb-close{z-index:4;padding:0 6px;background:#365899;font-weight:700;font-size:11px;color:#fff;margin:8px;border-radius:3px}.ctrlq.fb-close::after{content:'x';font-family:sans-serif}</style>
  391. <div class="fb-livechat">
  392. <div class="ctrlq fb-overlay"></div>
  393. <div class="fb-widget">
  394. <div class="ctrlq fb-close"></div>
  395. <div class="fb-page" data-href="https://www.facebook.com/Free-SSH-VPN-351926902090977/" data-tabs="messages" data-width="360" data-height="400" data-small-header="true" data-hide-cover="true" data-show-facepile="false">
  396. <blockquote cite="https://www.facebook.com/Free-SSH-VPN-351926902090977/" class="fb-xfbml-parse-ignore"> </blockquote>
  397. </div>
  398. <div class="fb-credit">
  399. <a href="" target="_blank">Facebook Chat</a>
  400. </div>
  401. <div id="fb-root"></div>
  402. </div>
  403. <a href="https://m.me/Free-SSH-VPN-351926902090977" title="Send us a message on Facebook" class="ctrlq fb-button"></a>
  404. </div>
  405. <script src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.9"></script>
  406. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
  407. <script>$(document).ready(function(){var t={delay:125,overlay:$(".fb-overlay"),widget:$(".fb-widget"),button:$(".fb-button")};setTimeout(function(){$("div.fb-livechat").fadeIn()},8*t.delay),$(".ctrlq").on("click",function(e){e.preventDefault(),t.overlay.is(":visible")?(t.overlay.fadeOut(t.delay),t.widget.stop().animate({bottom:0,opacity:0},2*t.delay,function(){$(this).hide("slow"),t.button.show()})):t.button.fadeOut("medium",function(){t.widget.stop().show().animate({bottom:"30px",opacity:1},2*t.delay),t.overlay.fadeIn(t.delay)})})});</script>
  408. </body>
  409. </html>