Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.130.122
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
elinks-data /
examples /
lua /
[ HOME SHELL ]
Name
Size
Permission
Action
babelfish.lua
1.46
KB
-rw-r--r--
bm-to-elinks-bookmarks.lua
704
B
-rw-r--r--
bm.lua
8.54
KB
-rw-r--r--
config.lua
2.44
KB
-rw-r--r--
elinks-remote
719
B
-rwxr-xr-x
highlight.lua
637
B
-rw-r--r--
hooks.lua
18.32
KB
-rw-r--r--
hooks.lua.in
18.32
KB
-rw-r--r--
md5check.lua
1.47
KB
-rw-r--r--
remote.lua
1.15
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : md5check.lua
-- Check MD5 sums of download files automagically (it expects them in -- downloadedfile.txt). ---------------------------------------------------------------------- -- Installation ---------------------------------------------------------------------- -- -- 1. Put this into your hooks.lua. Alternatively you can put -- this in a separate file and `dofile' it. -- -- 2. Edit your `console_hook_functions' table in hooks.lua. e.g. -- -- console_hook_functions = { -- ... -- md5 = md5, -- ... -- } -- -- 3. Edit the second last line of this file to point to your -- download directory. Sorry, but ELinks can't get this -- information automatically (yet?). function md5sum_check(download_dir) local results = {} string.gsub(current_document(), "([a-z%d]+) ([^\n]+)\n", function (sum, filename) -- lua regexps don't seem to be able to do this if string.len(sum) ~= 32 then return end local fn = download_dir.."/"..filename if file_exists(fn) then local localsum = string.gsub(pipe_read("md5sum "..fn), "^([a-z%d]+).*$", "%1") table.insert(results, filename.. " -- ".. ((sum == localsum) and "ok\n" or "MISMATCH!\n")) end end) local tmp = tmpname()..'.txt' writeto(tmp) results.n = nil for i,v in results do write(v) end writeto() table.insert(tmp_files, tmp) return 'goto_url', tmp end function md5() -- Edit this to match your download directory. return md5sum_check(home_dir .. "/download") end
Close