Linux 98.203.178.68.host.secureserver.net 4.18.0-553.164.1.el8_10.x86_64 #1 SMP Thu Sep 17 04:21:10 EDT 2026 x86_64
Apache
Server IP : 68.178.203.98 & Your IP : 216.73.217.130
Domains : 108 Domain
User : lostrivercommuni
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nmap /
nselib /
Delete
Unzip
Name
Size
Permission
Date
Action
data
[ DIR ]
drwxr-xr-x
2025-12-23 02:50
afp.lua
73.07
KB
-rw-r--r--
2025-12-18 12:48
ajp.lua
16.66
KB
-rw-r--r--
2025-12-18 12:48
amqp.lua
10.41
KB
-rw-r--r--
2025-12-18 12:48
anyconnect.lua
4.31
KB
-rw-r--r--
2025-12-18 12:48
asn1.lua
14.57
KB
-rw-r--r--
2025-12-18 12:48
base32.lua
7.33
KB
-rw-r--r--
2025-12-18 12:48
base64.lua
5.83
KB
-rw-r--r--
2025-12-18 12:48
bin.lua
13.07
KB
-rw-r--r--
2025-12-18 12:48
bitcoin.lua
18.25
KB
-rw-r--r--
2025-12-18 12:48
bits.lua
2.54
KB
-rw-r--r--
2025-12-18 12:48
bittorrent.lua
35.76
KB
-rw-r--r--
2025-12-18 12:48
bjnp.lua
9.55
KB
-rw-r--r--
2025-12-18 12:48
brute.lua
50.74
KB
-rw-r--r--
2025-12-18 12:48
cassandra.lua
5.48
KB
-rw-r--r--
2025-12-18 12:48
citrixxml.lua
16.15
KB
-rw-r--r--
2025-12-18 12:48
coap.lua
75.1
KB
-rw-r--r--
2025-12-18 12:48
comm.lua
11.03
KB
-rw-r--r--
2025-12-18 12:48
creds.lua
18.26
KB
-rw-r--r--
2025-12-18 12:48
cvs.lua
3.05
KB
-rw-r--r--
2025-12-18 12:48
datafiles.lua
11.05
KB
-rw-r--r--
2025-12-18 12:48
datetime.lua
8.06
KB
-rw-r--r--
2025-12-18 12:48
dhcp.lua
28.58
KB
-rw-r--r--
2025-12-18 12:48
dhcp6.lua
19.85
KB
-rw-r--r--
2025-12-18 12:48
dicom.lua
10.49
KB
-rw-r--r--
2025-12-18 12:48
dns.lua
51.07
KB
-rw-r--r--
2025-12-18 12:48
dnsbl.lua
19.01
KB
-rw-r--r--
2025-12-18 12:48
dnssd.lua
12.61
KB
-rw-r--r--
2025-12-18 12:48
drda.lua
24.08
KB
-rw-r--r--
2025-12-18 12:48
eap.lua
7.54
KB
-rw-r--r--
2025-12-18 12:48
eigrp.lua
12.98
KB
-rw-r--r--
2025-12-18 12:48
formulas.lua
5.69
KB
-rw-r--r--
2025-12-18 12:48
ftp.lua
9.03
KB
-rw-r--r--
2025-12-18 12:48
geoip.lua
3.14
KB
-rw-r--r--
2025-12-18 12:48
giop.lua
18.42
KB
-rw-r--r--
2025-12-18 12:48
gps.lua
3.38
KB
-rw-r--r--
2025-12-18 12:48
http.lua
117.73
KB
-rw-r--r--
2025-12-18 12:48
httpspider.lua
36.73
KB
-rw-r--r--
2025-12-18 12:48
iax2.lua
9.54
KB
-rw-r--r--
2025-12-18 12:48
idna.lua
17.14
KB
-rw-r--r--
2025-12-18 12:48
ike.lua
14.63
KB
-rw-r--r--
2025-12-18 12:48
imap.lua
9.59
KB
-rw-r--r--
2025-12-18 12:48
informix.lua
39.93
KB
-rw-r--r--
2025-12-18 12:48
ipOps.lua
29.14
KB
-rw-r--r--
2025-12-18 12:48
ipmi.lua
8.08
KB
-rw-r--r--
2025-12-18 12:48
ipp.lua
12.56
KB
-rw-r--r--
2025-12-18 12:48
irc.lua
757
B
-rw-r--r--
2025-12-18 12:48
iscsi.lua
21.38
KB
-rw-r--r--
2025-12-18 12:48
isns.lua
14.98
KB
-rw-r--r--
2025-12-18 12:48
jdwp.lua
43.52
KB
-rw-r--r--
2025-12-18 12:48
json.lua
11.91
KB
-rw-r--r--
2025-12-18 12:48
knx.lua
2.42
KB
-rw-r--r--
2025-12-18 12:48
ldap.lua
32
KB
-rw-r--r--
2025-12-18 12:48
lfs.luadoc
1.68
KB
-rw-r--r--
2025-12-18 12:48
libssh2-utility.lua
4.69
KB
-rw-r--r--
2025-12-18 12:48
libssh2.luadoc
4.75
KB
-rw-r--r--
2025-12-18 12:48
listop.lua
4.66
KB
-rw-r--r--
2025-12-18 12:48
lpeg-utility.lua
5.64
KB
-rw-r--r--
2025-12-18 12:48
lpeg.luadoc
351
B
-rw-r--r--
2025-12-18 12:48
ls.lua
10.96
KB
-rw-r--r--
2025-12-18 12:48
match.lua
2.05
KB
-rw-r--r--
2025-12-18 12:48
membase.lua
9.93
KB
-rw-r--r--
2025-12-18 12:48
mobileme.lua
8.46
KB
-rw-r--r--
2025-12-18 12:48
mongodb.lua
21.47
KB
-rw-r--r--
2025-12-18 12:48
mqtt.lua
28.74
KB
-rw-r--r--
2025-12-18 12:48
msrpc.lua
190.11
KB
-rw-r--r--
2025-12-18 12:48
msrpcperformance.lua
29.65
KB
-rw-r--r--
2025-12-18 12:48
msrpctypes.lua
168.74
KB
-rw-r--r--
2025-12-18 12:48
mssql.lua
113.78
KB
-rw-r--r--
2025-12-18 12:48
multicast.lua
5.97
KB
-rw-r--r--
2025-12-18 12:48
mysql.lua
16.04
KB
-rw-r--r--
2025-12-18 12:48
natpmp.lua
5.11
KB
-rw-r--r--
2025-12-18 12:48
nbd.lua
16.04
KB
-rw-r--r--
2025-12-18 12:48
ncp.lua
35.64
KB
-rw-r--r--
2025-12-18 12:48
ndmp.lua
11.43
KB
-rw-r--r--
2025-12-18 12:48
netbios.lua
14.51
KB
-rw-r--r--
2025-12-18 12:48
nmap.luadoc
40.34
KB
-rw-r--r--
2025-12-18 12:48
nrpc.lua
4.46
KB
-rw-r--r--
2025-12-18 12:48
nsedebug.lua
3.49
KB
-rw-r--r--
2025-12-18 12:48
omp2.lua
4.78
KB
-rw-r--r--
2025-12-18 12:48
oops.lua
3.61
KB
-rw-r--r--
2025-12-18 12:48
openssl.luadoc
7.5
KB
-rw-r--r--
2025-12-18 12:48
ospf.lua
15.29
KB
-rw-r--r--
2025-12-18 12:48
outlib.lua
2.09
KB
-rw-r--r--
2025-12-18 12:48
packet.lua
36.54
KB
-rw-r--r--
2025-12-18 12:48
pcre.luadoc
6.79
KB
-rw-r--r--
2025-12-18 12:48
pgsql.lua
20.6
KB
-rw-r--r--
2025-12-18 12:48
pop3.lua
5.74
KB
-rw-r--r--
2025-12-18 12:48
pppoe.lua
29.42
KB
-rw-r--r--
2025-12-18 12:48
proxy.lua
11.37
KB
-rw-r--r--
2025-12-18 12:48
punycode.lua
11.5
KB
-rw-r--r--
2025-12-18 12:48
rand.lua
2.7
KB
-rw-r--r--
2025-12-18 12:48
rdp.lua
14.73
KB
-rw-r--r--
2025-12-18 12:48
re.lua
8.22
KB
-rw-r--r--
2025-12-18 12:48
redis.lua
3.61
KB
-rw-r--r--
2025-12-18 12:48
rmi.lua
47.77
KB
-rw-r--r--
2025-12-18 12:48
rpc.lua
107.75
KB
-rw-r--r--
2025-12-18 12:48
rpcap.lua
11.08
KB
-rw-r--r--
2025-12-18 12:48
rsync.lua
5.21
KB
-rw-r--r--
2025-12-18 12:48
rtsp.lua
8.66
KB
-rw-r--r--
2025-12-18 12:48
sasl.lua
16.51
KB
-rw-r--r--
2025-12-18 12:48
shortport.lua
12.83
KB
-rw-r--r--
2025-12-18 12:48
sip.lua
30.07
KB
-rw-r--r--
2025-12-18 12:48
slaxml.lua
17.9
KB
-rw-r--r--
2025-12-18 12:48
smb.lua
176.62
KB
-rw-r--r--
2025-12-18 12:48
smb2.lua
16.12
KB
-rw-r--r--
2025-12-18 12:48
smbauth.lua
37.33
KB
-rw-r--r--
2025-12-18 12:48
smtp.lua
19.85
KB
-rw-r--r--
2025-12-18 12:48
snmp.lua
17.24
KB
-rw-r--r--
2025-12-18 12:48
socks.lua
8.25
KB
-rw-r--r--
2025-12-18 12:48
srvloc.lua
10.99
KB
-rw-r--r--
2025-12-18 12:48
ssh1.lua
9.15
KB
-rw-r--r--
2025-12-18 12:48
ssh2.lua
13.44
KB
-rw-r--r--
2025-12-18 12:48
sslcert.lua
36.17
KB
-rw-r--r--
2025-12-18 12:48
sslv2.lua
9.68
KB
-rw-r--r--
2025-12-18 12:48
stdnse.lua
32.67
KB
-rw-r--r--
2025-12-18 12:48
strbuf.lua
4.52
KB
-rw-r--r--
2025-12-18 12:48
strict.lua
2.53
KB
-rw-r--r--
2025-12-18 12:48
stringaux.lua
4.35
KB
-rw-r--r--
2025-12-18 12:48
stun.lua
11.08
KB
-rw-r--r--
2025-12-18 12:48
tab.lua
3.35
KB
-rw-r--r--
2025-12-18 12:48
tableaux.lua
2.06
KB
-rw-r--r--
2025-12-18 12:48
target.lua
3.93
KB
-rw-r--r--
2025-12-18 12:48
tftp.lua
9.41
KB
-rw-r--r--
2025-12-18 12:48
tls.lua
69.24
KB
-rw-r--r--
2025-12-18 12:48
tn3270.lua
46.99
KB
-rw-r--r--
2025-12-18 12:48
tns.lua
63.35
KB
-rw-r--r--
2025-12-18 12:48
unicode.lua
14.23
KB
-rw-r--r--
2025-12-18 12:48
unittest.lua
12.42
KB
-rw-r--r--
2025-12-18 12:48
unpwdb.lua
10.52
KB
-rw-r--r--
2025-12-18 12:48
upnp.lua
11.18
KB
-rw-r--r--
2025-12-18 12:48
url.lua
16.54
KB
-rw-r--r--
2025-12-18 12:48
versant.lua
8.58
KB
-rw-r--r--
2025-12-18 12:48
vnc.lua
25.55
KB
-rw-r--r--
2025-12-18 12:48
vulns.lua
76.45
KB
-rw-r--r--
2025-12-18 12:48
vuzedht.lua
16.21
KB
-rw-r--r--
2025-12-18 12:48
wsdd.lua
11.98
KB
-rw-r--r--
2025-12-18 12:48
xdmcp.lua
12.09
KB
-rw-r--r--
2025-12-18 12:48
xmpp.lua
15.91
KB
-rw-r--r--
2025-12-18 12:48
zlib.luadoc
4.88
KB
-rw-r--r--
2025-12-18 12:48
Save
Rename
--- -- A Vuze DHT protocol implementation based on the following documentation: -- o http://wiki.vuze.com/w/Distributed_hash_table -- -- It currently supports the PING and FIND_NODE requests and parses the -- responses. The following main classes are used by the library: -- -- o Request - the request class containing all of the request classes. It -- currently contains the Header, PING and FIND_NODE classes. -- -- o Response - the response class containing all of the response classes. It -- currently contains the Header, PING, FIND_NODE and ERROR -- class. -- -- o Session - a class containing "session state" such as the transaction- and -- instance ID's. -- -- o Helper - The helper class that serves as the main interface between -- scripts and the library. -- -- @author Patrik Karlsson <patrik@cqure.net> -- local ipOps = require "ipOps" local math = require "math" local nmap = require "nmap" local os = require "os" local stdnse = require "stdnse" local string = require "string" local table = require "table" local rand = require "rand" _ENV = stdnse.module("vuzedht", stdnse.seeall) Request = { Actions = { ACTION_PING = 1024, FIND_NODE = 1028, }, -- The request Header class shared by all Requests classes Header = { -- Creates a new Header instance -- @param action number containing the request action -- @param session instance of Session -- @return o new instance of Header new = function(self, action, session) local o = { conn_id = string.char(255) .. rand.random_string(7), -- we need to handle this one like this, due to a bug in nsedoc -- it used to be action = action, but that breaks parsing ["action"] = action, trans_id = session:getTransactionId(), proto_version = 0x32, vendor_id = 0, network_id = 0, local_proto_version = 0x32, address = session:getAddress(), port = session:getPort(), instance_id = session:getInstanceId(), time = os.time(), } setmetatable(o, self) self.__index = self return o end, -- Converts the header to a string __tostring = function(self) local lhost = ipOps.ip_to_str(self.address) return self.conn_id .. string.pack( ">I4 I4 BB I4 B s1 I2 I4 I8 ", self.action, self.trans_id, self.proto_version, self.vendor_id, self.network_id, self.local_proto_version, lhost, self.port, self.instance_id, self.time ) end, }, -- The PING Request class Ping = { -- Creates a new Ping instance -- @param session instance of Session -- @return o new instance of Ping new = function(self, session) local o = { header = Request.Header:new(Request.Actions.ACTION_PING, session) } setmetatable(o, self) self.__index = self return o end, -- Converts a Ping Request to a string __tostring = function(self) return tostring(self.header) end, }, -- The FIND_NODES Request class FindNode = { -- Creates a new FindNode instance -- @param session instance of Session -- @return o new instance of FindNode new = function(self, session) local o = { header = Request.Header:new(Request.Actions.FIND_NODE, session), node_id = '\xA7' .. rand.random_string(19), status = 0xFFFFFFFF, dht_size = 0, } setmetatable(o, self) self.__index = self return o end, -- Converts a FindNode Request to a string __tostring = function(self) local data = tostring(self.header) .. string.pack(">s1 I4I4", self.node_id, self.status, self.dht_size) return data end, } } Response = { -- A table of currently supported Actions (Responses) -- It's used in the fromString method to determine which class to create. Actions = { ACTION_PING = 1025, FIND_NODE = 1029, ERROR = 1032, }, -- Creates an address record based on received data -- @param data containing an address record [C][I|H][S] where -- [C] is the length of the address (4 or 16) -- [I|H] is the binary address -- [S] is the port number as a short -- @return o Address instance on success, nil on failure Address = { new = function(self, data) local o = { data = data } setmetatable(o, self) self.__index = self if ( o:parse() ) then return o end end, -- Parses the received data -- @return true on success, false on failure parse = function(self) local ip, err ip, self.port = string.unpack(">s1 I2", self.data) self.ip, err = ipOps.str_to_ip(ip) if not self.ip then stdnse.debug1("Unknown address type (length: %d)", #ip) return false, "Unknown address type" end return true end }, -- The response header, present in all packets Header = { Vendors = { [0] = "Azureus", [1] = "ShareNet", [255] = "Unknown", -- to be honest, we report all except 0 and 1 as unknown }, Networks = { [0] = "Stable", [1] = "CVS" }, -- Creates a new Header instance -- @param data string containing the received data -- @return o instance of Header new = function(self, data) local o = { data = data } setmetatable(o, self) self.__index = self o:parse() return o end, -- parses the header parse = function(self) local pos self.action, self.trans_id, self.conn_id, self.proto_version, self.vendor_id, self.network_id, self.instance_id, pos = string.unpack(">I4 I4 c8 BB I4 I4 ", self.data) end, -- Converts the header to a suitable string representation __tostring = function(self) local result = {} table.insert(result, ("Transaction id: %d"):format(self.trans_id)) table.insert(result, ("Connection id: 0x%s"):format(stdnse.tohex(self.conn_id))) table.insert(result, ("Protocol version: %d"):format(self.proto_version)) table.insert(result, ("Vendor id: %s (%d)"):format( Response.Header.Vendors[self.vendor_id] or "Unknown", self.vendor_id)) table.insert(result, ("Network id: %s (%d)"):format( Response.Header.Networks[self.network_id] or "Unknown", self.network_id)) table.insert(result, ("Instance id: %d"):format(self.instance_id)) return stdnse.format_output(true, result) end, }, -- The PING response PING = { -- Creates a new instance of PING -- @param data string containing the received data -- @return o new PING instance new = function(self, data) local o = { header = Response.Header:new(data) } setmetatable(o, self) self.__index = self return o end, -- Creates a new PING instance based on received data -- @param data string containing received data -- @return status true on success, false on failure -- @return new instance of PING on success, error message on failure fromString = function(data) local ping = Response.PING:new(data) if ( ping ) then return true, ping end return false, "Failed to parse PING response" end, -- Converts the PING response to a response suitable for script output -- @return result formatted script output __tostring = function(self) return tostring(self.header) end, }, -- A class to process the response from a FIND_NODE query FIND_NODE = { -- Creates a new FIND_NODE instance -- @param data string containing the received data -- @return o new instance of FIND_NODE new = function(self, data) local o = { header = Response.Header:new(data), data = data:sub(27) } setmetatable(o, self) self.__index = self o:parse() return o end, -- Parses the FIND_NODE response parse = function(self) local pos self.spoof_id, self.node_type, self.dht_size, self.network_coords, pos = string.unpack(">I4 I4 I4 c20", self.data) local contact_count contact_count, pos = string.unpack("B", self.data, pos) self.contacts = {} for i=1, contact_count do local contact = {} local address contact.type, contact.proto_version, address, contact.port, pos = string.unpack( ">BBs1I2", self.data, pos) contact.address = ipOps.str_to_ip(address) table.insert(self.contacts, contact) end end, -- Creates a new instance of FIND_NODE based on received data -- @param data string containing received data -- @return status true on success, false on failure -- @return new instance of FIND_NODE on success, error message on failure fromString = function(data) local find = Response.FIND_NODE:new(data) if ( find.header.proto_version < 13 ) then stdnse.debug1("ERROR: Unsupported version %d", find.header.proto_version) return false end return true, find end, -- Convert the FIND_NODE response to formatted string data, suitable -- for script output. -- @return string with formatted FIND_NODE data __tostring = function(self) if ( not(self.contacts) ) then return "" end local result = {} for _, contact in ipairs(self.contacts) do local address = contact.address if address:find(":") then address = ("[%s]"):format(address) end table.insert(result, ("%s:%d"):format(address, contact.port)) end return stdnse.format_output(true, result) end }, -- The ERROR action ERROR = { -- Creates a new ERROR instance based on received socket data -- @return o new ERROR instance on success, nil on failure new = function(self, data) local o = { header = Response.Header:new(data), data = data:sub(27) } setmetatable(o, self) self.__index = self if ( o:parse() ) then return o end end, -- parses the received data and attempts to create an ERROR response -- @return true on success, false on failure parse = function(self) local err_type, pos = string.unpack(">I4", self.data) if ( 1 == err_type ) then self.addr = Response.Address:new(self.data:sub(pos)) return true end return false end, -- creates a new ERROR instance based on the received data -- @return true on success, false on failure fromString = function(data) local err = Response.ERROR:new(data) if ( err ) then return true, err end return false end, -- Converts the ERROR action to a formatted response -- @return string containing the formatted response __tostring = function(self) return ("Wrong address, expected: %s"):format(self.addr.ip) end, }, -- creates a suitable Response class based on the Action received -- @return true on success, false on failure -- @return response instance of suitable Response class on success, -- err string error message if status is false fromString = function(data) local action, pos = string.unpack(">I4", data) if ( action == Response.Actions.ACTION_PING ) then return Response.PING.fromString(data) elseif ( action == Response.Actions.FIND_NODE ) then return Response.FIND_NODE.fromString(data) elseif ( action == Response.Actions.ERROR ) then return Response.ERROR.fromString(data) end stdnse.debug1("ERROR: Unknown response received from server") return false, "Failed to parse response" end, } -- The Session Session = { -- Creates a new Session instance to keep track on some of the protocol -- stuff, such as transaction- and instance- identities. -- @param address the local address to pass in the requests to the server -- this could be either the local address or the IP of the router -- depending on if NAT is used or not. -- @param port the local port to pass in the requests to the server -- @return o new instance of Session new = function(self, address, port) local o = { trans_id = math.random(12345678), instance_id = math.random(12345678), address = address, port = port, } setmetatable(o, self) self.__index = self return o end, -- Gets the next transaction ID -- @return trans_id number getTransactionId = function(self) self.trans_id = self.trans_id + 1 return self.trans_id end, -- Gets the next instance ID -- @return instance_id number getInstanceId = function(self) self.instance_id = self.instance_id + 1 return self.instance_id end, -- Gets the stored local address used to create the session -- @return string containing the IP passed to the session getAddress = function(self) return self.address end, -- Get the stored local port used to create the session -- @return number containing the local port getPort = function(self) return self.port end } -- The Helper class, used as main interface between the scripts and the library Helper = { -- Creates a new instance of the Helper class -- @param host table as passed to the action method -- @param port table as passed to the action method -- @param lhost [optional] used if an alternate local address is to be -- passed in the requests to the remote node (ie. NAT is in play). -- @param lport [optional] used if an alternate port is to be passed in -- the requests to the remote node. -- @return o new instance of Helper new = function(self, host, port, lhost, lport) local o = { host = host, port = port, lhost = lhost, lport = lport } setmetatable(o, self) self.__index = self return o end, -- Connects to the remote Vuze Node -- @return true on success, false on failure -- @return err string error message if status is false connect = function(self) local lhost = tonumber(self.lhost or stdnse.get_script_args('vuzedht.lhost')) local lport = tonumber(self.lport or stdnse.get_script_args('vuzedht.lport')) self.socket = nmap.new_socket() if ( lport ) then self.socket:bind(nil, lport) end local status, err = self.socket:connect(self.host, self.port) if ( not(status) ) then return false, "Failed to connect to server" end if ( not(lhost) or not(lport) ) then local status, lh, lp, _, _ = self.socket:get_info() if ( not(status) ) then return false, "Failed to get socket information" end lhost = lhost or lh lport = lport or lp end self.session = Session:new(lhost, lport) return true end, -- Sends a Vuze PING request to the server and parses the response -- @return status true on success, false on failure -- @return response PING response instance on success, -- err string containing the error message on failure ping = function(self) local ping = Request.Ping:new(self.session) local status, err = self.socket:send(tostring(ping)) if ( not(status) ) then return false, "Failed to send PING request to server" end local data status, data = self.socket:receive() if ( not(status) ) then return false, "Failed to receive PING response from server" end local response status, response = Response.fromString(data) if ( not(status) ) then return false, "Failed to parse PING response from server" end return true, response end, -- Requests a list of known nodes by sending the FIND_NODES request -- to the remote node and parses the response. -- @return status true on success, false on failure -- @return response FIND_NODE response instance on success -- err string containing the error message on failure findNodes = function(self) local find = Request.FindNode:new(self.session) local status, err = self.socket:send(tostring(find)) if ( not(status) ) then return false, "Failed to send FIND_NODE request to server" end local data status, data = self.socket:receive() local response status, response = Response.fromString(data) if ( not(status) ) then return false, "Failed to parse FIND_NODE response from server" end return true, response end, -- Closes the socket connect to the remote node close = function(self) self.socket:close() end, } return _ENV;