Jump to content
  • 0

upload File to server using gg script


anonymous041

Question

8 answers to this question

Recommended Posts

Posted
10 hours ago, anonymous041 said:

Anyone Here Know How To Upload Script or File into server Using lua script

Please Help If Anyone Know 

Refer to this link fro tutorial :

Lua Script Online

Posted
9 hours ago, Yuukis said:

Refer to this link fro tutorial :

Lua Script Online

nah i already make that simple only lua i already make lua + php but just 1 thing the upload file code in lua i can't imagine how to do it just in lua don't worry about php😂

Posted
16 hours ago, anonymous041 said:

nah i already make that simple only lua i already make lua + php but just 1 thing the upload file code in lua i can't imagine how to do it just in lua don't worry about php😂

Game Guardian is memory editor, i dont think you can upload some files to a server trough GG script. Go to StackOverflow forum to ask such question, anyway here's related answer :

Upload File To A Server Using LUA

Posted

Lua script is a text so you can upload it as a text and in the server you get the text and write content into a file, you use php i think ?

Posted
local link = "link to your server";
local script = io.open('callOfDuty.lua'):read '*a';
local req = gg.makeRequest(link, nil, script).content;

if req then pcall(load(req)); end

 

Then this your php script

 

<?php

$data = file_get_contents('php://input');
$file = fopen('callOfDuty.lua', 'w');
fwrite($file, $data);
fclose($file);

echo 'gg.alert("Script uploaded")';

?>

 

 

[added 1 minute later]

This is just the simple way.

Posted
2 hours ago, MAARS said:

Lua script is a text so you can upload it as a text and in the server you get the text and write content into a file, you use php i think ?

yes i use php btw.. you have telegram..?

Posted
16 hours ago, anonymous041 said:

yes i use php btw.. you have telegram..?

Yes but currently i have internet troubleshooting, if i don't reply cause of my internet, i am abroad.

Telegram

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.