CMDL1NE

█ Hacked Scsl.ru - DB Details

Jul 28th, 2011
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.81 KB | None | 0 0
  1. ______ ____ ____ ______ _____ __ ____ _____ ________
  2. .' ___ ||_ \ / _||_ _ `.|_ _| / | |_ \|_ _||_ __ |
  3. / .' \_| | \/ | | | `. \ | | `| | | \ | | | |_ \_|
  4. | | | |\ /| | | | | | | | _ | | | |\ \| | | _| _
  5. \ `.___.'\ _| |_\/_| |_ _| |_.' /_| |__/ | _| |_ _| |_\ |_ _| |__/ |
  6. `.____ .'|_____||_____||______.'|________||_____||_____|\____||________|
  7.  
  8.  
  9. █ Cracked By: CMDL1NE
  10. █ Twitter.com/CMDL1NE
  11.  
  12. █ ALWAYS GIVE CREDITS BEFORE YOU SPREAD! █
  13.  
  14. █Website: Scsl.ru
  15. █Pagerank: 4
  16. █IP: 213.159.197.24
  17.  
  18.  
  19.  
  20. ██████████████████████████████BEGIN█████████████████████████████████████
  21. if ( !defined('IN_RPGLIST') )
  22. {
  23. die("Hello, hacker-fucker!");
  24. }
  25.  
  26. if(!isset($ms))
  27. {
  28. $ms=1;
  29.  
  30. # êëàññ, îòâå÷àþùèé çà êîííåêò ê ÁÄ
  31. class MySQLDB
  32. {
  33. function MySQLDB($sqlserver, $sqluser, $sqlpassword, $database, $persistency = true)
  34. {
  35. $this->persistency = $persistency;
  36. $this->user = $sqluser;
  37. $this->pass = $sqlpassword;
  38. $this->host = $sqlserver;
  39. $this->db = $database;
  40.  
  41. if($this->persistency)
  42. {
  43. $this->id = @mysql_pconnect($this->host, $this->user, $this->pass) or
  44. # MySQL_ErrorMsg("Unable to connect to MySQL server: $this->host : '$SERVER_NAME'");
  45. MySQL_ErrorMsg("Unable to connect to MySQL server");
  46. }
  47. else
  48. {
  49. $this->id = @mysql_connect($this->host, $this->user, $this->pass) or
  50. MySQL_ErrorMsg("Unable to connect to MySQL server");
  51. }
  52. if($this->id)
  53. {
  54. if($database != "")
  55. {
  56. $this->db = $database;
  57. $dbselect = @mysql_select_db($this->db);
  58. if(!$dbselect)
  59. {
  60. @mysql_close($this->id);
  61. $this->db_connect_id = $dbselect;
  62. # MySQL_ErrorMsg ("Unable to select database: $database");
  63. MySQL_ErrorMsg ("Unable to select database");
  64. }
  65. }
  66. return $this->id;
  67. }
  68. else
  69. {
  70. return false;
  71. }
  72. }
  73. }
  74.  
  75.  
  76. # êëàññ, îòâå÷àþùèé çà ðàáîòó ñ îòêðûòîé ÁÄ (çàïðîñû, âûáîðêè è ò.ä.)
  77. class MySQL
  78. {
  79. # èíäåêñ ðåçóëüòàòà ïîñëå âûïîëíåíèÿ mysql_query
  80. var $result, $rows, $data, $a_rows;
  81.  
  82. # óíèâåðñàëüíàÿ ôóíêöèÿ çàïðîñà
  83. function Query ($query)
  84. {
  85. # ãëîáàëüíûé îáúåêò äëÿ äîñòóïà ê áàçå
  86. global $dbSQL;
  87. $this->result = @mysql_query($query, $dbSQL->id) or
  88. # MySQL_ErrorMsg ("Unable to perform query: $query");
  89. MySQL_ErrorMsg ("Unable to perform query");
  90. $this->rows = @mysql_num_rows($this->result);
  91. $this->a_rows = @mysql_affected_rows($dbSQL->id);
  92. }
  93.  
  94. # Âûïîëíÿåò çàïðîñ, çàïèñûâàåò ðåçóëüòàò â ïåðåìåííóþ data
  95. function QueryObj ($query)
  96. {
  97. $this->Query($query);
  98. $this->data = @mysql_fetch_object($this->result);
  99. return $this->rows;
  100. }
  101.  
  102. # Âûïîëíÿåò çàïðîñ, çàïèñûâàåò ðåçóëüòàò â ïåðåìåííóþ data
  103. function QueryNum ($query)
  104. {
  105. $this->Query($query);
  106. $this->data = @mysql_result($this->result,0);
  107. return $this->data;
  108. }
  109.  
  110.  
  111. # Ô-èÿ çàïðàøèâàåò íàçâàíèÿ ïîëåé äëÿ çàäàííîé òàáëèöû
  112. function GetFields ($table)
  113. {
  114. # ãëîáàëüíûé îáúåêò äëÿ äîñòóïà ê áàçå
  115. global $dbSQL;
  116. $this->result = @mysql_list_fields($dbSQL->db, $table, $dbSQL->id)
  117. # or MySQL_ErrorMsg ("Unable to info for $table");
  118. or MySQL_ErrorMsg ("Unable to info for table");
  119. $columns=@mysql_num_fields($this->result);
  120. $this->rows = $columns;
  121. $this->a_rows = $columns;
  122. for($i=0; $i<$columns; $i++)
  123. {
  124. $this->data[$i]=mysql_field_name($this->result, $i);
  125. }
  126. return $this->data;
  127. }
  128.  
  129. # Çàïèñûâàåò ñëåäóþùèé çàïèñü â ïåðåìåííóþ data
  130. function NextObj ($num = 0)
  131. {
  132. if($num)
  133. {
  134. mysql_data_seek($this->result, $num);
  135. }
  136. $this->data = @mysql_fetch_object($this->result);
  137. if($this->data) return 1;
  138. else return 0;
  139. }
  140.  
  141. function Insert ($query)
  142. {
  143. $this->Query($query);
  144. return mysql_insert_id();
  145. }
  146.  
  147. function Update ($query)
  148. {
  149. $this->Query($query);
  150. return $this->a_rows;
  151. }
  152.  
  153. function Delete ($query)
  154. {
  155. $this->Query($query);
  156. }
  157. }
  158.  
  159. # ********************************************************************
  160.  
  161. # ôóíêöèÿ ïå÷àòàþùàÿ ñîîáùåíèå îá îøèáêå MySQL
  162. function MySQL_ErrorMsg ($msg)
  163. {
  164. global $already;
  165. # çàêðûâàåì òýãè, êîòîðûå ìîãëè áûòü îòêðûòûìè
  166. echo("</ul></dl></ol>\n");
  167. echo("</select></textarea></table></script>\n");
  168. # ñîîáùåíèå îá îøèáêå
  169. $text = "<font color=\"#ff0000\"><p>Error: $msg :";
  170. # $text .= mysql_error();
  171. $text .= $already;
  172. $text .= "</font>\n";
  173. die($text);
  174. }
  175.  
  176. # ********************************************************************
  177. # ãëîá. ïåðåìåííûå ïî óìîë÷àíèþ
  178. $dbSQL=new MySQLDB('localhost', 'scslru', 'ika3Shiut', 'scslru', 'false');
  179. $bd=new MySQL;
  180. }
  181.  
  182. ██████████████████████████████END█████████████████████████████████████
  183.  
  184.  
  185.  
  186. Have Fun!
  187.  
  188.  
  189.  
  190. ████████████████████████████████████████████████████████████████████
  191. CMDL1NE
  192. ████████████████████████████████████████████████████████████████████
Add Comment
Please, Sign In to add comment