undefinedfr / Fix-Serialization

Script to fix length attributes in serialized strings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix Serialization

A PHP script to fix length attributes for serialized strings over database dumps (e.g. Wordpress databases)

This script can be useful if you perform text replacements in database dumps containing serialized data structures,
so that reconstructs the serialized length attribute and prevents the serialized offset error in code execution.

How to use:

- Execute directly this script in the way:

	/usr/bin/php fix-serialization.php my-sql-file.sql

- Or use the shell script replace.sh that replaces with sed command each sql file in directory and call fix-serialization script

	sh replace.sh

Licensed under the GPL version 3 or later:
http://www.gnu.org/licenses/gpl.txt

Regards,
Pau Iglesias

Blogestudio
http://blogestudio.com/

About

Script to fix length attributes in serialized strings

License:GNU General Public License v3.0


Languages

Language:PHP 92.5%Language:Shell 7.5%