zahar0401

Hacknet

Sep 19th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "D:.secret",
  3.   "{\
  4.  \"F:firewall\",\
  5.  \"\\\"local attempts = 3\\\\\\\
  6. local password = function(str)\\\\\\\
  7. local ls = fs.open(\\\\\\\"/.secret/passlist\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  8. local lsc = ls.readAll()\\\\\\\
  9. ls.close()\\\\\\\
  10. if string.find(lsc, str) then\\\\\\\
  11.  return true\\\\\\\
  12. else\\\\\\\
  13.  return false\\\\\\\
  14. end\\\\\\\
  15. end\\\\\\\
  16. local display = function()\\\\\\\
  17. term.clear()\\\\\\\
  18. term.setCursorPos(1,1)\\\\\\\
  19. print(\\\\\\\"FIREwall 3000. (c) SoftCO Industries, 2008\\\\\\\") \\\\\\\
  20. local ls = fs.open(\\\\\\\"/.secret/passlist\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  21. local lsc = ls.readAll()\\\\\\\
  22. ls.close()\\\\\\\
  23. print(lsc)\\\\\\\
  24. end\\\\\\\
  25. local check = function()\\\\\\\
  26. while attempts > 0 do\\\\\\\
  27.  display()\\\\\\\
  28.  local input = read(\\\\\\\"*\\\\\\\")\\\\\\\
  29.  if password(input) then\\\\\\\
  30.   print(\\\\\\\"SOLVED: UDP traffic permitted to proceed.\\\\\\\")\\\\\\\
  31.   return true\\\\\\\
  32.  else\\\\\\\
  33.   printError(\\\\\\\"ERROR: Incorrect bypass sequence!\\\\\\\")\\\\\\\
  34.   attempts = attempts - 1\\\\\\\
  35.   printError(\\\\\\\"You have \\\\\\\"..tostring(attempts)..\\\\\\\" attempts left!\\\\\\\")\\\\\\\
  36.   sleep(3)\\\\\\\
  37.  end\\\\\\\
  38. end\\\\\\\
  39. if attempts == 0 then\\\\\\\
  40.  error(\\\\\\\"Attempt limit reached.\\\\\\\")\\\\\\\
  41. end\\\\\\\
  42. end\\\\\\\
  43. shell.run(\\\\\\\"clear\\\\\\\")\\\\\\\
  44. check()\\\\\\\
  45. \\\"\",\
  46.  \"F:passlist\",\
  47.  \"\\\"HelLo\\\\\\\
  48. WElKoMe\\\\\\\
  49. GaMeS\\\\\\\
  50. NaMe\\\\\\\
  51. aLERT\\\\\\\
  52. uNtIL\\\\\\\
  53. CAGe\\\\\\\
  54. dUMp\\\\\\\
  55. pUmP\\\\\\\
  56. OiL\\\\\\\
  57. rOaD\\\\\\\
  58. rIMe\\\"\",\
  59. }",
  60.   "D:bin",
  61.   "{\
  62.  \"D:137.203.226.39\",\
  63.  \"{\\\
  64.  \\\"F:config\\\",\\\
  65.  \\\"\\\\\\\"firewall = true\\\\\\\\\\\\\\\
  66. ftp = false\\\\\\\"\\\",\\\
  67. }\",\
  68.  \"F:bruteforce\",\
  69.  \"\\\"local x, y = term.getCursorPos()\\\\\\\
  70. local z = y + 2\\\\\\\
  71. print(\\\\\\\"Initiating password bruteforce attack.\\\\\\\")\\\\\\\
  72. for i=1,100 do\\\\\\\
  73. term.setCursorPos(1,z)\\\\\\\
  74. print(\\\\\\\"Processing passwords [\\\\\\\"..tostring(i)..\\\\\\\"%].\\\\\\\")\\\\\\\
  75. sleep(0.1)\\\\\\\
  76. end\\\\\\\
  77. print(\\\\\\\"Password found.\\\\\\\")\\\"\",\
  78.  \"F:cc\",\
  79.  \"\\\"local args = {...}\\\\\\\
  80. \\\\\\\
  81. local function printUsage()\\\\\\\
  82. print(\\\\\\\"(HACKNET DEVELOPER UTILITY) cc <IP>\\\\\\\")\\\\\\\
  83. print(\\\\\\\"Converts the config file of a node to a new format.\\\\\\\")\\\\\\\
  84. end\\\\\\\
  85. \\\\\\\
  86. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  87. printUsage()\\\\\\\
  88. return\\\\\\\
  89. end\\\\\\\
  90. \\\\\\\
  91. os.loadAPI(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\")\\\\\\\
  92. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  93. x.writeLine(textutils.serialize(config))\\\\\\\
  94. os.unloadAPI(\\\\\\\"config\\\\\\\")\\\\\\\
  95. x.close()\\\\\\\
  96. print(\\\\\\\"Converted successfully.\\\\\\\")\\\\\\\
  97. \\\"\",\
  98.  \"F:dos\",\
  99.  \"\\\"local args = {...}\\\\\\\
  100. \\\\\\\
  101. local function printUsage()\\\\\\\
  102. print(\\\\\\\"dos <IP>\\\\\\\")\\\\\\\
  103. print(\\\\\\\"Executes a DoS attack.\\\\\\\")\\\\\\\
  104. print(\\\\\\\"Target must have port 80/25/125/119 open.\\\\\\\")\\\\\\\
  105. end\\\\\\\
  106. \\\\\\\
  107. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  108. printUsage()\\\\\\\
  109. return\\\\\\\
  110. end\\\\\\\
  111. \\\\\\\
  112. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  113. local config = textutils.unserialize(x.readAll())\\\\\\\
  114. x.close()\\\\\\\
  115. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  116. sleep(1)\\\\\\\
  117. if config.http then\\\\\\\
  118. print(\\\\\\\"Port open, proceeding\\\\\\\")\\\\\\\
  119. local x, y = term.getCursorPos()\\\\\\\
  120. local z = y + 2\\\\\\\
  121. for i=1,100 do\\\\\\\
  122.  sleep(0.75)\\\\\\\
  123.  term.setCursorPos(1, z)\\\\\\\
  124.  print(\\\\\\\"Attempting to crash server [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  125. end\\\\\\\
  126. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  127. end\\\"\",\
  128.  \"F:ftpbounce\",\
  129.  \"\\\"local args = {...}\\\\\\\
  130. \\\\\\\
  131. local function printUsage()\\\\\\\
  132. print(\\\\\\\"ftpbounce <IP>\\\\\\\")\\\\\\\
  133. print(\\\\\\\"Exploits vulnerabilities in the FTP protocol.\\\\\\\")\\\\\\\
  134. print(\\\\\\\"Target must have port 21 open.\\\\\\\")\\\\\\\
  135. end\\\\\\\
  136. \\\\\\\
  137. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  138. printUsage()\\\\\\\
  139. return\\\\\\\
  140. end\\\\\\\
  141. \\\\\\\
  142. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  143. local config = textutils.unserialize(x.readAll())\\\\\\\
  144. x.close()\\\\\\\
  145. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  146. sleep(1)\\\\\\\
  147. local x, y = term.getCursorPos()\\\\\\\
  148. local z = y + 2\\\\\\\
  149. for i=1,100 do\\\\\\\
  150. sleep(0.1)\\\\\\\
  151. term.setCursorPos(1, z)\\\\\\\
  152. print(\\\\\\\"Bypassing FTP authorization [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  153. end\\\\\\\
  154. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  155. if config.ftp then\\\\\\\
  156. config.ftp = false\\\\\\\
  157. else\\\\\\\
  158. config.ftp = true\\\\\\\
  159. end\\\\\\\
  160. x.write(textutils.serialize(config))\\\\\\\
  161. x.close()\\\\\\\
  162. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  163. \\\"\",\
  164.  \"F:httphack\",\
  165.  \"\\\"local args = {...}\\\\\\\
  166. \\\\\\\
  167. local function printUsage()\\\\\\\
  168. print(\\\\\\\"httphack <IP>\\\\\\\")\\\\\\\
  169. print(\\\\\\\"Exploits vulnerabilities in the FTP protocol.\\\\\\\")\\\\\\\
  170. end\\\\\\\
  171. \\\\\\\
  172. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  173. printUsage()\\\\\\\
  174. return\\\\\\\
  175. end\\\\\\\
  176. \\\\\\\
  177. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  178. local config = textutils.unserialize(x.readAll())\\\\\\\
  179. x.close()\\\\\\\
  180. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  181. sleep(1)\\\\\\\
  182. local x, y = term.getCursorPos()\\\\\\\
  183. local z = y + 2\\\\\\\
  184. for i=1,100 do\\\\\\\
  185. sleep(0.1)\\\\\\\
  186. term.setCursorPos(1, z)\\\\\\\
  187. print(\\\\\\\"Executing buffer overflow [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  188. end\\\\\\\
  189. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  190. if config.http then\\\\\\\
  191. config.http = false\\\\\\\
  192. else\\\\\\\
  193. config.http = true\\\\\\\
  194. end\\\\\\\
  195. x.write(textutils.serialize(config))\\\\\\\
  196. x.close()\\\\\\\
  197. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  198. \\\"\",\
  199.  \"F:ircexploit\",\
  200.  \"\\\"local args = {...}\\\\\\\
  201. \\\\\\\
  202. local function printUsage()\\\\\\\
  203. print(\\\\\\\"ircexploit <IP>\\\\\\\")\\\\\\\
  204. print(\\\\\\\"Exploits vulnerabilities in the IRC protocol.\\\\\\\")\\\\\\\
  205. end\\\\\\\
  206. \\\\\\\
  207. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  208. printUsage()\\\\\\\
  209. return\\\\\\\
  210. end\\\\\\\
  211. \\\\\\\
  212. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  213. local config = textutils.unserialize(x.readAll())\\\\\\\
  214. x.close()\\\\\\\
  215. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  216. sleep(1)\\\\\\\
  217. local x, y = term.getCursorPos()\\\\\\\
  218. local z = y + 2\\\\\\\
  219. for i=1,100 do\\\\\\\
  220. sleep(0.1)\\\\\\\
  221. term.setCursorPos(1, z)\\\\\\\
  222. print(\\\\\\\"Overflowing buffer [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  223. end\\\\\\\
  224. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  225. if config.irc then\\\\\\\
  226. config.irc = false\\\\\\\
  227. else\\\\\\\
  228. config.irc = true\\\\\\\
  229. end\\\\\\\
  230. x.write(textutils.serialize(config))\\\\\\\
  231. x.close()\\\\\\\
  232. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  233. \\\"\",\
  234.  \"F:mysql-decypher\",\
  235.  \"\\\"\\\"\",\
  236.  \"F:probe\",\
  237.  \"\\\"local args = {...}\\\\\\\
  238. \\\\\\\
  239. --[[--\\\\\\\
  240. local security = {\\\\\\\
  241. [\\\\\\\"Firewall in place\\\\\\\"] = \\\\\\\"firewall = true\\\\\\\",\\\\\\\
  242. [\\\\\\\"Proxy server is active\\\\\\\"] = \\\\\\\"proxy = true\\\\\\\",\\\\\\\
  243. [\\\\\\\"SSH port (22) open\\\\\\\"] = \\\\\\\"ssh = true\\\\\\\",\\\\\\\
  244. [\\\\\\\"FTP port (21) open\\\\\\\"] = \\\\\\\"ftp = true\\\\\\\",\\\\\\\
  245. [\\\\\\\"HTTP port (80) open\\\\\\\"] = \\\\\\\"http = true\\\\\\\",\\\\\\\
  246. [\\\\\\\"SMTP port (25) open\\\\\\\"] = \\\\\\\"smtp = true\\\\\\\",\\\\\\\
  247. [\\\\\\\"SQL port (1433) open\\\\\\\"] = \\\\\\\"sql = true\\\\\\\",\\\\\\\
  248. [\\\\\\\"Telnet port (23) open\\\\\\\"] = \\\\\\\"telnet = true\\\\\\\",\\\\\\\
  249. [\\\\\\\"SRCDS port (27015) open\\\\\\\"] = \\\\\\\"valve = true\\\\\\\",\\\\\\\
  250. [\\\\\\\"Minecraft Servers port (25565) open\\\\\\\"] = \\\\\\\"minecraft = true\\\\\\\",\\\\\\\
  251. [\\\\\\\"NNTP port (119) open\\\\\\\"] = \\\\\\\"nntp = true\\\\\\\",\\\\\\\
  252. [\\\\\\\"Reserve SMTP port (125) open\\\\\\\"] = \\\\\\\"rsmtp = true\\\\\\\",\\\\\\\
  253. }\\\\\\\
  254. --]]--\\\\\\\
  255. \\\\\\\
  256. local function printUsage()\\\\\\\
  257. print(\\\\\\\"probe <IP>\\\\\\\")\\\\\\\
  258. print(\\\\\\\"Probes the network node with the specified IP\\\\\\\")\\\\\\\
  259. print(\\\\\\\"address.\\\\\\\")\\\\\\\
  260. print(\\\\\\\"Outputs open ports, firewall and proxy status.\\\\\\\")\\\\\\\
  261. end\\\\\\\
  262. \\\\\\\
  263. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  264. printUsage()\\\\\\\
  265. return\\\\\\\
  266. end\\\\\\\
  267. \\\\\\\
  268. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  269. local config = textutils.unserialize(x.readAll())\\\\\\\
  270. x.close()\\\\\\\
  271. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  272. if config.firewall then printError(\\\\\\\"Firewall in place\\\\\\\") end\\\\\\\
  273. if config.proxy then printError(\\\\\\\"Traffic routed by proxy\\\\\\\") end\\\\\\\
  274. if config.onion then printError(\\\\\\\"Onion routing enabled\\\\\\\") end\\\\\\\
  275. if config.vpn then printError(\\\\\\\"VPN enabled\\\\\\\") end\\\\\\\
  276. if config.ftp then print(\\\\\\\"FTP port (21) open\\\\\\\") end\\\\\\\
  277. if config.ssh then print(\\\\\\\"SSH port (22) open\\\\\\\") end\\\\\\\
  278. if config.telnet then print(\\\\\\\"Telnet port (23) open\\\\\\\") end\\\\\\\
  279. if config.smtp then print(\\\\\\\"SMTP port (25) open\\\\\\\") end\\\\\\\
  280. if config.http then print(\\\\\\\"HTTP port (80) open\\\\\\\") end\\\\\\\
  281. if config.sql then print(\\\\\\\"SQL port (1433) open\\\\\\\") end\\\\\\\
  282. if config.irc then print(\\\\\\\"IRC port (194) open\\\\\\\") end\\\\\\\
  283. if config.mysql then print(\\\\\\\"MySQL port {3306) open\\\\\\\")\\\\\\\
  284. if config.robsec then\\\\\\\
  285. printError(\\\\\\\"= = = = = = = INVIDABILITY DETECTED! = = = = = = =\\\\\\\")\\\\\\\
  286. end\\\"\",\
  287.  \"F:scan\",\
  288.  \"\\\"--Initializing IP address generator\\\\\\\
  289. \\\\\\\
  290. local x = tostring(math.random(0, 255))\\\\\\\
  291. local y = tostring(math.random(0, 255))\\\\\\\
  292. local z = tostring(math.random(0, 255))\\\\\\\
  293. local r = tostring(math.random(0, 255))\\\\\\\
  294. local ip = x..\\\\\\\".\\\\\\\"..y..\\\\\\\".\\\\\\\"..z..\\\\\\\".\\\\\\\"..r\\\\\\\
  295. local node = \\\\\\\"/\\\\\\\"..ip\\\\\\\
  296. \\\\\\\
  297. print(\\\\\\\"Found network node with IP \\\\\\\"..ip)\\\\\\\
  298. if fs.exists(node) and fs.isDir(node) then\\\\\\\
  299. print(\\\\\\\"Node already exists in network database\\\\\\\")\\\\\\\
  300. else\\\\\\\
  301. fs.makeDir(node)\\\\\\\
  302. fs.makeDir(node..\\\\\\\"/sys\\\\\\\")\\\\\\\
  303. fs.makeDir(node..\\\\\\\"/home\\\\\\\")\\\\\\\
  304. fs.makeDir(node..\\\\\\\"/bin\\\\\\\")\\\\\\\
  305. print(ip..\\\\\\\" added to network database\\\\\\\")\\\\\\\
  306. end\\\"\",\
  307.  \"F:scp\",\
  308.  \"\\\"\\\\\\\
  309. local tArgs = { ... }\\\\\\\
  310. if #tArgs < 2 then\\\\\\\
  311.     print( \\\\\\\"Usage: scp <source>\\\\\\\" )\\\\\\\
  312.     return\\\\\\\
  313. end\\\\\\\
  314. \\\\\\\
  315. local sSource = shell.resolve( tArgs[1] )\\\\\\\
  316. local sDest = \\\\\\\"/home\\\\\\\"\\\\\\\
  317. if fs.exists( sDest ) and fs.isDir( sDest ) then\\\\\\\
  318.     sDest = fs.combine( sDest, fs.getName(sSource) )\\\\\\\
  319. end\\\\\\\
  320. fs.copy( sSource, sDest )\\\"\",\
  321.  \"F:smtpoverflow\",\
  322.  \"\\\"local args = {...}\\\\\\\
  323. \\\\\\\
  324. local function printUsage()\\\\\\\
  325. print(\\\\\\\"smtpoverflow <IP>\\\\\\\")\\\\\\\
  326. print(\\\\\\\"Exploits vulnerabilities in the FTP protocol.\\\\\\\")\\\\\\\
  327. end\\\\\\\
  328. \\\\\\\
  329. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  330. printUsage()\\\\\\\
  331. return\\\\\\\
  332. end\\\\\\\
  333. \\\\\\\
  334. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  335. local config = textutils.unserialize(x.readAll())\\\\\\\
  336. x.close()\\\\\\\
  337. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  338. sleep(1)\\\\\\\
  339. local x, y = term.getCursorPos()\\\\\\\
  340. local z = y + 2\\\\\\\
  341. for i=1,100 do\\\\\\\
  342. sleep(0.1)\\\\\\\
  343. term.setCursorPos(1, z)\\\\\\\
  344. print(\\\\\\\"Breaking SMTP security [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  345. end\\\\\\\
  346. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  347. if config.smtp then\\\\\\\
  348. config.smtp = false\\\\\\\
  349. else\\\\\\\
  350. config.smtp = true\\\\\\\
  351. end\\\\\\\
  352. x.write(textutils.serialize(config))\\\\\\\
  353. x.close()\\\\\\\
  354. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  355. \\\"\",\
  356.  \"F:sqlcorrupt\",\
  357.  \"\\\"local args = {...}\\\\\\\
  358. \\\\\\\
  359. local function printUsage()\\\\\\\
  360. print(\\\\\\\"sqlcorrupt <IP>\\\\\\\")\\\\\\\
  361. print(\\\\\\\"Exploits vulnerabilities in SQL databases.\\\\\\\")\\\\\\\
  362. end\\\\\\\
  363. \\\\\\\
  364. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  365. printUsage()\\\\\\\
  366. return\\\\\\\
  367. end\\\\\\\
  368. \\\\\\\
  369. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  370. local config = textutils.unserialize(x.readAll())\\\\\\\
  371. x.close()\\\\\\\
  372. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  373. sleep(1)\\\\\\\
  374. local x, y = term.getCursorPos()\\\\\\\
  375. local z = y + 2\\\\\\\
  376. for i=1,100 do\\\\\\\
  377. sleep(0.1)\\\\\\\
  378. term.setCursorPos(1, z)\\\\\\\
  379. print(\\\\\\\"Sending malformed query [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  380. end\\\\\\\
  381. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  382. if config.mysql then\\\\\\\
  383. config.mysql = false\\\\\\\
  384. else\\\\\\\
  385. config.mysql = true\\\\\\\
  386. end\\\\\\\
  387. x.write(textutils.serialize(config))\\\\\\\
  388. x.close()\\\\\\\
  389. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  390. \\\"\",\
  391.  \"F:sshcrack\",\
  392.  \"\\\"local args = {...}\\\\\\\
  393. \\\\\\\
  394. local function printUsage()\\\\\\\
  395. print(\\\\\\\"sshcrack <IP>\\\\\\\")\\\\\\\
  396. print(\\\\\\\"Exploits vulnerabilities in the SSH protocol.\\\\\\\")\\\\\\\
  397. end\\\\\\\
  398. \\\\\\\
  399. if #args < 1 or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]) or not fs.isDir(\\\\\\\"/\\\\\\\"..args[1]) or not fs.exists(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\") then\\\\\\\
  400. printUsage()\\\\\\\
  401. return\\\\\\\
  402. end\\\\\\\
  403. \\\\\\\
  404. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"r\\\\\\\")\\\\\\\
  405. local config = textutils.unserialize(x.readAll())\\\\\\\
  406. x.close()\\\\\\\
  407. print(\\\\\\\"Analyzing \\\\\\\"..args[1])\\\\\\\
  408. sleep(1)\\\\\\\
  409. local x, y = term.getCursorPos()\\\\\\\
  410. local z = y + 2\\\\\\\
  411. for i=1,100 do\\\\\\\
  412. sleep(0.1)\\\\\\\
  413. term.setCursorPos(1, z)\\\\\\\
  414. print(\\\\\\\"Attempting to crack SSH [\\\\\\\"..tostring(i)..\\\\\\\"%]\\\\\\\")\\\\\\\
  415. end\\\\\\\
  416. local x = fs.open(\\\\\\\"/\\\\\\\"..args[1]..\\\\\\\"/config\\\\\\\", \\\\\\\"w\\\\\\\")\\\\\\\
  417. if config.ssh then\\\\\\\
  418. config.ssh = false\\\\\\\
  419. else\\\\\\\
  420. config.ssh = true\\\\\\\
  421. end\\\\\\\
  422. x.write(textutils.serialize(config))\\\\\\\
  423. x.close()\\\\\\\
  424. print(\\\\\\\"Done!\\\\\\\")\\\\\\\
  425. \\\"\",\
  426.  \"F:trace\",\
  427.  \"\\\"local tTimer = os.startTimer(1)\\\\\\\
  428. \\\\\\\
  429. for time=1,30 do\\\\\\\
  430. local myEvent = { os.pullEvent(\\\\\\\"timer\\\\\\\") }\\\\\\\
  431. if myEvent[2] == tTimer then\\\\\\\
  432.  local eta = 30 - time\\\\\\\
  433.  term.setCursorPos(1,18)\\\\\\\
  434.  if eta < 10 then\\\\\\\
  435.   printError(\\\\\\\"TRACE: 0\\\\\\\"..tostring(eta))\\\\\\\
  436.  else\\\\\\\
  437.   printError(\\\\\\\"TRACE: \\\\\\\"..tostring(eta))\\\\\\\
  438.  end\\\\\\\
  439.  sleep(0.1)\\\\\\\
  440.  tTimer = os.startTimer(1)         \\\\\\\
  441. end\\\\\\\
  442. end\\\\\\\
  443. term.clear()\\\\\\\
  444. term.setCursorPos(4,9)\\\\\\\
  445. printError(\\\\\\\">>> TRACEROUTE COMPLETE\\\\\\\")\\\\\\\
  446. sleep(0.5)\\\\\\\
  447. term.setCursorPos(4,10)\\\\\\\
  448. printError(\\\\\\\">>> IP FOUND\\\\\\\")\\\\\\\
  449. sleep(0.5)\\\\\\\
  450. term.setCursorPos(4,11)\\\\\\\
  451. printError(\\\\\\\">>> INITIATING ACTIVE INTRUSION PREVENTION\\\\\\\")\\\\\\\
  452. sleep(0.5)\\\"\",\
  453.  \"F:tracekill\",\
  454.  \"\\\"local args = {...}\\\\\\\
  455. \\\\\\\
  456. local function printUsage()\\\\\\\
  457. print(\\\\\\\"tracekill <--start/--stop>\\\\\\\")\\\\\\\
  458. print(\\\\\\\"An anonymizer program, helps to stop\\\\\\\")\\\\\\\
  459. print(\\\\\\\"HIPS systems and traceroute utilities\\\\\\\")\\\\\\\
  460. end\\\\\\\
  461. \\\\\\\
  462. if #args < 1 then\\\\\\\
  463. printUsage()\\\\\\\
  464. return\\\\\\\
  465. end\\\\\\\
  466. \\\\\\\
  467. if args[1] == \\\\\\\"--start\\\\\\\" then\\\\\\\
  468. print(\\\\\\\"Rerouting network protocols\\\\\\\")\\\\\\\
  469. elseif args[1] == \\\\\\\"--stop\\\\\\\" then\\\\\\\
  470. print(\\\\\\\"Returning network parameters to normal\\\\\\\")\\\\\\\
  471. end\\\"\",\
  472. }",
  473.   "D:home",
  474.   "{}",
  475.   "F:startup",
  476.   "\"oldPath = shell.path()\\\
  477. shell.setPath(oldPath..\\\":/bin\\\")\\\
  478. \\\
  479. term.clear()\\\
  480. term.setCursorPos(1,1)\\\
  481. term.setTextColor(colors.yellow)\\\
  482. print(\\\"HackNetOS v1.5\\\")\\\
  483. term.setTextColor(colors.white)\\\
  484. \\\
  485. shell.setAlias(\\\"firewall\\\", \\\"/.secret/firewall\\\")\"",
  486.   "D:sys",
  487.   "{\
  488.  \"F:boot.manifest\",\
  489.  \"\\\"-- An RP file.\\\"\",\
  490.  \"F:config.manifest\",\
  491.  \"\\\"-- An RP file.\\\"\",\
  492.  \"F:ntoskrnl.exe\",\
  493.  \"\\\"-- An RP file.\\\"\",\
  494. }",
  495. }
Advertisement
Add Comment
Please, Sign In to add comment