SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 14/02/2017, 02:50 PM   #21
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,698
Reputation: 1177
Default Re: safeDialogs - Complete protection against spoofed dialog data!

Quote:
Originally Posted by GoldenLion View Post
I don't have any filterscripts nor easyDialogs include and I don't call OnDialogResponse anywhere. Also I return 1 there already, I never return 0. :P I'll try 1.0.2.
You should have OnDialogResponse defined in your script, even if there's nothing to do with it, for now.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 14/02/2017, 02:58 PM   #22
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 944
Reputation: 142
Default Re: safeDialogs - Complete protection against spoofed dialog data!

Quote:
Originally Posted by Lordzy View Post
You should have OnDialogResponse defined in your script, even if there's nothing to do with it, for now.
I have it, I thought you meant calling it like this lol:
Code:
OnDialogResponse(0, ...);
GoldenLion is offline   Reply With Quote
Old 14/02/2017, 03:02 PM   #23
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,698
Reputation: 1177
Default Re: safeDialogs - Complete protection against spoofed dialog data!

Quote:
Originally Posted by GoldenLion View Post
I have it, I thought you meant calling it like this lol:
Code:
OnDialogResponse(0, ...);
I got confused when you said that you don't call OnDialogResponse anywhere. But yes, that's what I meant earlier whether you're calling explicitly. I looked into the code and realized that if OnDialogResponse is not defined at all, spoof with 0th reason will be called.

Have you tried using v1.0.2? - https://raw.githubusercontent.com/Lo...afeDialogs.inc

Also, let me know the includes and plugins that are in use. Try debugging with a plane script with your dialog codes and see if it's still happening. I tested it and I couldn't find such an issue, unless I use additional filterscripts that calls dialog features. (I'm working on resolving it, quite busy at the moment)
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 15/02/2017, 03:24 PM   #24
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 944
Reputation: 142
Default Re: safeDialogs - Complete protection against spoofed dialog data!

Quote:
Originally Posted by Lordzy View Post
I got confused when you said that you don't call OnDialogResponse anywhere. But yes, that's what I meant earlier whether you're calling explicitly. I looked into the code and realized that if OnDialogResponse is not defined at all, spoof with 0th reason will be called.

Have you tried using v1.0.2? - https://raw.githubusercontent.com/Lo...afeDialogs.inc

Also, let me know the includes and plugins that are in use. Try debugging with a plane script with your dialog codes and see if it's still happening. I tested it and I couldn't find such an issue, unless I use additional filterscripts that calls dialog features. (I'm working on resolving it, quite busy at the moment)
I'm using sscanf, streamer, MySQL and crashdetect. Also 1.0.2 works.
GoldenLion is offline   Reply With Quote
Old 20/02/2017, 08:20 PM   #25
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re: safeDialogs - Complete protection against spoofed dialog data!

all my dialogs stopped working after using the include, its considering all texts as an attack, basicly my dialogs are set upon a variable where the items list is stocked there, so I hope theres a fix that I could implent into my system to make it compatible with your anti cheat engine.
Naruto_Emilio is offline   Reply With Quote
Old 20/02/2017, 10:26 PM   #26
iKernel
Little Clucker
 
iKernel's Avatar
 
Join Date: Apr 2016
Posts: 1
Reputation: 0
Default Re: safeDialogs - Complete protection against spoofed dialog data!

Quote:
Originally Posted by Naruto_Emilio View Post
all my dialogs stopped working after using the include, its considering all texts as an attack, basicly my dialogs are set upon a variable where the items list is stocked there, so I hope theres a fix that I could implent into my system to make it compatible with your anti cheat engine.
Same here. When some user attempts to respond a Dialog, is detected as 'Dialog Spoof' and blocked (return 0 as I defined in 'OnDialogSpoof'). The user can only respond to the first Dialog, but all the next are detected as spoofing.
iKernel is offline   Reply With Quote
Old 21/02/2017, 02:43 AM   #27
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,698
Reputation: 1177
Default Re: safeDialogs - Complete protection against spoofed dialog data!

I've been in a tour which is why I haven't posted any updates in this topic. I'll reach home today and will be releasing the latest commit.

The problem with the current version is that it resets once your response is handled, which is why other dialog responses are flagged as spoofs. For now, consider using v1.0.2 of this include. The only issue with that to be concerned very much is that it doesn't support if any of your filterscripts are using dialog features.

I extremely apologise for the delay that has been caused, life's getting me too much busy these days.
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 23/02/2017, 11:02 AM   #28
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re: safeDialogs - Complete protection against spoofed dialog data!

Still waiting for the update
Naruto_Emilio is offline   Reply With Quote
Old 11/03/2017, 06:52 PM   #29
TheLeech
Banned
 
Join Date: Aug 2015
Location: Under your bed
Posts: 188
Reputation: 6
Default Re: safeDialogs - Complete protection against spoofed dialog data!

When I use this system other dialogs if I load them from within the dialog doesn't work / become spoofed.
TheLeech is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spoofed Cookie Issue Rick General 14 06/07/2016 03:31 AM
[Tutorial] Protection against '%' dialog vulnerability! Metharon Tutorials 3 06/06/2016 04:21 PM
Not saving complete data XaibBaba Scripting Help 0 10/06/2015 03:48 PM
[Dialog] Listing MySQL data inside a List Dialog vIBIENNYx Scripting Help 11 10/09/2012 11:19 PM
Player Protection. Like Protection when entering checkpoint. and interior. stevestelford Scripting Help 2 08/06/2012 12:03 AM


All times are GMT. The time now is 01:34 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.