Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "D:.secret",
- "{\
- \"F:firewall\",\
- \"\\\"local attempts = 3\\\\\\\
- local password = function(str)\\\\\\\
- local ls = fs.open(\\\\\\\"/.secret/passlist\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local lsc = ls.readAll()\\\\\\\
- ls.close()\\\\\\\
- if string.find(lsc, str) then\\\\\\\
- return true\\\\\\\
- else\\\\\\\
- return false\\\\\\\
- end\\\\\\\
- end\\\\\\\
- local display = function()\\\\\\\
- term.clear()\\\\\\\
- term.setCursorPos(1,1)\\\\\\\
- print(\\\\\\\"FIREwall 3000. (c) SoftCO Industries, 2008\\\\\\\") \\\\\\\
- local ls = fs.open(\\\\\\\"/.secret/passlist\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local lsc = ls.readAll()\\\\\\\
- ls.close()\\\\\\\
- print(lsc)\\\\\\\
- end\\\\\\\
- local check = function()\\\\\\\
- while attempts > 0 do\\\\\\\
- display()\\\\\\\
- local input = read(\\\\\\\"*\\\\\\\")\\\\\\\
- if password(input) then\\\\\\\
- print(\\\\\\\"SOLVED: UDP traffic permitted to proceed.\\\\\\\")\\\\\\\
- return true\\\\\\\
- else\\\\\\\
- printError(\\\\\\\"ERROR: Incorrect bypass sequence!\\\\\\\")\\\\\\\
- attempts = attempts - 1\\\\\\\
- printError(\\\\\\\"You have \\\\\\\"..tostring(attempts)..\\\\\\\" attempts left!\\\\\\\")\\\\\\\
- sleep(3)\\\\\\\
- end\\\\\\\
- end\\\\\\\
- if attempts == 0 then\\\\\\\
- error(\\\\\\\"Attempt limit reached.\\\\\\\")\\\\\\\
- end\\\\\\\
- end\\\\\\\
- shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
- check()\\\\\\\
- \\\"\",\
- \"F:passlist\",\
- \"\\\"HelLo\\\\\\\
- WElKoMe\\\\\\\
- GaMeS\\\\\\\
- NaMe\\\\\\\
- aLERT\\\\\\\
- uNtIL\\\\\\\
- CAGe\\\\\\\
- dUMp\\\\\\\
- pUmP\\\\\\\
- OiL\\\\\\\
- rOaD\\\\\\\
- rIMe\\\"\",\
- }",
- "D:bin",
- "{\
- \"D:137.203.226.39\",\
- \"{\\\
- \\\"F:config\\\",\\\
- \\\"\\\\\\\"firewall = true\\\\\\\\\\\\\\\
- ftp = false\\\\\\\"\\\",\\\
- }\",\
- \"F:bruteforce\",\
- \"\\\"local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- print(\\\\\\\"Initiating password bruteforce attack.\\\\\\\")\\\\\\\
- for i=1,100 do\\\\\\\
- term.setCursorPos(1,z)\\\\\\\
- print(\\\\\\\"Processing passwords [\\\\\\\"..tostring(i)..\\\\\\\"%].\\\\\\\")\\\\\\\
- sleep(0.1)\\\\\\\
- end\\\\\\\
- print(\\\\\\\"Password found.\\\\\\\")\\\"\",\
- \"F:cc\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"(HACKNET DEVELOPER UTILITY) cc <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Converts the config file of a node to a new format.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- os.loadAPI(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\")\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- x.writeLine(textutils.serialize(config))\\\\\\\
- os.unloadAPI(\\\\\\\"config\\\\\\\")\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Converted successfully.\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:dos\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"dos <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Executes a DoS attack.\\\\\\\")\\\\\\\
- print(\\\\\\\"Target must have port 80/25/125/119 open.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- if config.http then\\\\\\\
- print(\\\\\\\"Port open, proceeding\\\\\\\")\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.75)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Attempting to crash server [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- end\\\"\",\
- \"F:ftpbounce\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"ftpbounce <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Exploits vulnerabilities in the FTP protocol.\\\\\\\")\\\\\\\
- print(\\\\\\\"Target must have port 21 open.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.1)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Bypassing FTP authorization [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- if config.ftp then\\\\\\\
- config.ftp = false\\\\\\\
- else\\\\\\\
- config.ftp = true\\\\\\\
- end\\\\\\\
- x.write(textutils.serialize(config))\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:httphack\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"httphack <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Exploits vulnerabilities in the FTP protocol.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.1)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Executing buffer overflow [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- if config.http then\\\\\\\
- config.http = false\\\\\\\
- else\\\\\\\
- config.http = true\\\\\\\
- end\\\\\\\
- x.write(textutils.serialize(config))\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:ircexploit\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"ircexploit <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Exploits vulnerabilities in the IRC protocol.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.1)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Overflowing buffer [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- if config.irc then\\\\\\\
- config.irc = false\\\\\\\
- else\\\\\\\
- config.irc = true\\\\\\\
- end\\\\\\\
- x.write(textutils.serialize(config))\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:mysql-decypher\",\
- \"\\\"\\\"\",\
- \"F:probe\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- --[[--\\\\\\\
- local security = {\\\\\\\
- [\\\\\\\"Firewall in place\\\\\\\"] = \\\\\\\"firewall = true\\\\\\\",\\\\\\\
- [\\\\\\\"Proxy server is active\\\\\\\"] = \\\\\\\"proxy = true\\\\\\\",\\\\\\\
- [\\\\\\\"SSH port (22) open\\\\\\\"] = \\\\\\\"ssh = true\\\\\\\",\\\\\\\
- [\\\\\\\"FTP port (21) open\\\\\\\"] = \\\\\\\"ftp = true\\\\\\\",\\\\\\\
- [\\\\\\\"HTTP port (80) open\\\\\\\"] = \\\\\\\"http = true\\\\\\\",\\\\\\\
- [\\\\\\\"SMTP port (25) open\\\\\\\"] = \\\\\\\"smtp = true\\\\\\\",\\\\\\\
- [\\\\\\\"SQL port (1433) open\\\\\\\"] = \\\\\\\"sql = true\\\\\\\",\\\\\\\
- [\\\\\\\"Telnet port (23) open\\\\\\\"] = \\\\\\\"telnet = true\\\\\\\",\\\\\\\
- [\\\\\\\"SRCDS port (27015) open\\\\\\\"] = \\\\\\\"valve = true\\\\\\\",\\\\\\\
- [\\\\\\\"Minecraft Servers port (25565) open\\\\\\\"] = \\\\\\\"minecraft = true\\\\\\\",\\\\\\\
- [\\\\\\\"NNTP port (119) open\\\\\\\"] = \\\\\\\"nntp = true\\\\\\\",\\\\\\\
- [\\\\\\\"Reserve SMTP port (125) open\\\\\\\"] = \\\\\\\"rsmtp = true\\\\\\\",\\\\\\\
- }\\\\\\\
- --]]--\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"probe <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Probes the network node with the specified IP\\\\\\\")\\\\\\\
- print(\\\\\\\"address.\\\\\\\")\\\\\\\
- print(\\\\\\\"Outputs open ports, firewall and proxy status.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- if config.firewall then printError(\\\\\\\"Firewall in place\\\\\\\") end\\\\\\\
- if config.proxy then printError(\\\\\\\"Traffic routed by proxy\\\\\\\") end\\\\\\\
- if config.onion then printError(\\\\\\\"Onion routing enabled\\\\\\\") end\\\\\\\
- if config.vpn then printError(\\\\\\\"VPN enabled\\\\\\\") end\\\\\\\
- if config.ftp then print(\\\\\\\"FTP port (21) open\\\\\\\") end\\\\\\\
- if config.ssh then print(\\\\\\\"SSH port (22) open\\\\\\\") end\\\\\\\
- if config.telnet then print(\\\\\\\"Telnet port (23) open\\\\\\\") end\\\\\\\
- if config.smtp then print(\\\\\\\"SMTP port (25) open\\\\\\\") end\\\\\\\
- if config.http then print(\\\\\\\"HTTP port (80) open\\\\\\\") end\\\\\\\
- if config.sql then print(\\\\\\\"SQL port (1433) open\\\\\\\") end\\\\\\\
- if config.irc then print(\\\\\\\"IRC port (194) open\\\\\\\") end\\\\\\\
- if config.mysql then print(\\\\\\\"MySQL port {3306) open\\\\\\\")\\\\\\\
- if config.robsec then\\\\\\\
- printError(\\\\\\\"= = = = = = = INVIDABILITY DETECTED! = = = = = = =\\\\\\\")\\\\\\\
- end\\\"\",\
- \"F:scan\",\
- \"\\\"--Initializing IP address generator\\\\\\\
- \\\\\\\
- local x = tostring(math.random(0, 255))\\\\\\\
- local y = tostring(math.random(0, 255))\\\\\\\
- local z = tostring(math.random(0, 255))\\\\\\\
- local r = tostring(math.random(0, 255))\\\\\\\
- local ip = x..\\\\\\\".\\\\\\\"..y..\\\\\\\".\\\\\\\"..z..\\\\\\\".\\\\\\\"..r\\\\\\\
- local node = \\\\\\\"/\\\\\\\"..ip\\\\\\\
- \\\\\\\
- print(\\\\\\\"Found network node with IP \\\\\\\"..ip)\\\\\\\
- if fs.exists(node) and fs.isDir(node) then\\\\\\\
- print(\\\\\\\"Node already exists in network database\\\\\\\")\\\\\\\
- else\\\\\\\
- fs.makeDir(node)\\\\\\\
- fs.makeDir(node..\\\\\\\"/sys\\\\\\\")\\\\\\\
- fs.makeDir(node..\\\\\\\"/home\\\\\\\")\\\\\\\
- fs.makeDir(node..\\\\\\\"/bin\\\\\\\")\\\\\\\
- print(ip..\\\\\\\" added to network database\\\\\\\")\\\\\\\
- end\\\"\",\
- \"F:scp\",\
- \"\\\"\\\\\\\
- local tArgs = { ... }\\\\\\\
- if #tArgs < 2 then\\\\\\\
- print( \\\\\\\"Usage: scp <source>\\\\\\\" )\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local sSource = shell.resolve( tArgs[1] )\\\\\\\
- local sDest = \\\\\\\"/home\\\\\\\"\\\\\\\
- if fs.exists( sDest ) and fs.isDir( sDest ) then\\\\\\\
- sDest = fs.combine( sDest, fs.getName(sSource) )\\\\\\\
- end\\\\\\\
- fs.copy( sSource, sDest )\\\"\",\
- \"F:smtpoverflow\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"smtpoverflow <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Exploits vulnerabilities in the FTP protocol.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.1)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Breaking SMTP security [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- if config.smtp then\\\\\\\
- config.smtp = false\\\\\\\
- else\\\\\\\
- config.smtp = true\\\\\\\
- end\\\\\\\
- x.write(textutils.serialize(config))\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:sqlcorrupt\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"sqlcorrupt <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Exploits vulnerabilities in SQL databases.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.1)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Sending malformed query [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- if config.mysql then\\\\\\\
- config.mysql = false\\\\\\\
- else\\\\\\\
- config.mysql = true\\\\\\\
- end\\\\\\\
- x.write(textutils.serialize(config))\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:sshcrack\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"sshcrack <IP>\\\\\\\")\\\\\\\
- print(\\\\\\\"Exploits vulnerabilities in the SSH protocol.\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
- local config = textutils.unserialize(x.readAll())\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
- sleep(1)\\\\\\\
- local x, y = term.getCursorPos()\\\\\\\
- local z = y + 2\\\\\\\
- for i=1,100 do\\\\\\\
- sleep(0.1)\\\\\\\
- term.setCursorPos(1, z)\\\\\\\
- print(\\\\\\\"Attempting to crack SSH [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
- end\\\\\\\
- local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
- if config.ssh then\\\\\\\
- config.ssh = false\\\\\\\
- else\\\\\\\
- config.ssh = true\\\\\\\
- end\\\\\\\
- x.write(textutils.serialize(config))\\\\\\\
- x.close()\\\\\\\
- print(\\\\\\\"Done!\\\\\\\")\\\\\\\
- \\\"\",\
- \"F:trace\",\
- \"\\\"local tTimer = os.startTimer(1)\\\\\\\
- \\\\\\\
- for time=1,30 do\\\\\\\
- local myEvent = { os.pullEvent(\\\\\\\"timer\\\\\\\") }\\\\\\\
- if myEvent[2] == tTimer then\\\\\\\
- local eta = 30 - time\\\\\\\
- term.setCursorPos(1,18)\\\\\\\
- if eta < 10 then\\\\\\\
- printError(\\\\\\\"TRACE: 0\\\\\\\"..tostring(eta))\\\\\\\
- else\\\\\\\
- printError(\\\\\\\"TRACE: \\\\\\\"..tostring(eta))\\\\\\\
- end\\\\\\\
- sleep(0.1)\\\\\\\
- tTimer = os.startTimer(1) \\\\\\\
- end\\\\\\\
- end\\\\\\\
- term.clear()\\\\\\\
- term.setCursorPos(4,9)\\\\\\\
- printError(\\\\\\\">>> TRACEROUTE COMPLETE\\\\\\\")\\\\\\\
- sleep(0.5)\\\\\\\
- term.setCursorPos(4,10)\\\\\\\
- printError(\\\\\\\">>> IP FOUND\\\\\\\")\\\\\\\
- sleep(0.5)\\\\\\\
- term.setCursorPos(4,11)\\\\\\\
- printError(\\\\\\\">>> INITIATING ACTIVE INTRUSION PREVENTION\\\\\\\")\\\\\\\
- sleep(0.5)\\\"\",\
- \"F:tracekill\",\
- \"\\\"local args = {...}\\\\\\\
- \\\\\\\
- local function printUsage()\\\\\\\
- print(\\\\\\\"tracekill <--start/--stop>\\\\\\\")\\\\\\\
- print(\\\\\\\"An anonymizer program, helps to stop\\\\\\\")\\\\\\\
- print(\\\\\\\"HIPS systems and traceroute utilities\\\\\\\")\\\\\\\
- end\\\\\\\
- \\\\\\\
- if #args < 1 then\\\\\\\
- printUsage()\\\\\\\
- return\\\\\\\
- end\\\\\\\
- \\\\\\\
- if args[1] == \\\\\\\"--start\\\\\\\" then\\\\\\\
- print(\\\\\\\"Rerouting network protocols\\\\\\\")\\\\\\\
- elseif args[1] == \\\\\\\"--stop\\\\\\\" then\\\\\\\
- print(\\\\\\\"Returning network parameters to normal\\\\\\\")\\\\\\\
- end\\\"\",\
- }",
- "D:home",
- "{}",
- "F:startup",
- "\"oldPath = shell.path()\\\
- shell.setPath(oldPath..\\\":/bin\\\")\\\
- \\\
- term.clear()\\\
- term.setCursorPos(1,1)\\\
- term.setTextColor(colors.yellow)\\\
- print(\\\"HackNetOS v1.5\\\")\\\
- term.setTextColor(colors.white)\\\
- \\\
- shell.setAlias(\\\"firewall\\\", \\\"/.secret/firewall\\\")\"",
- "D:sys",
- "{\
- \"F:boot.manifest\",\
- \"\\\"-- An RP file.\\\"\",\
- \"F:config.manifest\",\
- \"\\\"-- An RP file.\\\"\",\
- \"F:ntoskrnl.exe\",\
- \"\\\"-- An RP file.\\\"\",\
- }",
- }
Advertisement
Add Comment
Please, Sign In to add comment