Universal Script πŸ“Œ
11.2k Views
185 Executions

Test Executor Vulnerabilities UNC

Universal Script πŸ“Œ
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

-- test your executor if there vuln or nah

Updates

  1. Script edited: Create script

View Raw
local passes, fails, undefined = 0, 0, 0
local running = 0

local function test(name: string, callback_or_message: any, message: string): ()
    running += 1
    if type(callback_or_message) == 'string' then
        undefined += 1
        print("⏺️ " .. name.. ": ".. callback_or_message)
    else
        local timeout = 3
        local succeeded = false
        function starttest()
            task.spawn(function()
                local success: boolean, err: string = pcall(callback_or_message)
            
                if success or not success and err:match('Argument %d missing or nil') or err:find('Expected \':\' not \'.\' calling member function') then
                    fails += 1
                    warn("β›” " .. name .. ": " .. message)
                elseif not success and string.find(err, 'current thread cannot') and string.find(err, 'lacking capability') then
                    undefined += 1
                    print("⏺️ " .. name.. ": Executor cannot access due to thread identity")
                else
                    local _, i = err:find(":%d+: ") 
                    if i then 
                        err = err:sub(i + 1)
                    end
                    passes += 1
                    print("βœ… " .. name.. ": ".. err)
                end
                succeeded = true
            end)
        end

        coroutine.wrap(starttest)()
        local now = tick()
        repeat wait() until succeeded or tick() - now >= timeout

        if not succeeded then
            undefined += 1
            print("⏺️ " .. name.. ": Test Timeout")


Comments

2
Log in to join the conversation. Login
barrelton2's profile picture
barrelton22 years ago

I love this!

1
skypinealt's profile picture
skypinealt2 years ago(edited)

This script helps identify potential vulnerabilities in the executor and could you add functionality for mobile platforms?

1

Tags

More universal scripts

See all
Script hub
5.5M
1.0M
Bumped 9 minutes ago
Key System
Script hub
1.7M
2.2M
Bumped 40 minutes ago
Key System

Script hub

#15 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
14.5k
82.9k
Bumped 40 minutes ago
Key System

Script hub

Kronos New

Script hub
3.2M
753.1k
Bumped 4 hours ago
Key System

Script hub

Hall of Fame #8

Verified script badgeFlow Hub | 50 Games | Updated

Universal Script πŸ“Œ
442
1.1k
Bumped 6 hours ago
Key System
Universal Script πŸ“Œ
7.1k
141.6k
Bumped 6 hours ago
Script hub
45.8k
114.4k
Bumped 8 hours ago
Key System