Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbhost = 'localhost';
- $dbuser = 'root';
- $dbpass = '';
- $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
- $dbname = 'cracking';
- mysql_select_db($dbname);
- $try = "";
- $file = fopen("filtered.txt", "r") or exit("Unable to open file!");
- while(!feof($file))
- {
- $try = fgets($file);
- $try = str_replace("\n","",$try);
- $hash = hash("SHA256", $try);
- $try = mysql_real_escape_string($try);
- $q = mysql_query("INSERT INTO sha256 (hash,password) VALUES ('$hash' , '$try' )");
- }
- fclose($file);
- echo "Done.";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement