-- Check if 'socket' library is available local socket = require("socket") if not socket then print("Error: 'socket' library not found. Please install it.") os.exit(1) end
-- Parse command-line arguments local args = {...} if [HASH=1412]#args[/HASH] < 1 then print("Usage: lua server_file_dumper.lua <server_address>") os.exit(1) end local server_address = args[1]
-- Download a file using 'socket.http' module local function download_file(url, file_path) -- Create a new TCP connection local connection = socket.tcp() -- Connect to the remote host and port connection:connect(url:match("^(.-):(.-)$"):match("(.-):([0-9]+)"), url:match("^(.-):(.-)$"):match(":([0-9]+)$")) -- Send the HTTP request connection:send(string.format("GET %s HTTP/1.1\r\nHost: %s\r\nConnection: close\r\n\r\n", url, url:match("^(.-):(.-)$"):match("(.-)"))) -- Read the HTTP response local response = "" repeat local chunk = connection:receive("*l") if chunk then response = response .. chunk end until not chunk -- Close the TCP connection connection:close() -- Parse the HTTP response local headers, body = response:match("(.-)\r\n\r\n(.*)") -- Create a new file local file = io.open(file_path, "w") -- Write the file content file:write(body) -- Close the file file:close() -- Print a success message print("Downloaded: " .. file_path) end
-- Download all files in the FiveM server's resources directory local url = "http://" .. server_address .. "/resources/" local files = {} local start = string.find(url, "/") local stop = string.find(url, "/", start + 1) for entry in url:gmatch("[^/]+") do table.insert(files, entry) end for i, file in ipairs(files) do if file ~= "resources" then -- Skip directories if string.sub(file, -1) ~= '/' then -- Set the file path and name local file_path = table.
0
2y ago#63
[URL='https://ipinfo.io/45.84.198.111']45.84.198.111:30120[/URL] s s ss s s s
0
2y ago#64
j j j j j j
0
2y ago#65
s s s s s
0
2y ago#66
s s s s s
0
2y ago#67
s s s s s
0
2y ago#68
nice littel thing you have og tak tak mange gange
0
2y ago#69
nice leak my dude keep up
0
2y ago#70
Bro jeg er scammed af ham
se her hvordan jeg bliv det ->> [CHARGE=99]Bro tak fordi du gav mig rød[/CHARGE]
0
2y ago#71
nogen som har filerne som vil give dem gratis? add mig på discord - dan1el8458
0
2y ago#72
thank you so much bro !
0
2y ago#73
good script brother wow excellent
0
2y ago#74
Love this upload bro thanks a lot was looking for it
89 replies
local socket = require("socket")
if not socket then
print("Error: 'socket' library not found. Please install it.")
os.exit(1)
end
-- Parse command-line arguments
local args = {...}
if [HASH=1412]#args[/HASH] < 1 then
print("Usage: lua server_file_dumper.lua <server_address>")
os.exit(1)
end
local server_address = args[1]
-- Download a file using 'socket.http' module
local function download_file(url, file_path)
-- Create a new TCP connection
local connection = socket.tcp()
-- Connect to the remote host and port
connection:connect(url:match("^(.-):(.-)$"):match("(.-):([0-9]+)"), url:match("^(.-):(.-)$"):match(":([0-9]+)$"))
-- Send the HTTP request
connection:send(string.format("GET %s HTTP/1.1\r\nHost: %s\r\nConnection: close\r\n\r\n", url, url:match("^(.-):(.-)$"):match("(.-)")))
-- Read the HTTP response
local response = ""
repeat
local chunk = connection:receive("*l")
if chunk then
response = response .. chunk
end
until not chunk
-- Close the TCP connection
connection:close()
-- Parse the HTTP response
local headers, body = response:match("(.-)\r\n\r\n(.*)")
-- Create a new file
local file = io.open(file_path, "w")
-- Write the file content
file:write(body)
-- Close the file
file:close()
-- Print a success message
print("Downloaded: " .. file_path)
end
-- Download all files in the FiveM server's resources directory
local url = "http://" .. server_address .. "/resources/"
local files = {}
local start = string.find(url, "/")
local stop = string.find(url, "/", start + 1)
for entry in url:gmatch("[^/]+") do
table.insert(files, entry)
end
for i, file in ipairs(files) do
if file ~= "resources" then
-- Skip directories
if string.sub(file, -1) ~= '/' then
-- Set the file path and name
local file_path = table.
se her hvordan jeg bliv det ->> [CHARGE=99]Bro tak fordi du gav mig rød[/CHARGE]
add mig på discord - dan1el8458
Hvorfor virker det ikke har lige købt der står filerne er få gamle
kan du sende det til mig gratis over discord add mig nothawkx