Jump to content
Rizuki

Create Random Any file name

Recommended Posts

Posted (edited)

Hellow pro, master and mister can someone help me how can i create a file with random name

Example i want to create 50 or 100  file with random name using lua  how can i make please help me 

Edited by Rizuki
I write wrong sorry

Share this post


Link to post
Share on other sites

Posted (edited)
math.randomseed(os.time())
for i = 1 , 50 do
randName = string.char(math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122))
io.open("/sdcard/Download/"..randName,"w"):write("This is mallicious file.")
end

 

Edited by ItsSC

Share this post


Link to post
Share on other sites
2 minutes ago, ItsSC said:

math.randomseed(os.time())
for i = 1 , 50 do
randName = string.char(math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122))
io.open("/sdcard/Download/"..randName,"w"):write("This is mallicious file.")
end

 

Thank master ☺️

Share this post


Link to post
Share on other sites
31 minutes ago, ItsSC said:

math.randomseed(os.time())
for i = 1 , 50 do
randName = string.char(math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122))
io.open("/sdcard/Download/"..randName,"w"):write("This is mallicious file.")
end

 

Master... Why file not created when i change to some location and also get error when changing to some location to?..

Share this post


Link to post
Share on other sites
14 minutes ago, Rizuki said:

Master... Why file not created when i change to some location and also get error when changing to some location to?..

No idea what you changed.

Share this post


Link to post
Share on other sites
1 minute ago, ItsSC said:

No idea what you changed.

math.randomseed(os.time()) 
for i = 1 , 50 do 
randName = string.char(math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122)) 
io.open("/storage/emulated/0/"..randName,"w"):write("This is mallicious file.") 
end

 

Location only i change

Share this post


Link to post
Share on other sites
4 minutes ago, Rizuki said:

math.randomseed(os.time()) 
for i = 1 , 50 do 
randName = string.char(math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122),math.random(97,122)) 
io.open("/storage/emulated/0/"..randName,"w"):write("This is mallicious file.") 
end

 

Location only i change

It works fine here. No error at all.

Share this post


Link to post
Share on other sites
3 minutes ago, ItsSC said:

It works fine here. No error at all.

Sorry bfo its working but file.created is hide hahaha 😂😂😂 but still thank you master i dont know why is hide when i only use gg to load lua a see it but in my storage is not appearing

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Gui-BR-_-Pro
      Well, I'm having problems with Game Guardian since when I bought my phone, it is a Galaxy Note 3 with Root, my problem is that when I try to use SpeedHack it simply restarts my device. Sometimes with you and most of the time the attempt is a failure. I was wondering what should I do to solve this problem Help me please
    • By Mohammad2687
      Hi everyone 👋
      I just want to ask if there's a script file to hack Manor Matters game! If there's not can I hack it manually?
    • By llukeminister
      Hey guys when i try to hack souls in it shows that i have the desired amount, then when i go to spend anything for example if i gave myself 100k souls and i pay 1 soul for a card in the game it deducts 100001 from my account. how do i get my souls to save?
    • By Smaxcolor
      Please creat scipt lua, for This game. New in play Store 

    • By Mohammad2687
      Can someone tell me how to hack the stars in Homescapes?
      I joined the community hoping someone will help me in this 💔
×
×
  • Create New...