Is it possible to somehow search the entire database, all columns of all tables?
The task is to scan the database for eval
.
Can you please tell whether you can implement such a search?
Is it possible to somehow search the entire database, all columns of all tables?
The task is to scan the database for eval
.
Can you please tell whether you can implement such a search?
If you do not need to programmatically search, then look at the program http://www.heidisql.com/ she can search for words throughout the database
It will be necessary to take into account that some columns allow varchar
other text
and the search should be carried out by different methods, where just by mask, where is full-text search. It is easy to select all columns of all tables.
SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME IN ( SELECT DISTINCT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'название базы')
Further AND
and it is possible to implement the search algorithm for the substring 'eval'
Source: https://ru.stackoverflow.com/questions/269088/
All Articles