Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
ruby-net-http-digest-auth /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
auth_server.rb
960
B
-rw-r--r--
net_http_example.rb
566
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : net_http_example.rb
require 'uri' require 'net/http' require 'net/http/digest_auth' uri = URI.parse 'http://localhost:8000/' uri.user = 'username' uri.password = 'password' h = Net::HTTP.new uri.host, uri.port h.set_debug_output $stderr req = Net::HTTP::Get.new uri.request_uri res = h.request req digest_auth = Net::HTTP::DigestAuth.new auth = digest_auth.auth_header uri, res['www-authenticate'], 'GET' req = Net::HTTP::Get.new uri.request_uri req.add_field 'Authorization', auth res = h.request req puts puts "passed" if res.code == '200' puts "failed" if res.code != '200'
Close