m4heshd / offlinebay

Official repository of the project OfflineBay
MIT License
118 stars 23 forks source link

I'm trying to understand the csv DB and how to maybe read or write it in another software. #13

Closed elico closed 5 years ago

elico commented 5 years ago

The file has this:

#ADDED;HASH(B64);NAME;SIZE(BYTES)
2018-Jan-31 21:01:58;rlrRc5m5ZYEb0WupkEuThZVEUHM=;"Windows 10 Version 1709 x64 (Updated Dec 2017)";10388732142

But the info hash is: DB76A14AF3267009785F93454E84C3883A3BD21B So how technically I get from the rlrRc5m5ZYEb0WupkEuThZVEUHM= back to the info hash? I have seen the JS at somewhere but something is missing for me to understand it.

elico commented 5 years ago

OK I found the issue. I am using ruby and I matched the wrong records in the csv file.

#!/usr/bin/env ruby
require "base64"

target = "DB76A14AF3267009785F93454E84C3883A3BD21B"

# Read the recodrd from csv and found the base 64 line
base64string="23ahSvMmcAl4X5NFToTDiDo70hs="
puts Base64.decode64(base64string).unpack("H*").first.upcase
> DB76A14AF3267009785F93454E84C3883A3BD21B 
techtacoriginal commented 5 years ago

Closing this since the issue is solved. 🤘