Php!

Discussion about Helbreath Server Files.
Post Reply
Evil^
just visiting
Posts: 9
Joined: Mon Aug 15, 2005 3:38 am

Post by Evil^ »

Somebody passes a PHP to me of "Change of password plz.
James!
Member
Posts: 134
Joined: Sat Jan 01, 2005 12:09 am

Post by James! »

Code: Select all

<?
$dir = 'C:\\DreaMServer\\Account'; if(!$_POST){ echo ' 
<form action='.$_SERVER['PHP_SELF'].' method=post>
  <p> Cuenta: 
    <input type=text name=acc>
    <br>
    <br>
    Contraseña Actual: 
    <input type=password name=pass>
    <br>
    <br>
    Contraseña Nueva: 
    <input type=password name=nwpass>
    <br>
    <br>
    <input type=submit name=submit Value="Cambiar Password!">
    <br>
    <br>
    <a href="mailto:braian_james@hotmail.com">Script By : JameS!</a>
    <a href="http://www.comunidadhb.com.ar">Comunidad HB</a>
    <a href="http://www.dreamforums.com.ar">DreaM Forums</a>
</form>
';
}
else{
  $acc = $_POST['acc'];
  $pass = $_POST['pass'];
  $nwpass = $_POST['nwpass'];
  $fl = substr($acc, 0, 1);
  $ascii = ord($fl);
  $filename = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt';
  $lines = file($filename);
  $a=0;
  foreach($lines as $a){
    $a = trim($a);
    if($a == 'account-password = '.$pass.''){ $passflag=TRUE; }
  }
  if(!$passflag){ echo 'Password Incorrecto'; }
  else{
    $fl = substr($acc, '0', '1');
    $casc = ord($acc);
    $filenames = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt';
    $lines = file($filenames);
    $a=0;
    foreach($lines as $b){
      if(substr_count($b, 'account-password') > '.$pass.'){ $sline = $a; }
      $a++;
    }
    $lines[$sline] = 'account-password = '.$nwpass.'
';
    $lines = implode('', $lines);
    $fo = fopen("$filename", 'w+');
    fwrite($fo, $lines);
    echo 'Password De Account Cambiado Satisfactoriamente - By JameS!';
  }
}
?>
:ph34r:
<img src='http://img.photobucket.com/albums/v482/ ... ingFan.jpg' border='0' alt='user posted image' /><br><a href='http://www.hbdreams.com.ar' target='_blank'><b>- Helbreath Dream Team -</a></b><br><a href='http://www.dreamforums.com.ar/top50' target='_blank'><b>- Dream Top 50 Owner Admin -</a></b><br>- <b>Contacto Por Mail</b> : <a href='mailto:james@dreamforums.com.ar'>james@dreamforums.com.ar</a>
Evil^
just visiting
Posts: 9
Joined: Mon Aug 15, 2005 3:38 am

Post by Evil^ »

James! wrote:

Code: Select all

<?
$dir = 'C:\\DreaMServer\\Account'; if(!$_POST){ echo ' 
<form action='.$_SERVER['PHP_SELF'].' method=post>
  <p> Cuenta: 
    <input type=text name=acc>
    <br>
    <br>
    Contraseña Actual: 
    <input type=password name=pass>
    <br>
    <br>
    Contraseña Nueva: 
    <input type=password name=nwpass>
    <br>
    <br>
    <input type=submit name=submit Value="Cambiar Password!">
    <br>
    <br>
    <a href="mailto:braian_james@hotmail.com">Script By : JameS!</a>
    <a href="http://www.comunidadhb.com.ar">Comunidad HB</a>
    <a href="http://www.dreamforums.com.ar">DreaM Forums</a>
</form>
';
}
else{
  $acc = $_POST['acc'];
  $pass = $_POST['pass'];
  $nwpass = $_POST['nwpass'];
  $fl = substr($acc, 0, 1);
  $ascii = ord($fl);
  $filename = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt';
  $lines = file($filename);
  $a=0;
  foreach($lines as $a){
    $a = trim($a);
    if($a == 'account-password = '.$pass.''){ $passflag=TRUE; }
  }
  if(!$passflag){ echo 'Password Incorrecto'; }
  else{
    $fl = substr($acc, '0', '1');
    $casc = ord($acc);
    $filenames = $dir . '\\ASCII' . $ascii . '\\' . $acc . '.txt';
    $lines = file($filenames);
    $a=0;
    foreach($lines as $b){
      if(substr_count($b, 'account-password') > '.$pass.'){ $sline = $a; }
      $a++;
    }
    $lines[$sline] = 'account-password = '.$nwpass.'
';
    $lines = implode('', $lines);
    $fo = fopen("$filename", 'w+');
    fwrite($fo, $lines);
    echo 'Password De Account Cambiado Satisfactoriamente - By JameS!';
  }
}
?>
:ph34r:
sry does not specify that type of server use, php that I walk looking for is for 3,51 original by SQL. With config, common.
Jaap
Loyal fan
Posts: 390
Joined: Thu Apr 22, 2004 8:21 am

Post by Jaap »

You COULD just change your password ingame you know..
tamir
Regular
Posts: 53
Joined: Wed Feb 04, 2004 8:42 am

Post by tamir »

Jaap wrote: You COULD just change your password ingame you know..
nahh.... way too compilcated... B)
<a href='http://tfps.fateback.com/scripts/index.html' target='_blank'>my php scripts</a>
RageIlluminati
Outpost bitch
Posts: 559
Joined: Wed Mar 30, 2005 6:45 am

Post by RageIlluminati »

Evil^ wrote: sry does not specify that type of server use, php that I walk looking for is for 3,51 original by SQL. With config, common.
The html tags you attempted to use are not allowed

[ Go Back ]

can't put here my php:-/
<img src='http://helbreath.pri.ee/userbars/hbest-gamemaster2.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/hbsoccer-owner.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/scorpa-rider.jpg' border='0' alt='user posted image' /> <img src='http://helbreath.pri.ee/userbars/logout-master.jpg' border='0' alt='user posted image' /> <br>.<br>................................Ego sum Rage, flagellum Dei!<br><br>The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? (bash.org)
babyniles
just visiting
Posts: 9
Joined: Tue Oct 18, 2005 7:26 pm

Post by babyniles »

hey i wanted to know how to use php with a router any help ??? thanks please give a good tutorial for us all!
magsec4
Member
Posts: 120
Joined: Tue Nov 18, 2003 3:31 am

Post by magsec4 »

babyniles wrote: hey i wanted to know how to use php with a router any help ??? thanks please give a good tutorial for us all!
Just forward port 80 on your router to your computer. If you don't know how, goto <a href='http://portforward.com/english/routers/ ... rindex.htm' target='_blank'>http://portforward.com/english/routers/ ... dex.htm</a> and look up your router onthe huge list, and it'll give you a step - by - step guide for port forwarding with your particular router.
Post Reply