Password

Basic Information
Preset word lists in config for each difficulty level
UI Automatically adjusts based on size of word
Ability to pass in a custom word list through the export
Supports custom preset lists of words as well
For Example you can create a
computerPassword
list that could contain unique words used for computer hacking exclusively
Exports (client side only)
Default Settings
-- Using preset difficulty of 'hard'
exports['envi-hack-minigames']:StartPasswordHack('hard', function(success)
if success then
print('Worm hack completed successfully!')
else
print('Worm hack failed!')
end
end)
Custom Settings
Using Custom List
local customWords = {
"LOGIN", "ADMIN", "SERVER", "DATABASE", "PASSWORD", "SECURITY",
"CAT", "DOG", "RUN", "FLY", "JUMP", "CODE", "HACK", "BYTE", "DISK",
"SYSTEM", "NETWORK", "FIREWALL", "ROUTER", "SWITCH", "PROTOCOL",
"ENCRYPTION", "DECRYPTION", "ALGORITHM", "FUNCTION", "VARIABLE",
"KEY", "API", "GUI", "CPU", "RAM", "SSD", "USB", "VPN", "WIFI",
"BLUETOOTH", "MALWARE", "RANSOMWARE", "PHISHING", "BACKDOOR",
"AUTHENTICATION", "AUTHORIZATION", "CYBERSECURITY", "VULNERABILITY",
"BUG", "FIX", "PATCH", "UPDATE", "DOWNLOAD", "UPLOAD", "CLOUD",
"PROGRAMMING", "DEVELOPMENT", "IMPLEMENTATION", "CONFIGURATION"
}
exports['envi-hack-minigames']:StartPasswordHack({
timeLimit = 180,
words = customWords,
}, function(success)
if success then
print('Worm hack completed successfully!')
else
print('Worm hack failed!')
end
end)
Using Difficulty Number
exports['envi-hack-minigames']:StartPasswordHack({
timeLimit = 180,
difficulty = 2,
}, function(success)
if success then
print('Worm hack completed successfully!')
else
print('Worm hack failed!')
end
end)
Getting Defaults
-- Get default settings for difficulty
local hackType = 'password'
local difficultyPreset = 'medium'
local defaults = exports['envi-hack-minigames']:GetHackDefaults(hackType, difficultyPreset)
-- Adjust difficulty
-- Can be adjusted however you wish based on whatever parameters you decide
defaults.difficuly = defaults.difficuly - 1
-- Start the hack with the adjusted default settings
exports['envi-hack-minigames']:StartPasswordHack(defaults, function(success)
if success then
print('Hack Success!')
else
print('Hack Failed!')
end
end)
Last updated