zinduolis
95793433fa
Update copyright year to 2026
2025-12-26 19:18:05 +10:00
zinduolis
101020ffa0
Update copyright in rb, js and jsdocs
2024-12-25 11:40:55 +10:00
Stephen
52abaa32f2
fixed @server_started file init
2024-03-24 16:59:38 +10:00
Stephen
8e67dab667
set dns logger level to ERROR only
2024-03-22 10:48:33 +10:00
Stephen
abdd89eacc
stop multiple dns servers from starting and add a stop function
2024-03-22 10:32:31 +10:00
Stephen
747ddb5387
Updated http://beefproject.com to https://beefproject.com
2023-12-31 14:18:50 +10:00
jcrew99
3a486c7626
Updated Copyright
2023-12-26 22:32:31 -05:00
jcrew99
486a9bb329
Update copyright 2023 ( #2675 )
...
* updated copyright
* reverted gemfile lock changes
2022-12-31 15:36:07 +10:00
Brendan Coles
aa7a6f9e64
Extensions: Resolve many Rubocop violations
2022-01-22 11:16:12 +00:00
wheatley
f33e2698a0
MAINTAINABILITY: 2257 update copyright 2022 ( #2259 )
...
* 2257 updated copyright date
2021-12-31 09:48:08 +10:00
J
4ec6ecee27
updated all of the copyright information
2021-01-11 04:48:56 +10:00
Haoxi Tan
f5de5eb7c0
updated dns extension to use async-dns instead of old rubydns
2020-01-10 09:43:45 +10:00
beep
470b3483d0
Update copyright information
2020-01-01 18:47:08 -08:00
Ben Passmore
ea9c281804
Updated dns for AR
2019-11-30 15:17:11 +10:00
Ben Passmore
9f1e8f5e8d
Updated copyright
2019-01-01 11:57:28 +10:00
Wade Alcorn
fca5279f17
Updated Copyright dates
2018-01-04 09:12:47 +10:00
Brendan Coles
275153be38
Remove todo note
2017-04-20 19:56:31 +00:00
Wade Alcorn
91cc7ed873
Updated Copyright information
2016-12-29 15:50:13 +10:00
Wade Alcorn
ce01d9fa46
updated copyright year
2015-12-30 08:11:57 +10:00
Brendan Coles
f17ea36ca3
Rescue DNS server port unavailable - Fix #1166
2015-09-13 16:24:18 +00:00
Wade Alcorn
2fbca61368
Updated copyright dates
2014-12-30 07:44:58 +10:00
antisnatchor
d1688395ae
#970 Added string to DNS requests to differentiate between normal and data-extrusion DNS requests
2014-06-29 13:04:51 +02:00
antisnatchor
fb0cd7a195
#970 started working on client-to-server DNS channel.
2014-06-28 15:23:50 +02:00
soh_cah_toa
3b3d7fe95e
Moved Thread/EventMachine creation inside of #run.
...
This cleans up the API a bit by removing the requirement of placing #run
inside a Thread.new {EventMachine.next_tick {}} block. That should not
be the caller's responsibility.
2014-04-25 13:14:43 -04:00
soh_cah_toa
9b3dfacce1
Added support for upstream nameservers.
...
Previously, upstream nameservers were configured by default even if the
config file did not specify them. Now upstream nameservers are only
used if they are specified. If none are given, then NXDOMAIN is
returned for unresolvable requests.
2014-04-25 13:06:33 -04:00
soh_cah_toa
2e318030da
Fixed typo in debug message for #process.
2014-04-25 10:09:38 -04:00
soh_cah_toa
32db367ada
Refactored ID filter checks into #is_valid_id?.
...
Added call to #remove_rule! as well.
2014-04-24 23:28:11 -04:00
soh_cah_toa
94fc2805d1
Added ID filter checks to #get_rule.
...
This is ensures that ID validation occurs when using either the Ruby API
or the RESTful API. Previously, validation was only done for the
RESTful API.
2014-04-24 16:36:44 -04:00
soh_cah_toa
53a54de5fe
Added @database to Dns::Server as a model reference.
2014-04-23 16:36:16 -04:00
soh_cah_toa
3029d3cea8
Implemented #process method that handles requests.
...
The DNS server now searches for matching rules and sends its response
when handling incoming requests. However, all rules are still assigned
the same callback for the moment.
2014-04-23 13:28:34 -04:00
soh_cah_toa
0dd9c193ec
Appended ! to #remove_rule and #remove_ruleset.
...
Adhering to the Ruby convention, this indicates that these methods
mutate the receiver and, therefore, should be considered dangerous.
2014-04-23 12:53:41 -04:00
soh_cah_toa
2303851498
Implemented #remove_ruleset method.
2014-04-23 12:50:42 -04:00
soh_cah_toa
56c686de64
Implemented #get_ruleset method.
...
Also refactored #get_rule to use new #to_hash helper method since
2014-04-23 12:42:39 -04:00
soh_cah_toa
ed986e4ed5
Implemented #remove_rule method.
2014-04-23 12:07:59 -04:00
soh_cah_toa
b345da0203
Implemented #get_rule method.
2014-04-23 12:00:23 -04:00
soh_cah_toa
861d66207d
Implemented new Rule model and #add_rule method.
2014-04-23 11:27:49 -04:00
soh_cah_toa
7386a7708b
Changed Dns::Server to use RubyDNS 0.7.x API.
...
At this point, it is just a prototype that resolves any request to
1.1.1.1.
2014-04-23 11:14:35 -04:00
antisnatchor
8f4f51874d
Fixed issues with the DNS server RESTful API. Now it works.
2014-03-06 17:11:27 +00:00
bcoles
3494542b54
Make upstream DNS server configurable
2014-03-04 00:56:41 +10:30
antisnatchor
ec9cf4d460
Manually merged DNS extension code (pull request 967 from @soh-cah-toa)
2014-03-02 12:56:33 +00:00
soh_cah_toa
b2aed14234
Added regex support to #add_rule (tests included).
...
Due to strange behavior in Sourcify, the /.../ literal syntax cannot
be used as a parameter; only %r{} or Regexp::new. There is a note
for this in the documentation for #add_rule.
2013-07-22 22:37:39 -04:00
soh_cah_toa
6a62cf9eaa
Added public attributes 'address' and 'port' to Dns::Server.
...
This removes the need to search config.yaml for the address:port.
Also included unit tests.
2013-07-19 22:33:40 -04:00
soh_cah_toa
95d0ddbe87
Added new method #remove_ruleset that clears the entire DNS ruleset.
...
Included unit tests as well.
2013-07-17 18:16:46 -04:00
soh_cah_toa
ebbadba6dd
Improved #run_server to check if EM reactor is already running.
...
Also moved Thread creation to inside #run_server instead of
forcing caller to do so.
2013-07-14 23:27:21 -04:00
soh_cah_toa
89a5d6fdbb
Modified #remove_rule to return a boolean value.
...
This is will soon allow the DELETE handler to indicate success
or failure.
2013-06-05 18:20:48 -04:00
soh_cah_toa
2f5133e11a
Changed GET handlers to return recently fixed rule data.
...
Also wrapped all handlers in a begin/end block that catches
internal StandardError exceptions.
2013-06-05 15:56:33 -04:00
soh_cah_toa
44622345d0
s/DNS/Dns/g since that is the BeEF style convention.
2013-06-03 17:55:58 -04:00
soh_cah_toa
0f8221918b
Improved coding style (a la ruby-style-guide and rubocop).
...
Because I'm too tired to start testing and need a little victory. ;)
2013-06-03 00:11:41 -04:00
soh_cah_toa
27b1b530ef
Implemented POST handler for /api/dns/rule which adds a new rule.
...
A host of other changes got roped into this as well. #match now
silently handles blocks passed as a String in order to handle
the 'block' JSON parameter. This is because sourcify doesn't
work with eval'd data.
Rule id's are no longer incremental integers. It's now a 7-character
"token" generated from #secure_token and is managed by the RubyDNS
module.
2013-05-26 22:44:11 -04:00
soh_cah_toa
c6f38324d1
Refactored #get_ruleset to be part of RubyDNS.
...
All database logic should be inside RubyDNS since BeEF's DNS class
is mostly just a wrapper around it.
2013-05-18 21:00:22 -04:00