php..

Discussion on Helbreath Hacks. New ones Released. and how to work them.
Post Reply
TmpStyle
Regular
Posts: 73
Joined: Tue Nov 11, 2003 4:33 am

Post by TmpStyle »

as u guys know ppl use php scripts to do account creation.... if u have the ip of the server u can also do acct creation with a acct maker thingy. neways.. onto the point.....as i seen in darkzeros php scripts theres 100% skill scripts.... well this server has 100% manuals but doesnt have the script... and u know.. theres the annoying 20% 3% crap when u make a char.. so i was wondering if i could possibly edit the script to the server and use that to edit my char.... and would that work for stat editing too? 0.o... JUST a thought btw teach me how to do this stuff lol the php scripts cus im kinda lost i.e for account maker:::
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0044)http://www.suckas.net/DZ/HB/scripts.php?id=3 -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR></HEAD>
<BODY><CODE><FONT color=#000000><FONT color=#0000bb><?<BR></FONT><FONT
color=#ff8000>/*
----------------------------------------------------------------------------------<BR>DarkZero's
Account Creator for Helbreath Servers<BR>If you find a bug, have a suggestion
for another script,<BR>or need to contact me, please contact me one of the
following ways:<BR>Email: dz@suckas.net<BR>AIM: DarkZeroPU<BR>ICQ:
157544686<BR>IRC: irc.hbportal.net #h2
#hbredemption<BR>-------------------------------------------------------------------------------------<BR>This
file may be distributed freely as long as this part of the code is left
intact.<BR>I do not demand it, but please give me credit if you decide to use my
script. No, it's<BR>not that good but it did take a long time to
make.<BR>Everything herein is Copyright Brian Seeders
2003<BR>-------------------------------------------------------------------------------------<BR>The
only thing you need to do is insert your character directory into the line
<BR>below (leave off the \ at the end)<BR>Make sure to use double
\'s<BR>-------------------------------------------------------------------------------------<BR>Release
Notes:<BR>August 30, 2003: First release<BR><BR>In the next
release:<BR>-Suggestions Needed-<BR><BR>---------------Edit
this----------------*/<BR></FONT><FONT color=#0000bb>$dir </FONT><FONT
color=#007700>= </FONT><FONT
color=#dd0000>'C:\\example\\Helbreath\\Account'</FONT><FONT
color=#007700>;<BR></FONT><FONT
color=#ff8000>/*--------------------------------------*/<BR></FONT><FONT
color=#007700>if(!</FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>){<BR>  echo </FONT><FONT color=#dd0000>'<form
action='</FONT><FONT color=#007700>.</FONT><FONT
color=#0000bb>$_SERVER</FONT><FONT color=#007700>[</FONT><FONT
color=#dd0000>'PHP_SELF'</FONT><FONT color=#007700>].</FONT><FONT
color=#dd0000>' method=post> <BR>  Account-Name:
<BR>  <input name=account type=text
maxlength=10><BR>  <br><BR>  Password:
<BR>  <input name=password type=password
maxlength=10><BR>  <br><BR>  Password(Again):<BR>  <input
name=confirm type=password
maxlength=10><BR>  <br><BR>  E-Mail:
<BR>  <input name=email
type=text><BR>  <br><BR>  Security
Question:<BR>  <input name=question
type=text><BR>  <br><BR>  Answer:<BR>  <input
name=answer
type=text><BR>  </font><BR>  <br><BR>  <input
name=submit type=submit value=Submit>
<BR>  <p><BR>  Abuse of this system will result in
deletion of accounts,characters, and permanent
ban.</p><BR>  '</FONT><FONT
color=#007700>;<BR>}<BR>else{<BR>  </FONT><FONT color=#0000bb>$account
</FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'account'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$confirm </FONT><FONT
color=#007700>= </FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'confirm'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$date </FONT><FONT
color=#007700>= </FONT><FONT color=#0000bb>date</FONT><FONT
color=#007700>(</FONT><FONT color=#dd0000>'F d, Y g:i A'</FONT><FONT
color=#007700>);<BR>  </FONT><FONT color=#0000bb>$password
</FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'password'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$email </FONT><FONT
color=#007700>= </FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'email'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$question
</FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'question'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$answer </FONT><FONT
color=#007700>= </FONT><FONT color=#0000bb>$_POST</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'answer'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$ip </FONT><FONT
color=#007700>= </FONT><FONT color=#0000bb>$_SERVER</FONT><FONT
color=#007700>[</FONT><FONT color=#dd0000>'REMOTE_ADDR'</FONT><FONT
color=#007700>];<BR>  </FONT><FONT color=#0000bb>$firstletter
</FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>substr</FONT><FONT
color=#007700>(</FONT><FONT color=#0000bb>$account</FONT><FONT color=#007700>,
</FONT><FONT color=#0000bb>0</FONT><FONT color=#007700>, </FONT><FONT
color=#0000bb>1</FONT><FONT color=#007700>);<BR>  </FONT><FONT
color=#0000bb>$ascii </FONT><FONT color=#007700>= </FONT><FONT
color=#0000bb>ord</FONT><FONT color=#007700>(</FONT><FONT
color=#0000bb>$firstletter</FONT><FONT
color=#007700>);<BR>  </FONT><FONT color=#0000bb>$filename
</FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>$dir </FONT><FONT
color=#007700>. </FONT><FONT color=#dd0000>'\\ASCII'</FONT><FONT
color=#007700>.</FONT><FONT color=#0000bb>$ascii</FONT><FONT
color=#007700>.</FONT><FONT color=#dd0000>'\\'</FONT><FONT
color=#007700>.</FONT><FONT color=#0000bb>$account</FONT><FONT
color=#007700>.</FONT><FONT color=#dd0000>'.txt'</FONT><FONT
color=#007700>;<BR>  if(</FONT><FONT color=#0000bb>$account
</FONT><FONT color=#007700>== </FONT><FONT color=#dd0000>''</FONT><FONT
color=#007700>) { echo </FONT><FONT color=#dd0000>'Account creation failed.
Please fill out all fields.'</FONT><FONT color=#007700>;
}<BR>  elseif(</FONT><FONT color=#0000bb>file_exists</FONT><FONT
color=#007700>(</FONT><FONT color=#0000bb>$filename</FONT><FONT color=#007700>))
{ echo </FONT><FONT color=#dd0000>'Account creation failed. Account name already
exists.'</FONT><FONT color=#007700>;}<BR>  elseif(</FONT><FONT
color=#0000bb>$email </FONT><FONT color=#007700>== </FONT><FONT
color=#dd0000>''</FONT><FONT color=#007700>) { echo </FONT><FONT
color=#dd0000>'Account creation failed. Please fill out all fields.'</FONT><FONT
color=#007700>;}<BR>  elseif(!</FONT><FONT
color=#0000bb>ereg</FONT><FONT color=#007700>(</FONT><FONT
color=#dd0000>"^</FONT><FONT color=#007700>[</FONT><FONT
color=#dd0000>_a-zA-Z0-9-</FONT><FONT color=#007700>]</FONT><FONT
color=#dd0000>+(\.</FONT><FONT color=#007700>[</FONT><FONT
color=#dd0000>_a-zA-Z0-9-</FONT><FONT color=#007700>]</FONT><FONT
color=#dd0000>+)*@</FONT><FONT color=#007700>[</FONT><FONT
color=#dd0000>a-zA-Z0-9-</FONT><FONT color=#007700>]</FONT><FONT
color=#dd0000>+(\.</FONT><FONT color=#007700>[</FONT><FONT
color=#dd0000>a-zA-Z0-9-</FONT><FONT color=#007700>]</FONT><FONT
color=#dd0000>+)*</FONT><FONT color=#007700>$</FONT><FONT
color=#dd0000>"</FONT><FONT color=#007700>, </FONT><FONT
color=#0000bb>$email</FONT><FONT color=#007700>)){ echo </FONT><FONT
color=#dd0000>'Account Creation Failed. Please enter a valid
E-Mail.'</FONT><FONT color=#007700>; }<BR>  elseif(</FONT><FONT
color=#0000bb>$password </FONT><FONT color=#007700>!= </FONT><FONT
color=#0000bb>$confirm</FONT><FONT color=#007700>) { echo </FONT><FONT
color=#dd0000>'Account creation failed. Password does not match confirmation
password.'</FONT><FONT
color=#007700>;}<BR>  else{<BR>    </FONT><FONT
color=#0000bb>$fp </FONT><FONT color=#007700>= </FONT><FONT
color=#0000bb>fopen</FONT><FONT color=#007700>(</FONT><FONT
color=#0000bb>$filename</FONT><FONT color=#007700>, </FONT><FONT
color=#dd0000>'w+'</FONT><FONT
color=#007700>);<BR>    </FONT><FONT color=#0000bb>$string
</FONT><FONT color=#007700>= </FONT><FONT color=#dd0000>'Account Created:
'</FONT><FONT color=#007700>.</FONT><FONT color=#0000bb>$date</FONT><FONT
color=#007700>.</FONT><FONT color=#dd0000>' With the IP: '</FONT><FONT
color=#007700>.</FONT><FONT color=#0000bb>$ip</FONT><FONT
color=#007700>.</FONT><FONT
color=#dd0000>'<BR><BR>[NAME]<BR><BR>account-name     =
'</FONT><FONT color=#007700>.</FONT><FONT color=#0000bb>$account</FONT><FONT
color=#007700>.</FONT><FONT
color=#dd0000>'<BR><BR>[PASSWORD]<BR><BR>account-password = '</FONT><FONT
color=#007700>.</FONT><FONT color=#0000bb>$password</FONT><FONT
color=#007700>.</FONT><FONT
color=#dd0000>'<BR><BR>[ACCOUNT-STATUS]<BR><BR>account-valid-time =
0<BR>account-valid-date = 2003 4 5<BR><BR>account-change-password = 2003 3
29<BR>[ETC]<BR><BR>account-Gender   =
Male<BR>account-Age      = <BR>account-Birth-Year
= xxxx<BR>account-Birth-Month = xx<BR>account-Birth-Day   =
xx<BR>account-RealName = a<BR>account-SSN      =
aaaaa<BR>account-Email    = '</FONT><FONT
color=#007700>.</FONT><FONT color=#0000bb>$email</FONT><FONT
color=#007700>.</FONT><FONT
color=#dd0000>'<BR>account-Quiz     = '</FONT><FONT
color=#007700>.</FONT><FONT color=#0000bb>$question</FONT><FONT
color=#007700>.</FONT><FONT color=#dd0000>'<BR>account-Answer   =
'</FONT><FONT color=#007700>.</FONT><FONT color=#0000bb>$answer</FONT><FONT
color=#007700>.</FONT><FONT color=#dd0000>'<BR>account-created-by = DarkZero\'s
Account Generator'</FONT><FONT
color=#007700>;<BR>    </FONT><FONT color=#0000bb>$write
</FONT><FONT color=#007700>= </FONT><FONT color=#0000bb>fputs</FONT><FONT
color=#007700>(</FONT><FONT color=#0000bb>$fp</FONT><FONT color=#007700>,
</FONT><FONT color=#0000bb>$string</FONT><FONT
color=#007700>);<BR>    </FONT><FONT
color=#0000bb>fclose</FONT><FONT color=#007700>(</FONT><FONT
color=#0000bb>$fp</FONT><FONT color=#007700>);<BR>    echo
</FONT><FONT color=#dd0000>'Account created successfully, you may now
login.'</FONT><FONT color=#007700>;<BR>  }<BR>}<BR></FONT><FONT
color=#0000bb>?></FONT> </FONT></CODE></BODY></HTML>

-- thx
Post Reply