[HELP]PHP script for PTS

Results 1 to 8 of 8
  1. #1
    Apprentice Bacon is offline
    MemberRank
    Jan 2008 Join Date
    5Posts

    [HELP]PHP script for PTS

    Hi,
    I am player on one Lineage C4 PTS with expansion to Interlude and I want to help them with making web section, where you can change pass, email.

    First of all I really need find the hash, how is pass in L2 PTS database coded.

    Anyone can help pls?

    Thx


  2. #2
    Apprentice lilshotay is offline
    MemberRank
    Aug 2005 Join Date
    14Posts

    Re: [HELP]PHP script for PTS

    Well the first thing you will need is a web server on the machine you're using to host the game. Right now what Im using is Xampp SourceForge.net: Downloading ...

    and then you will need the scripts for websites
    L2J Server Board | Access denied. (preconfigured)

    you can find some scripts on this forum too.


    and after installing xampp you will place all webfiles on the xampp httpdoc folder

  3. #3
    Apprentice Bacon is offline
    MemberRank
    Jan 2008 Join Date
    5Posts

    Re: [HELP]PHP script for PTS

    OK, thanks. I worry just about, if is the database of PTS and L2j same :(

  4. #4
    Member TM_Manus is offline
    MemberRank
    Jun 2007 Join Date
    GermanyLocation
    66Posts

    Re: [HELP]PHP script for PTS

    should be this in php: base64_encode(pack("H*", sha1(utf8_encode($pwd)))); where $pwd is the clear text pw...

    PS: don't forget mysql_real_escape_string ;)

  5. #5
    Apprentice Bacon is offline
    MemberRank
    Jan 2008 Join Date
    5Posts

    Re: [HELP]PHP script for PTS

    Quote Originally Posted by TM_Manus View Post
    should be this in php: base64_encode(pack("H*", sha1(utf8_encode($pwd)))); where $pwd is the clear text pw...

    PS: don't forget mysql_real_escape_string ;)
    I've tried it, but if I compare with this:
    Code:
    INSERT INTO lin2db.dbo.user_auth(account,password,quiz1,quiz2,answer1,answer2)
    VALUES ('root', CONVERT(binary, 0xb1be70e9a83f19192cb593935ec4e2e2), '', '', CONVERT(binary, ''), CONVERT(binary, ''));
    and your code I don't get same results.

    But I can only think, what is this coded "0xb1be70e9a83f19192cb593935ec4e2e2", but it should be somethink like "test", "root", "pass", or "password".

    I searched lot of sites, but there were only L2j scripts :(

  6. #6
    Member TM_Manus is offline
    MemberRank
    Jun 2007 Join Date
    GermanyLocation
    66Posts

    Re: [HELP]PHP script for PTS

    encryption havent changed since c4. what u simply do is create the string in utf8 then create a sha1 hash and then pack it with base64. should work.
    EDIT:
    try this:
    PHP Code:
    <?php
    $pwd 
    "test";
    $crypted base64_encode(pack("H*"sha1(utf8_encode($pwd))));
    echo (
    "$crypted");
    ?>
    and then create an account with password "test" then compare the echo with the one in the db. should be the same.

  7. #7
    Apprentice Bacon is offline
    MemberRank
    Jan 2008 Join Date
    5Posts

    Re: [HELP]PHP script for PTS

    Thank you very much, my friend!

    And is there any opportunity of decoding it?

  8. #8
    Member TM_Manus is offline
    MemberRank
    Jun 2007 Join Date
    GermanyLocation
    66Posts

    Re: [HELP]PHP script for PTS

    A hash can not be decoded (thats the function of it. u could brute force is but this needs very much time and has no guarantee if it works.). so it is impossible.



Advertisement