Jump to content

L2 Acp (Account - Admin Control Panel)


Recommended Posts

10 minutes ago, .Elfocrash said:

What's the password hashingย setting you are using?

I'm not at home now, but I think i left it as default.ย  Where can I confirm it ?

Im getting error 501 Invalid Password.

Link to comment
Share on other sites

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.

Edited by abumini
extra content ^^
Link to comment
Share on other sites

  • 2 months later...

help me please when I try to log on the site of an error in the game server I'll post it here:

ย 

Exception in thread "Thread-9" java.lang.NoClassDefFoundError: com/google/gson/JsonParser
ย  ย  ย  ย  at com.elfocrash.l2acp.L2ACPServer$RequestHandler.handle(L2ACPServer.java:71)
ย  ย  ย  ย  at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
ย  ย  ย  ย  at sun.net.httpserver.AuthFilter.doFilter(Unknown Source)
ย  ย  ย  ย  at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
ย  ย  ย  ย  at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(Unknown Source)
ย  ย  ย  ย  at com.sun.net.httpserver.Filter$Chain.doFilter(Unknown Source)
ย  ย  ย  ย  at sun.net.httpserver.ServerImpl$Exchange.run(Unknown Source)
ย  ย  ย  ย  at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(Unknown Source)
ย  ย  ย  ย  at sun.net.httpserver.ServerImpl$Dispatcher.handle(Unknown Source)
ย  ย  ย  ย  at sun.net.httpserver.ServerImpl$Dispatcher.run(Unknown Source)
ย  ย  ย  ย  at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.google.gson.JsonParser
ย  ย  ย  ย  at java.net.URLClassLoader.findClass(Unknown Source)
ย  ย  ย  ย  at java.lang.ClassLoader.loadClass(Unknown Source)
ย  ย  ย  ย  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
ย  ย  ย  ย  at java.lang.ClassLoader.loadClass(Unknown Source)
ย  ย  ย  ย  ... 11 more

Link to comment
Share on other sites

16 hours ago, kslobaosp said:

help me please when I try to log on the site of an error in the game server I'll post it here:

You didn't reference the gson library.

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
On 1/8/2019 at 10:23 PM, kslobaosp said:

Elfocrash ะฏ ะฟะพะผะตัั‚ะธะป gson ะฒ lib ะธะณั€ะพะฒะพะณะพ ัะตั€ะฒะตั€ะฐ ะธ ั€ะตัˆะธะป ะตะต ะฑะพะปัŒัˆะต, ั‚ะตะฟะตั€ัŒ ัƒ ะผะตะฝั ะฟั€ะพะฑะปะตะผะฐ ะฒ ัะตั‚ะธ :(

ย 

image.thumb.png.d403a5b69a41895969c41481980b821d.png

ย 

ะฃ ะผะตะฝั ะฟะพั…ะพะถะฐั ะฟั€ะพะฑะปะตะผะฐ.

ย 

P.S.ย I solved the problem using commit 5527abef518d665a4c3be89ca91a3ff57e423609.

The problem appeared after the transition to NetCore2.1

Edited by webdes27
Link to comment
Share on other sites

  • 2 weeks later...
On 5/2/2017 at 7:39 AM, Elfocrash said:


Security
L2ACP uses symmetric encryption for the payloads and an api key validation.
As long as they are changed you will have no problem with security.ย 
If you want to be 100% secure, make the server accept requests only from the ip that the site is hosted.
If you want to be 101% secure, then host them together and don't expose the api port.
ย 

ย 

@Elfocrashย Thanks you for theย beatiful code. But i have a question to you, and i hope not to offend you. Is the code still secure? i ask because the code was writed a few years ago and i mustย know if is secure. My apoligiesย if i offended you. Thanks

Edited by matiasf
Link to comment
Share on other sites

5 hours ago, matiasf said:

ย 

@Elfocrashย Thanks you for theย beatiful code. But i have a question to you, and i hope not to offend you. Is the code still secure? i ask because the code was writed a few years ago and i mustย know if is secure. My apoligiesย if i offended you. Thanks

It is, however I would advice you to change the api key to one of your own. On top of that, I would advice you use SSL on the l2 webserver but this is optional.

Link to comment
Share on other sites

Hello, amazing feature, is it possible to use with l2jsunrise or does the coding vary too much from acis?

Would I only need to adjust imports or need decent java skills to adapt?

Edited by lixxit
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • /data/attachments/4/4519-0e10f165cf34562cd44d346d47967752.jpg Dear friends! September 27 we start Event for Olympiad games on Open Beta server Start Olympiad games in 19:00 (UTC +3) September 27 Fights will be till 23:40, then we get Heroes (after 00:00) All who get Hero status, will receive 500 ToDs. Best 5 Hero, who will get the most PTS, will get 800 ToDs instead of 500. ToDs you will get on your Master Account balance No class vs class fights Enchant Level Restrictions: S gr +6, A gr + 7, C/B gr + 16. On Olympiad, all items that higher than restriction level will be removed, and you won't be able to use them or wear them Talent Tree avaible only Tier 1 (same like will be on 1st Oly cycle on Live server) Skill enchant lvl: 15 max for 2nd profession, 7 for 3rd profession - its global rules for all Beta Good luck to Everyone! ย 
    • I'm currently working on an advanced auto-farm compatible with older chronicles (C4, IL, HF, etc) and older L2J-Mobius builds. https://imgur.com/a/LJS2OMC
    • GamezAION 4.8 High Quality Relaunch Coming Friday 4th October 2024 ย  All Latest Retail Skin Appearances Unique RvR Battlegrounds (Guardian) (Battle of Gods) Added New PvPvE Map with Seasonal Ranking System Active Anticheat System & Shugo Console Support ย  Download links available on website ย  https://gamezaion.com Join the Action!
    • ๐ŸŒŸ Step Into Lin2Age C4 โ€“ Your Nostalgic Journey Awaits! ๐ŸŒŸ Get ready for an unforgettable adventure filled with fierce battles โš”๏ธ, mighty clans ๐Ÿ‘‘, and epic quests ๐ŸŒ! Lin2Age is a custom Lineage 2 server designed to bring you the ultimate classic experience, enriched with modern features. Whether you're a battle-hardened veteran or a fresh-faced newcomer, there's a place for everyone in our world! ๐Ÿ›ก๏ธโœจ ย  ๐Ÿ”ฅ Why Lin2Age is Your Best Choice ๐Ÿ”ฅ โœ… Dynamic Events & Rewards: Enjoy thrilling features like TVT, Magic Roulette, Daily Rewards, measures to enhance your gameplay. โœ… Advanced Security Features: Enjoy robust protections with Anti-Bot measures, Password Lock, and Raid Boss Information to keep your adventures safe and secure. โœ… Balanced Gameplay for All: Dive into a harmonious blend of PvP, PvE, and crafting! Lin2Age combines the finest elements from Scions of Destiny MasterWork and Interlude, ensuring an immersive experience for every playstyle! ๐Ÿ›ก๏ธโš”๏ธ โœ… Epic Gear & AIO Buffer: Equip Legendary Armor and powerful jewels! Our All-In-One Buffer is at your service, empowering you to dominate the battlefield! ๐Ÿ’Ž๐Ÿ’ช โœ… Unique Custom Features: Embark on exclusive quests ๐Ÿ“œ and take on formidable raid bosses ๐Ÿ‰! Lin2Age is filled with thrilling content that keeps your adventures lively and exciting. ๐ŸŽฏ๐ŸŽฎ โœ… Thriving Community: Join a vibrant community where teamwork and friendship thrive! Whether leading a clan or joining one, support is always at your fingertips! ๐Ÿค๐Ÿ‘‘ โœ… Regular Updates & Events: Experience continuous excitement! With frequent updates, fresh custom content, and epic events, Lin2Age is always evolving, thanks to your invaluable feedback! ๐Ÿ”„๐Ÿ† โœ… Smooth, Lag-Free Experience: Enjoy uninterrupted gameplay on our top-tier serversโ€”say goodbye to lag! ๐Ÿš€โšก ย  ๐Ÿ’Ž Fair Play Above All ๐Ÿ’Ž At Lin2Age, we champion a balanced and equitable gaming experience. Our No Pay-to-Win policy ensures that success comes from skill, strategy, and teamwork, not your wallet! ๐Ÿ’ช Everything you need to thrive can be earned through quests, crafting, and epic battles! ๐Ÿ†๐ŸŽฎ ย  ๐Ÿ”‘ Key Features Youโ€™ll Love ๐Ÿ”‘ ๐Ÿ”น Rates: EXP x45, SP x45, ADENA x300โ€”meticulously balanced for your enjoyment! ๐Ÿ”น Custom Classes & Skills: Discover unique classes and skills that make PvP combat dynamic! โš”๏ธ ๐Ÿ”น Epic Raid Bosses: Challenge yourself against custom bosses for legendary loot! ๐Ÿ’€๐Ÿน ๐Ÿ”น Clan Wars & Sieges: Test your strength in exhilarating clan wars and castle sieges! ๐Ÿฐโš”๏ธ ๐Ÿ”น Dedicated Support Team: Our active Game Masters are committed to ensuring fairness and smooth gameplay! ๐Ÿ‘ฅ๐Ÿ›ก๏ธ โš”๏ธ Join the Lin2Age Beta Test โ€“ Adventurers Needed! ๐Ÿ›ก๏ธ Are you ready to experience the glory of Lineage 2, reimagined for a new generation? ๐ŸŒ Become part of our exclusive beta test and help shape the future of Lin2Age! ๐Ÿš€โœจ Start your epic journey today. Welcome to Lin2Age C4! ๐Ÿ’ฌ Connect with Us on Discord Join our community, stay updated, and take part in the latest events! Discord: https://discord.gg/qKJnQ7Kp5X Youtube: https://www.youtube.com/watch?v=nnO-J_uAqvg https://prnt.sc/b3tRHlxT6YS7
  • Topics

ร—
ร—
  • Create New...