Universal Script 📌
84.0k Views
5 Executions

SafeCall Open Source

Universal Script 📌
Nolanz
NolanzPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Look at the end of the script, for: local URL = "https://example.com/" (you know, and replace it with your url) Ofc, I made it, so if anyone improves it or anything, credit me (pls)

View Raw
local SafeCall = {}

SafeCall.Defaults = {
    RetryCount = 2,
    RetryDelay = 1,
    YieldInterval = 0.03
}

SafeCall.Errors = {
    InvalidURL = "Invalid URL provided",
    Aborted = "Execution aborted",
    Suspicious = "Suspicious content detected",
    FetchFailed = "Failed to fetch script",
    ExecutionFailed = "Script execution failed"
}

SafeCall.AntiVirus = {
    DetectionLog = {},
    QuarantineFolder = "AntiVirusQuarantine",

    LogDetection = function(self, url, reason)
        table.insert(self.DetectionLog, {
            Timestamp = os.time(),
            URL = url,
            Reason = reason
        })
        warn("⚠️ Suspicious script detected and blocked from: " .. url)
        warn("Reason: " .. reason)
    end,

    QuarantineScript = function(self, url, content)
        if not isfolder(self.QuarantineFolder) then
            makefolder(self.QuarantineFolder)
        end
        local fileName = self.QuarantineFolder .. "/" .. game:GetService("HttpService"):GenerateGUID(false) .. ".lua"
        writefile(fileName, content)
        print("🔒 Suspicious script quarantined: " .. fileName)
    end,

    ScanWorkspace = function(self)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
20
3
Approved 31 minutes ago
Universal Script 📌
3.9k
185.5k
Bumped 6 hours ago
Script hub
581
48
7 hours ago
Universal Script 📌
28.8k
673.9k
Bumped 9 hours ago
Script hub
14.0k
2.7k
Bumped 11 hours ago
Key System
Paid
Script hub
263.9k
88.5k
Bumped 12 hours ago
Key System
Universal Script 📌
3.1k
10.5k
Bumped 12 hours ago
Universal Script 📌
789
47
Approved 13 hours ago