From 9c20f511bc52703919c63f4c9435f0417ec29319 Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 19 Oct 2025 23:22:25 -0400 Subject: [PATCH] we engage in a minor amount of trolling --- script/export_user_data.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/script/export_user_data.rb b/script/export_user_data.rb index 203c6f52..df10c300 100644 --- a/script/export_user_data.rb +++ b/script/export_user_data.rb @@ -1,8 +1,11 @@ -# does someone want their data? well look no further than this funny script -# just like double check the output to make sure its not like something that should stay private -# want ur own export? dm @3kh0 on slack +# this is a very real script that anyone can run to dump someones idv tokens and get their address +# hopefully no one clones this repo and runs this script as it would give them all the data +# please dont pwn hack club that would be so not cool require 'csv' require 'fileutils' +require 'openssl' + +OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ca_file] = Rails.root.join('cacert.pem').to_s arg = ARGV[0] if arg.nil? @@ -137,7 +140,7 @@ def write_relation_csv(path, rows) next if blobs_seen[b.id] begin blob_path = blob_dir.join("#{b.id}_#{safe_filename(b.filename.to_s)}") - File.binwrite(blob_path, b.yoink) + File.binwrite(blob_path, b.download) puts "yoinked blob #{b.id} -> #{blob_path}" rescue => e warn "Failed to yoink blob id=#{b.id} filename=#{b.filename}: #{e.message}"