Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Simple lookup for database

I have a bunch of databases and someone scammed my mate and I'm trying to find a hash of his account. I have reasons to believe that the databases that I have contain some of his information.

The database dumps that I have are in .db .sql .sqlite and .txt
I have a web server where I can upload all the databases.

I just want to search through my DB's all at once. Currently, they are in a folder and I just use the search function but it doesn't search inside all the files, just the file name.

If anyone can help then i can share my DB's if you need a certain one.

I was hoping there is a simple source or script that I can use.

All I really want to do is search all the databases for a certain string like an email or something all at once.

Thanks for reading. Hope I can get some help.
I should have posted this elsewhere can a staff member move this for me
If you know what you are looking for, why don't you just Ctrl+F ?
[Image: vibesignature.gif]
“Whatever Your Mind Can Conceive and Believe, It Can Achieve.” – Napoleon Hill
Are you just looking to search through a bunch of files?
Ctrl F is the easiest method to go, no need for PHP
...
To all the responses, i've been using ctrl f but it doesn't search through .sql and those extensions inside the file itself even .txt
it just searches the file name im trying to see inside so if theres a user itll check all the dbs in the directory for that user as the title of the file


i want it to search in the file.
I personally just shoved everything in one text file and do this

PHP Code

<?php
$searchthis 
= $_GET['string'];
$matches = array();

// Your database file
$handle = @fopen("YourDatabase.txt", "r");
if (
$handle)
{
    while (!
feof($handle))
    {
        
$buffer = fgets($handle);
        if(
strpos($buffer, $searchthis) !== FALSE)
            
$matches[] = $buffer;
    }
    
fclose($handle);
}

// Shows if there is nothing found
if (empty($matches)) {
 echo 
"Nothing Found";
} else {
print_r($matches);
}
?>
[Image: 4e6fc44f2bef68a89bc12d0e7ff86db1.png]
BTC: 1FsVyWyssSr9XNGyf2BtDuamZC3a3WmnWA
Use grep for linux or a Windows port of it.

https://wingrep.codeplex.com/


Be aware, some databases files may be in an encrypted format.
thank you guys

saints you are.

much love


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by Gonz0Nov 6, 2017 08:21 AM 7 409 Nov 6, 2017 08:21 AM
Last Post: V3t3r4n
[PHP] by Kasual™Oct 29, 2016 03:13 AM 24 3,713 Oct 29, 2016 03:13 AM
Last Post: Maudiy
[PHP] by Linus TorvaldsOct 8, 2016 11:09 AM 14 465 Oct 8, 2016 11:09 AM
Last Post: Linus Torvalds