Active+ Member Mutulic 615 Posted February 20, 2024 Active+ Member Share Posted February 20, 2024 Hello comunity, This is a API script for Metin2 - PHP version TCP to P2P Connection. Thanks @ Gurgarath for explain how metin2 works This is the hidden content, please Sign In or Sign Up Alternative download links → This is the hidden content, please Sign In or Sign Up 87 3 1 1 1 18 3 45 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/ Share on other sites More sharing options...
Active Member Volvox 1753 Posted February 22, 2024 Active Member Share Posted February 22, 2024 Looks nice, Thx ! 1 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163311 Share on other sites More sharing options...
Active+ Member Mutulic 615 Posted February 22, 2024 Author Active+ Member Share Posted February 22, 2024 3 hours ago, Volvox said: Looks nice, Thx ! Welcome Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163313 Share on other sites More sharing options...
leunam0830 2 Posted March 4, 2024 Share Posted March 4, 2024 On 2/20/2024 at 12:40 PM, Mutulic said: Hello comunity, This is a API script for Metin2 - PHP version TCP to P2P Connection. Thanks @ Gurgarath for explain how metin2 works This is the hidden content, please Sign In or Sign Up Alternative download links → This is the hidden content, please Sign In or Sign Up Thanks bro one question, It is possible to add more server-side functions to Metin? 1 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163616 Share on other sites More sharing options...
Active+ Member Mutulic 615 Posted March 4, 2024 Author Active+ Member Share Posted March 4, 2024 8 hours ago, leunam0830 said: Thanks bro one question, It is possible to add more server-side functions to Metin? Sure, you can add by game source and using my php code to access it Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163631 Share on other sites More sharing options...
Jimmermania 32 Posted March 6, 2024 Share Posted March 6, 2024 Hi, i changed the details but it keeps loading. Which port this script uses? i use martysama files. “𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163669 Share on other sites More sharing options...
Active+ Member Mutulic 615 Posted March 6, 2024 Author Active+ Member Share Posted March 6, 2024 5 hours ago, Jimmermania said: Hi, i changed the details but it keeps loading. Which port this script uses? i use martysama files. i'm not sure, i think 13000 or 13001 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163677 Share on other sites More sharing options...
Jimmermania 32 Posted March 7, 2024 Share Posted March 7, 2024 18 hours ago, Mutulic said: i'm not sure, i think 13000 or 13001 No it doesnt work. Which port should be there? auth or ch1 ? “𝓐𝓵𝓵 𝔀𝓮 𝓱𝓪𝓿𝓮 𝓽𝓸 𝓭𝓮𝓬𝓲𝓭𝓮 𝓲𝓼 𝔀𝓱𝓪𝓽 𝓽𝓸 𝓭𝓸 𝔀𝓲𝓽𝓱 𝓽𝓱𝓮 𝓽𝓲𝓶𝓮 𝓽𝓱𝓪𝓽 𝓲𝓼 𝓰𝓲𝓿𝓮𝓷 𝓾𝓼.” ~ 𝓖𝓪𝓷𝓭𝓪𝓵𝓯 𝓽𝓱𝓮 𝓖𝓻𝓮𝔂 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-163692 Share on other sites More sharing options...
terrorr 15 Posted August 25, 2024 Share Posted August 25, 2024 Hardcoded Credentials: Storing sensitive information like $password directly in the code is risky. If the file is exposed due to a misconfiguration, anyone can see and use your password. Recommendation: Store sensitive data outside of your web root, or use environment variables for better security. Input Validation and Sanitization: User inputs (playername, playernamemute, and notice) are directly used in socket commands without any validation or sanitization, leading to potential command injection attacks. Recommendation: Implement input validation, ensuring that user inputs are properly sanitized and conform to expected formats. Error Handling: The code exits on errors without proper handling, potentially exposing the server environment or command errors to the user. Recommendation: Use proper error handling mechanisms (like logging errors) instead of abruptly terminating script execution. Command Injection Risk: Users can inject unwanted commands by manipulating the input fields. Recommendation: Validate commands against a whitelist of allowed commands or use prepared statements if applicable. CSRF Vulnerability: The form submissions are susceptible to Cross-Site Request Forgery (CSRF) attacks. Recommendation: Implement CSRF tokens in form submissions. Socket Communication Exposure: If the socket communication is exposed without proper security measures, such as encryption (TLS/SSL), sensitive information can be intercepted. Recommendation: Consider implementing secure communication channels (like SSL) for socket connections. 1 Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-166697 Share on other sites More sharing options...
Active+ Member Mutulic 615 Posted August 26, 2024 Author Active+ Member Share Posted August 26, 2024 That's just a demo, bro Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-166700 Share on other sites More sharing options...
Sauug 74 Posted October 8, 2024 Share Posted October 8, 2024 On 3/7/2024 at 5:37 PM, Jimmermania said: No it doesnt work. Which port should be there? auth or ch1 ? I use too and I have found how to work if you always need I can help you. Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-167406 Share on other sites More sharing options...
Active Member ReFresh 2634 Posted October 8, 2024 Active Member Share Posted October 8, 2024 On 3/6/2024 at 6:21 PM, Jimmermania said: Hi, i changed the details but it keeps loading. Which port this script uses? i use martysama files. It should be auth port, but there are two things, which needs to be changed: ADMINPAGE_IP: ADMINPAGE_PASSWORD: Because in code is protection against flood: Spoiler #ifdef ENABLE_PORT_SECURITY if (strcmp(inet_ntoa(peer.sin_addr), "127.0.0.1")) // refuse if remote host != localhost (only the same machine must be able to connect in here) { sys_log(0, "BLOCK CONNECTION FROM %s", inet_ntoa(peer.sin_addr)); Destroy(); return false; } #endif I'll be always helpful! Link to comment https://metin2.dev/topic/32209-metin2api-php-script-mutulic/#findComment-167414 Share on other sites More sharing options...
Recommended Posts
Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/