PageRenderTime 56ms CodeModel.GetById 31ms RepoModel.GetById 1ms app.codeStats 0ms

/hosts/upload/movshare.net_member.php

https://gitlab.com/dkiller1/rapidleech
PHP | 117 lines | 95 code | 19 blank | 3 comment | 5 complexity | 7f258afa539f08f3e7469f13c5cd01c9 MD5 | raw file
  1. <?
  2. ####### Free/default Account Info. ###########
  3. $movsh_login = "";
  4. $movsh_pass = "";
  5. ##############################
  6. $not_done=true;
  7. $continue_up=false;
  8. if ($movsh_login & $movsh_pass){
  9. $_REQUEST['user'] = $movsh_login;
  10. $_REQUEST['password'] = $movsh_pass;
  11. $_REQUEST['title']= $lname;
  12. $_REQUEST['action'] = "FORM";
  13. echo "<b><center>Use Default login/pass and file name as title.</center></b>\n";
  14. }
  15. if ($_REQUEST['action'] == "FORM")
  16. $continue_up=true;
  17. else{
  18. ?>
  19. <table border=0 style="width:270px;" cellspacing=0 align=center>
  20. <form method=post>
  21. <input type=hidden name=action value='FORM' />
  22. <tr><td nowrap>&nbsp;Login*<td>&nbsp;<input type=text name=user value='' style="width:160px;" />&nbsp;</tr>
  23. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=password value='' style="width:160px;" />&nbsp;</tr>
  24. <tr><td nowrap>&nbsp;<td>&nbsp;&nbsp;</tr>
  25. <tr><td nowrap>&nbsp;Title*<td>&nbsp;<input type=text name=title value='Enter Title here' style="width:160px;" />&nbsp;</tr>
  26. <tr><td nowrap>&nbsp;Description*<td>&nbsp;<textarea name=description style="width: 160px;">Enter Description here</textarea>&nbsp;</tr>
  27. <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
  28. </table>
  29. </form>
  30. <?php
  31. }
  32. if ($continue_up)
  33. {
  34. $not_done=false;
  35. ?>
  36. <table width=600 align=center>
  37. </td></tr>
  38. <tr><td align=center>
  39. <div id=login width=100% align=center>Login to www.movshare.net</div>
  40. <?php
  41. $post['user'] = $_REQUEST['user'];
  42. $post['pass'] = $_REQUEST['password'];
  43. $post['Submit.x'] = "0";
  44. $post['Submit.y'] = "0";
  45. $post['Submit'] = "Submit";
  46. $page = geturl("movshare.net", 80, "/login.php", 0, 0, $post, 0, $_GET["proxy"], $pauth);
  47. is_page($page);
  48. is_notpresent($page, 'HTTP/1.1 302 Found', 'Error logging in - are your logins correct? First');
  49. preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
  50. $cookie = $temp[1];
  51. $cookies = implode('; ',$cookie);
  52. $page = geturl("movshare.net", 80, "/panel.php", "http://movshare.net/login.php", $cookies, 0, 0, "");
  53. is_page($page);
  54. is_notpresent($page, 'HTTP/1.1 200 OK', 'Error logging in - are your logins correct? Second');
  55. ?>
  56. <script>document.getElementById('login').style.display='none';</script>
  57. <div id=info width=100% align=center>Retrive upload ID</div>
  58. <?php
  59. $ref='http://www.movshare.net/';
  60. $Url=parse_url($ref.'panel.php?q=3');
  61. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookies, 0, 0, $_GET["proxy"],$pauth);
  62. is_page($page);
  63. $userid = cut_str($page,'upload/ubr_file_upload.php?u=','" frameborder="0"');
  64. if (!$userid) html_error ('Error get userID');
  65. $rand = mt_rand(1000000000000, 1999999999999);
  66. $refup='http://95.211.84.49/upload/ubr_link_upload.php?rnd_id='.$rand;
  67. $Url=parse_url($refup);
  68. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, "user=$userid", 0, 0, $_GET["proxy"],$pauth);
  69. is_page($page);
  70. $upid = cut_str($page,'startUpload("','"');
  71. $post['title']=$_REQUEST['title'];
  72. $post['desc']=$_REQUEST['description'];
  73. $url=parse_url('http://95.211.84.49/'.'/cgi-bin/ubr_upload.pl?upload_id='.$upid);
  74. $refup2='http://95.211.84.49/';
  75. ?>
  76. <script>document.getElementById('info').style.display='none';</script>
  77. <?
  78. $upfiles=upfile($url["host"],defport($url), $url["path"].($url["query"] ? "?".$url["query"] : ""), $refup2, 0, $post, $lfile, $lname, "upfile_0");
  79. ?>
  80. <script>document.getElementById('progressblock').style.display='none';</script>
  81. <?
  82. is_page($upfiles);
  83. $locat=cut_str($upfiles,'The document has moved <a href="','"');
  84. $Url=parse_url($locat);
  85. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $refup2, "user=$userid", 0, 0, $_GET["proxy"],$pauth);
  86. is_page($page);
  87. $end_url=cut_str($page,'Location: ',"\n");
  88. $Url=parse_url('http://95.211.84.49/upload/'.$end_url);
  89. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $refup2, "user=$userid", 0, 0, $_GET["proxy"],$pauth);
  90. is_page($page);
  91. $ddl=cut_str($page,'value="http://www.movshare.net/video/','"');
  92. $del=cut_str($page,'value="http://www.movshare.net/delete/','"');
  93. $del = substr($del,0,strlen($del)-1);
  94. $download_link= 'http://www.movshare.net/video/'.$ddl;
  95. $delete_link= 'http://www.movshare.net/delete/'.$del;
  96. }
  97. // Made by Baking 29/06/2009 20:20
  98. ?>