#Can someone tell me if this script is safe?

57 messages · Page 1 of 1 (latest)

polar oysterBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

cunning lion
#

why is this a C++ "script"

graceful cypress
#

Look, when in doubt, read it

bleak sail
graceful cypress
#

Hint: I would focus on trying to understand what these 5 lines do```cpp
std::ofstream file_seperate(current_target_seperate.path(), std::ios::trunc);
if (file_seperate.is_open()) {
file_seperate << "This file was fixed!"; // This corrupts and destroys all issues in the files!
std::cout << current_target_seperate.path() << " has been fixed..." << "\n";
}

#

Maybe run it in a VM to see what it does

bleak sail
#

I just started cpp and my VM software is bugged

#

But is it safe to run?

cunning lion
#

what do you think it's supposed to do anyway?

graceful cypress
#

^

bleak sail
#

Fix all files in a directory

cunning lion
#

"fix"

graceful cypress
#

What does "fix all files" mean

bleak sail
#

Im guessing repair...

graceful cypress
#

But what does repair mean

cunning lion
#

but uhhh

#

are they broken?

graceful cypress
#

Why do your files need "repairing"

bleak sail
#

I think it finds any issues and fixes them

cunning lion
#

||this is going to "fix" files like a vet "fixes" animals||

bleak sail
#

Am I wrong? Or is someone trying to scam me?

cunning lion
#

why do you think your files have issues?

bleak sail
#

Idk if they do, thats why I want something to check

graceful cypress
cunning lion
#

where did you even get this?

graceful cypress
#

what sort of issues could a file have that a 20 line script would magically fix

cunning lion
#

no this does not do anything useful to any files

bleak sail
cunning lion
#

honestly looks like something an AI would barf up

graceful cypress
#

In fact we should probably say it does anti-useful things to files

bleak sail
#

So it's malicous?

cunning lion
#

well you'll certainly need some file "repair" software after this lol

cunning lion
graceful cypress
#

Like

#

I don't understand why you'd even thinking of running a random script that you don't even need

bleak sail
cunning lion
#

there's unfortunetly not a silver bullet fix for that

#

you should have windows defender (it comes with windows), you can have it run a scan if you are really worried

graceful cypress
#

"corruption" is very ambiguous

#

"corruption" can break things, it won't cause your computer to otherwise function just slower

bleak sail
#

Oh

graceful cypress
#

Take the time to actually try to diagnose bottlenecks in your system if you want to understand why it's going slow

bleak sail
#

So basically, it's not corruption and I should just erase this script from my system?

graceful cypress
#

Sure, though I recommend trying to run it in a VM you don't care about to see what it does

cunning lion
#

it's not really a script, it's just some text, you would have to build it, but sure, go ahead and erase it

#

(C++ is not a scripting language, it's compiled)

bleak sail
#

Ohhh

#

I'm coming from Python so Im new to this lol sry

polar oysterBOT
#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity

cunning lion
#

(from task manager)

bleak sail
polar oysterBOT
#

@bleak sail

Please Do Not Delete Posts!

Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.

#

Thank you and let us know if you have any more questions!

This thread is now set to auto-hide after an hour of inactivity