cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.68k stars 205 forks source link

Support for Sequel Pro SQL dumps #70

Closed royduin closed 4 years ago

royduin commented 5 years ago

SQL dumps from Sequel Pro start with:

# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.27-0ubuntu0.16.04.1)
# Database: db
# Generation Time: 2019-11-01 17:41:54 +0000
# ************************************************************
cgsecurity commented 5 years ago

Can you check if your patch works using fidentify ? It looks like the first line is missing from the signature.

royduin commented 5 years ago

This should do it, tested with:

.photorec.sig

sql 0 "# ************************************************************\n# Sequel Pro SQL dump"
> fidentify dump.sql
dump.sql: sql