Jump to content

abumini

Members
  • Posts

    51
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by abumini

  1. 22 hours ago, .Elfocrash said:

    What's the password hashing setting you are using?

    I'ts base64, the default.

     

    "PasswordHashType": "Default",


    I've tried to debug the code, on login, the password verification, runs this method:
     

            public static string ToL2Password(this string str)
            {
                if (Startup.Configuration.GetValue<string>("TargetServerType") == "L2OFF")
                {
                    if (Startup.Configuration.GetValue<string>("PasswordHashType") == "Default")
                    {
                        return L2OffCrypto.EncryptLegacyL2Password(str);
                    }
                    else
                    {
                        return L2OffCrypto.EncryptMD5(str);
                    }
                }
                  /* and it always ends in choosing else, since the server is L2j, login works, change password doesnt*/
                else
                {
                    SHA1 shA1 = SHA1.Create();
                    byte[] bytes = new ASCIIEncoding().GetBytes(str);
                    str = Convert.ToBase64String(shA1.ComputeHash(bytes));
                    return str;
                }
            }

    and it works for the login, but when it comes to changing the password, it always ends up in error 501 :
     

    [HttpPost]
            [Route("changepass")]
            public async Task<IActionResult> ChangePassword([FromBody] ChangePassViewmodel model)
            {
                if (User.Identity.IsAuthenticated)
                {
                    var accountName = HttpContext.GetUsername();
    
                    var response = await _requestService.ChangePassword(accountName, model.CurrentPassword.ToLegacyL2Password(), model.NewPassword.ToL2Password());
                    switch (response.ResponseCode)
                    {
                        case 200:
                            return Content("ok");
                        case 500:
                            return Content(_localizer["Something went wrong!"]);
                        case 501:
                            return Content(_localizer["Invalid password!"]);
                    }
                }
                return Unauthorized();
            }

    And I don't get any error messages on the console either from the API or from the website.

  2. Hi again lol.
    After getting it to work on windows, I embarqued on a new journey, trying to get it to work on linux!
    And it hasn't been easy.

    Anyone here who has this platform,  the website part, working with linux?

    I could use some barinstorming or advices on what to use. 
    And before you start posting links, I've already fallowed the one Elfocrash left from Microsoft on running .NET core project on apache

     

  3. On 28/05/2017 at 9:01 PM, .Elfocrash said:

    The ApiKey can just be changed as long as you change it in both the web and the api projects.

     

    The error you are getting is probably illegal key size because you dont jave some needed jre libraries installed.

     

    http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

     

    Download JCE here and unpack in Java/Jre/lib/security

    is this inside Eclipse or on the operative system java folder?

    Answer:
    This must go inside the cliente that's running the ASP.net
    Got it working.

    It now seems so simple -.-'

    Sorry about beeing a pane in the ass for some.

     

  4. I've been tryin to get this L2ACP system to work on my server, but without any luck of working.
    I've compiled the projects, edited and corrected the api for Acis, published the web app, but my server for some unkown reasonit  doesnt responde to the requests made from the web app.

    I've checked port 8000 on my server firewall and was open, tryed with DMZ, and still with no luck.
    I believe something is wrong, but don't know why, the api was properly corrected, server is running without errors, but the web app doesnt comunicate with the port 8000 on the server.
    HELP :)
    thanks

  5. When I run the gameserver with the API in it, and test the port 8000 to see if the application is listening, the report says it doesnt.

    dumb question:
    Does the website app needs to be on the same machine as the gameserver to be able to run the website application?

    Problem solved, wrong number on NAS route. my bad....

  6. On 22/04/2018 at 10:17 PM, .Elfocrash said:

    You don't need a db connection on l2j mode because it is done on the server side with the L2ACP-api https://github.com/Elfocrash/L2ACP-api

    So the connection is made to the port 8000, to the api correct?
    I have my website in a differente server than my gameserver.
    However I'm not beeing able to get a connection to the api on the gameserver, port 8000 is open, I've even tryed with DMZ on.
    Is there anything we need to do on the API ?
    and yes, before you question the obvious, I'm not using http://127.0.0.1:8000/api, im using it with my gameserver ip.  http://gameserver_ip_here:8000/api

    Problem solved

  7. I've already noticed that a long time...
    And in my previews reply I questioned that same point, and I left an example on how I think it should be  in case of an l2j mysql connection.
    Should it look like this ? I couldn't connect either, so answers like your just beeing redundante don't help much, confirmation on the other hand help, like yes, or no, try it this way.
    So I'll ask again, should it be like this?
     

    connectionString_lin2world="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123"

    connectionString_lin2db="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123"

     

    because what is left there doesnt have login and password to connect to the database:

    "ConnectionString_lin2world": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2world;Integrated Security=True",
        "ConnectionString_lin2db": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2db;Integrated Security=True",

    from my breef contact with L2Off files I know there is a database lin2world and lin2db, on l2j there isn't one, so I'm a bit confused as to, am I looking at the proper place?

     

    I've never worked on VIsual Studio to launch apps for webserver, so I'm learning, the same way I learned how to work with java, the difference is that on java there is a lot of documentation, or used to be, on asp.net regarding lineage 2 projects there isn't much.

     

    If you could point me in the direction I need to go, I would really appreciate.

    Thanks

  8. 1 hour ago, Nightw0lf said:

    it looks you're pointing on l2j at "targetservertype"

    Can you please elaborate?
    targetservertype is l2j because the server is l2j, thats what i understanded that that field was meant to do: allow you to choose l2j or l2off.
    In my case, I wan't it to point to an Acis server


    Another consern here is this:
     

    "ConnectionString_lin2world": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2world;Integrated Security=True",
        "ConnectionString_lin2db": "Data Source=PJASICEK-PC\\SQLEXPRESS;Initial Catalog=lin2db;Integrated Security=True",

    by my understanding, this two connections are pointing to a l2off database, that is in PJASICEK-PC, and they are SQLExpress and not mysql, am I correct?
    Shouldn't it be like this in order to connect to a mysql database?:
    connectionString_lin2world="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123"

    connectionString_lin2db="Data Source=localhost;port=3306;Initial Catalog=SampleDB;User Id=mudassar;password=pass@123"
    I haven't found where the database config file for the logins are meant to be.
    I'm really confused -.-' googling about asp.net did not help much on this matter.

  9. What file should I use to configure the database connection? appsettings.json?
    image.png.49cde12e440553fec0e628ec81f2a65b.png

    if it's appsettings.json, can someone help me? I'm a bit confused on what do use here, I got gameserver,login and database on a the same server but the website is on a different server, can someone enlight me on what to do here?
    Thanks

  10. Hey everyone, I'm trying to renew my old l2j website (a costum builded one, very old lol), I wanted to use wordpress for this, but I'm having trouble making a connection with l2j account table and the wordpress account.
    I know there are a lot of plugins for user registration, but they are prebuilded to register in wordpress tables, I wanted them to register on l2j account table, or at least for the both to be synched, but since wordpress passwords have different encryption than l2j,  don't know how to make them work.
    I'm looking for any feedback from other previous attemps, guides, videos, I'm not afraid to do a search for content, but for this its beeing kind of hard to find anything.

  11. On 01/01/2017 at 4:16 AM, L2J NexuS said:

    PHP is the way but you can use Wordpress which is easy to manage it will solve both of your problems.

     

    Edit: Like Snoopi said.

    Hi Nexus, how can I use wordpress registration forms to solve that issue?
    Won't the encryption of wordpress passwords (salt+MD5) make it incompatible?

    Is there a guide you can send me that might help overcoming that problem?

     

  12. try to debug it. and see what's missing.

    Mine is working witouth a problem. if you bypass states "voiced_" then the htm command should be:
     

    <button value="Repair" action="bypass -h voice_startrepair $name" width="75" height="26" back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">


    You don't need to edit anything else in the htm.
    If it didn't work, try it on a fresh instance and track down the culprit.

     

     

  13. On 06/03/2018 at 7:10 PM, Seemann said:

    Hello! I ask to help with one problem.
    Installed this share on aCis 374 and, like, everything works, but it's not entirely correct.
    the .repair command launches, the window opens, but after clicking on the Repair button, it always comes out - Repair Attempt: Failed. And if you enter manually .startrepair <crar_name>, then everything works as it should.

    As if in a line     

    
    <button value = "Repair" action = "bypass -h voiced_startrepair $name".....

    $name - the repairChar value is not defined and the query is in the string
          

    
     if (command.startsWith ("startrepair") && (repairChar! = null))

    is always "null", so the error also gets out. I'm just starting to understand all this. Thank you.

    It's not the .repair thats wrong.
    Your VoiceCommand probably doesn't have a condition in the RequestBypassToServer.java for the command "voice_" or "voiced_", it depends on what version you created.

     

    Try adding this:
    https://pastebin.com/ttb3FW5Q

  14. Its not there, it's still black :/


    Just debugged and it looks like the server packets send the proper color in MSaddress, so on that case it must be client side no?

    Update: 
    tried on a fresh Interlude with no add ons and the problem persists.


    If there are any other ideas feel free to post them, Ill try everything I can.
    Appreciate all the help I can get with this situation, thanks! :D 
     

×
×
  • Create New...