L
L
Leonem Rubrum2019-07-29 17:01:29
Burglary protection
Leonem Rubrum, 2019-07-29 17:01:29

Is it possible to generate promotional codes for input?

Can I generate and enter promo codes for promotions to receive prizes? Is it legal at all and what can they do for this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Bashinsky, 2019-07-29
@Leonem_Rubrum

Depends on the implementation of the promo code system.
You can generate it simply by iterating over the lines in the same template as on the site, if there is a template.
1) If the promo code contains information about the bonus action (for example, to earn 100 rubles), then this can be generated knowing the algorithm + secret key, but you rarely see such ones, and it makes no sense to select a secret key.
2) The promo code is generated upon issuance and stored in the database, by itself it makes no sense - it's just a key, and you can get something with this key, there is a vulnerability in this option.
Let's say someone was given a key, and the owner has not yet activated it, if you're lucky, you'll generate it and activate it, but such holes are also closed, using the captcha method upon activation, or even more strongly linking the promo code to the user, that is, only the specified one can activate it user.
Therefore, it makes no sense to generate them, because basically the templates are somewhat similar to GUIDs, and the GUID practically does not repeat itself.
https://ru.wikipedia.org/wiki/GUID

D
Dimonchik, 2019-07-29
@dimonchik2013

if caught

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question