Новая Школа - онлайн-школа подготовки к ЕГЭ
Задача Задача №3622784
А
Аноним
18 июня 2026 10:46 · публичный вопрос
А
Аноним

(select concat(0x3a,char(64),char(52),char(51),char(55),char(48),char(49),@@version,char(64),char(49),char(48),char(55),char(51),char(52)))

Нейросеть18 июня 2026 10:46

Short explanation:

  • This is a MySQL payload that builds a string by concatenating several pieces.
  • 0x3a is the hex for the colon ":".
  • char(64) -> "@"
  • char(52), char(51), char(55), char(48), char(49) -> "4","3","7","0","1" respectively, so that part becomes "@43701".
  • @@version inserts the MySQL server version as a string.
  • The last part char(64), char(49), char(48), char(55), char(51), char(52) yields "@10734".
  • Putting it together, the final string is: ":" + "@43701" + + "@10734" i.e. ":@43701@10734"

Example: if the server version is 8.0.29, the result would be ":@437018.0.29@10734".

What this is doing (high-level):

  • It’s a compact way to leak the MySQL server version via a SELECT result by obfuscating the string (using CHAR and CONCAT).
  • Such a pattern is commonly used in SQL injection tests to fingerprint the server.

Safety notes:

  • Do not run or test injections on systems you don’t own or don’t have explicit permission to test.
  • In an exam or lab, analyze such payloads to understand how fingerprinting via SQL injection works, not to deploy them against real systems.

If you want, I can:

  • Break down each function (CONCAT, CHAR, @@version) in more detail.
  • Discuss defensive measures to prevent this kind of leakage (prepared statements, parameterized queries, least-privilege DB accounts, input validation, WAF rules, etc.).
(select concat(0x3a,char(64),char(52),char(51),char(55),char(48),char(49),@@version,char(64),char(49),char(48),char(55),char(51),char(52)))
Short explanation: - This is a MySQL payload that builds a string by concatenating several pieces. - 0x3a is the hex for the colon ":". - char(64) -> "@" - char(52), char(51), char(55), char(48), char(49) -> "4","3","7","0","1" respectively, so that part becomes "@43701". - @@version inserts the MySQL server version as a string. - The last part char(64), char(49), char(48), char(55), char(51), char(52) yields "@10734". - Putting it together, the final string is: ":" + "@43701" + + "@10734" i.e. ":@43701@10734" Example: if the server version is 8.0.29, the result would be ":@437018.0.29@10734". What this is doing (high-level): - It’s a compact way to leak the MySQL server version via a SELECT result by obfuscating the string (using CHAR and CONCAT). - Such a pattern is commonly used in SQL injection tests to fingerprint the server. Safety notes: - Do not run or test injections on systems you don’t own or don’t have explicit permission to test. - In an exam or lab, analyze such payloads to understand how fingerprinting via SQL injection works, not to deploy them against real systems. If you want, I can: - Break down each function (CONCAT, CHAR, @@version) in more detail. - Discuss defensive measures to prevent this kind of leakage (prepared statements, parameterized queries, least-privilege DB accounts, input validation, WAF rules, etc.).