Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/extensions/s2c_dns_tunnel/httpd.rb
1154 views
1
module BeEF
2
module Extension
3
module ServerClientDnsTunnel
4
class Httpd < Sinatra::Base
5
def initialize(domain)
6
super()
7
@domain = domain
8
end
9
10
get '/map' do
11
if request.host.match("^_ldap\._tcp\.[0-9a-z\-]+\.domains\._msdcs\.#{@domain}$")
12
path = File.dirname(__FILE__)
13
send_file File.join(path, 'pixel.jpg')
14
end
15
end
16
end
17
end
18
end
19
end
20
21
require 'sinatra/base'
22
23