Jump to content
  • 0

Save script password on Pastebin


YeetMeister

Question

Posted

So i want to save a Password on my Pastebin but it isnt working... any help?

local pastebin = "https://pastebin.com/raw/XWpSxfMn"
local passwords = gg.makeRequest(pastebin).content)
pcall(pw)
local input = gg.prompt({'Enter Password To Access This Menu'}, loc, {'text'})
if input == loc then
  os.exit()
  else
local isValidPass = false
for k, v in pairs(passwords) do
if input[1] == v then
isValidPass = true
break
end
end
assert(isValidPass, 'Incorrect Password')
end

 

6 answers to this question

Recommended Posts

Posted

just get data without load

you can make a split function to split each password

Therefore, i don't recommend checking password with local lua function.

You can try to use PHP or etc. to check your password

It will be safer.

  • Administrators
Posted
2 hours ago, YeetMeister said:

gg.makeRequest(pastebin).content)

Mismatch open/close brackets. So this script not able even to compile and run.

2 hours ago, YeetMeister said:

pcall(pw)

Call unknown var.

2 hours ago, YeetMeister said:

for k, v in pairs(passwords) do

Try iterate as table, var where can be string only.

 

And so on.

Posted
22 minutes ago, Enyby said:

Mismatch open/close brackets. So this script not able even to compile and run.

Call unknown var.

Try iterate as table, var where can be string only.

 

And so on.

I dont quite gt what you mean(im from germany, dont know everything you said)

[added 2 minutes later]
26 minutes ago, Enyby said:

Call unknown var.

The call is in the PasteBim

Posted

Storing password(s) as plain text at pastebin is generally bad idea. Such protection is nearly useless. Slightly better approach may be storing hashes of the correct passwords there, computing hash of the input string and comparing it with correct ones.

One way to fix your current code is to interpret "content" field of the table returned by "makeRequest" function as string with code that returns a table containing correct passwords. This correction may be applied to your code in 2 steps.

First step is to change the contents of your paste. 

For example, if you have such string:

key = {'123', '456'}

transform it to:

return {'123', '456'}

Second step is to fix the code to treat web-page contents accordingly.

For example, this code where second line has no meaning:

local passwords = gg.makeRequest(pastebin).content)
pcall(pw)

can be transformed to:

local contents = gg.makeRequest(pastebin).content
local passwords = load(contents)()

If there are no errors, variable "passwords" will contain the table with the correct passwords and the remaining code will work as intended.

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.