Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. <?php
  2.  
  3. $connectionid = mysql_connect ("localhost", "testme", "sippe123");
  4. if (!mysql_select_db ("testme", $connectionid))
  5. {
  6. die ("Keine Verbindung zur Datenbank");
  7. }
  8. $szName = $_POST['Name'];
  9. $szPWD = $_POST['PWD'];
  10. $szHWID = $_POST['HWID'];
  11. if( $_POST['Reason'] == 'Information' )
  12. {
  13. $user = $szName;
  14. $pw = $szPWD;
  15. $qry = mysql_query("SELECT * FROM `user` WHERE (username like '".$user."')");
  16. $myHWID = $szHWID;
  17. $userid;
  18.  
  19. while($sys=mysql_fetch_array($qry))
  20. {
  21. $password = md5(md5($pw).$sys['salt']);
  22. $userid = $sys['userid'];
  23. }
  24.  
  25. $sql = "SELECT ".
  26. "* ".
  27. "FROM ".
  28. "user ".
  29. "WHERE ".
  30. "(username like '".$user."') AND ".
  31. "(password = '".$password."')";
  32. $result = mysql_query ($sql);
  33.  
  34. if( !$result )
  35. {
  36. die ('InformationError1\r\n');
  37. }
  38. echo "HackInformation\r\n";
  39.  
  40. while($UserInfo = mysql_fetch_array($result))
  41. {
  42.  
  43. $qrysubs2 = mysql_query("SELECT * FROM `subscriptionlog` WHERE (userid like '".$userid."')");
  44.  
  45. if( !$qrysubs2 )
  46. {
  47. die ('InformationError2\r\n');
  48. }
  49. while($subinfo2 = mysql_fetch_array($qrysubs2))
  50. {
  51. if( $subinfo2['status'] == 1)
  52. {
  53. if($subinfo2['HWID'] == $myHWID)
  54. {
  55. echo "Confirmed\r\n";
  56. break;
  57. }
  58. else if($subinfo2['HWID'] == 0)
  59. {
  60. $aendern = "UPDATE subscriptionlog Set HWID='".$myHWID."' WHERE userid = '".$userid."'";
  61. $update = mysql_query($aendern);
  62.  
  63. echo "Confirmed\r\n";
  64. break;
  65. }
  66. else if($subinfo2['HWID'] != $myHWID)
  67. {
  68. die ('ERROR HWID\r\n');
  69. }
  70. }
  71. }
  72.  
  73. $qrysubs = mysql_query("SELECT * FROM `subscriptionlog` WHERE (userid like '".$userid."')");
  74.  
  75. if( !$qrysubs )
  76. {
  77. die ('InformationError3\r\n');
  78. }
  79.  
  80. while($subinfo = mysql_fetch_array($qrysubs))
  81. {
  82. if( $subinfo['status'] == 1)
  83. {
  84. if($subinfo['HWID'] == $myHWID)
  85. {
  86. $qryinfo = mysql_query("SELECT * FROM `IniuriaProducts` WHERE (subid like '".$subinfo['subscriptionid']."')");
  87. while($Products = mysql_fetch_array($qryinfo))
  88. {
  89. $datum = date("d.m.Y H:i",$subinfo['expirydate']);
  90. echo '\zProduct:'.$Products['Product'].'\nType:'.$Products['Type'].'\nGame:'.$Products['Game'].'\nProductInformation:'.$Products['Information'].'\nDetection:'.$Products['DetectionState'].'\nExpires:'.$datum.'';
  91. break;
  92. }
  93. }
  94. }
  95. }
  96. }
  97. return;
  98. }
  99. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement