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
c8c9e1e139
Reimplemented POST handler to avoid unsafe use of #eval.
...
Now the desired response is passed an array. Each RR type is handled
specially to craft the necessary response.
2013-06-02 22:40:58 -04:00
soh_cah_toa
998980b566
Fixed case-statement in #match that prevented adding rules locally.
2013-06-02 22:23:27 -04:00
soh_cah_toa
7f4562945a
Added new InvalidJsonError class for handling errors in JSON input.
...
This is better practice than just (ab)using StandardError.
2013-05-26 23:46:37 -04:00
soh_cah_toa
38284d5eaa
Implemented DELETE handler for removing DNS rules.
2013-05-26 23:26:58 -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
Michele Orru
71f04d82f5
Merge pull request #849 from geefunkmasterpro/master
...
Enhancements to Mass Mailer
2013-05-26 04:58:57 -07:00
bcoles
f90ad4a261
Add detection for WebRTC support
2013-05-24 17:06:36 +09:30
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
soh_cah_toa
054767c898
Added RESTful API route for /api/dns/rule/:id.
...
This will return a single rule given its unique id.
2013-05-17 23:02:40 -04:00
soh_cah_toa
702595c04c
Improved a lot of documentation for BeEF::Extension::DNS::DNS.
2013-05-17 19:12:05 -04:00
soh_cah_toa
c70037f9f4
Began adding support for RESTful API beginning with /api/dns/rules.
2013-05-17 18:25:22 -04:00
soh_cah_toa
18a78b57b2
Fixed load_rules() to rebuild 'pattern' and 'type' as an array.
...
This was forgotten in the previous commit.
2013-05-16 23:20:04 -04:00
soh_cah_toa
24f7e5b6cd
Separated 'pattern' and 'type' properties in DNS model.
...
This will expose the resource type to the RESTful API (coming soon).
2013-05-16 23:14:29 -04:00
soh_cah_toa
6d2a771084
Changed model name to BeEF::Core::Models::DNS::Rule.
...
This is more descriptive and follows the singular name convention.
2013-05-15 22:29:42 -04:00
soh_cah_toa
271b2b8e85
Removed RubyDNS::Server#rules attribute accessor since it's unused.
2013-05-15 22:19:58 -04:00
soh_cah_toa
35f25bbeb9
Removed load_rules() and parse_type() since they're unused.
2013-05-15 22:18:16 -04:00
soh_cah_toa
992e95f0d7
Added database support when adding/removing rules.
...
Needed to add 'sourcify' as a dependency in order to store code blocks
in the database.
2013-05-15 22:12:37 -04:00
soh_cah_toa
1f7e748afc
Removed parse_response() since it's no longer needed.
2013-05-14 19:23:08 -04:00
soh_cah_toa
ddcb040c40
Marked add_rule() and remove_rule() as critical sections.
...
Mutual exclusion is imperative here since other modules/extenions may
be simultaneously adding/removing rules, thus putting the value of
@next_id at risk of becoming inconsistent.
2013-05-14 19:12:23 -04:00
soh_cah_toa
e563a8946b
Began implementing new method of adding rules without periodic timer.
...
Also added improved documentation for add_rule() and remove_rule().
2013-05-14 18:47:51 -04:00
soh_cah_toa
86e01b1327
Documented run_server() and add_rule().
2013-05-10 23:19:58 -04:00
soh_cah_toa
d622bf3e5e
New DNS entries can now be added dynamically without a server restart.
...
Database is checked every five seconds and adds new rules if there
were any changes.
2013-05-10 23:01:10 -04:00
soh_cah_toa
c7eb1c7fc9
Added DNS database model to load resource records from.
...
Now modules/extensions can dynamically add new RR's. However, changes
don't take effect until BeEF restarts (fix incoming).
2013-05-08 00:03:08 -04:00
soh_cah_toa
d24a00a639
Overrode RubyDNS::Transaction.respond! to use debug logger instead.
...
Now all RubyDNS output is properly disabled unless --verbose is given.
2013-05-07 23:59:27 -04:00
soh_cah_toa
c7981f3c0d
Demoted UPSTREAM from constant to local variable. Minimizes scope.
2013-05-07 22:40:26 -04:00
soh_cah_toa
281cde1cbb
Added new definition for Logger#warn.
2013-05-07 22:06:13 -04:00
soh_cah_toa
493ed5182b
Made BeEF::Extension::DNS::DNS into a singleton object.
...
This ensures that all modules/extensions that add new RR's
refer to a single server instance.
2013-05-07 21:56:11 -04:00
soh_cah_toa
ceb55ef3df
Resolved DNS thread issue using EM::next_tick() instead of sleep().
2013-05-06 13:09:44 -04:00
soh_cah_toa
cbd815c519
Changed output format for RubyDNS to be "BeEF-compliant".
...
RubyDNS's logger now uses BeEF's print-related functions. Debug
messages regarding queries can be enabled using --verbose.
2013-05-05 22:19:54 -04:00
soh_cah_toa
d22373d828
Fixed thread issue that occasionally caused BeEF to stop immediately.
...
While using sleep() to fix thread complications is never a great
solution, it gets the job done for now.
2013-05-05 21:14:30 -04:00
soh_cah_toa
fdd1048f1a
Implemented basic nameserver and configured it to run on BeEF startup.
...
It's worth noting that RubyDNS currently displays a lot of messy
output. This needs to be addressed before moving any further.
2013-05-03 22:37:42 -04:00
soh_cah_toa
cc4b34ed8d
Started basic DNS extension. Currently does nothing.
2013-05-03 21:25:53 -04:00
bcoles
15c7e64e93
Fix bug with module image result rendering in admin UI
2013-05-01 17:47:00 +09:30
Christian Frichot
6e0f7a266e
Issue #883 . Admin UI will inline display images from the HTML5 webcam module now
2013-04-15 19:28:52 +08:00
Christian Frichot
6e9db43463
Fixes issue #881 . Console fix for reviewing previous responses
2013-04-15 19:18:07 +08:00
bcoles
a172362452
Part of issue #862 - Add beef.debug() for client-side debugging
...
Add `beef.debug()` function - wraps `console.log()`
Debug messages are suppressed for browsers which don't support `console.log()`
Update './core/*' to use `beef.debug()` instead of `console.log()`
Update './modules/*' to use `beef.debug()` instead of `console.log()`
Update './extensions/*' to use `beef.debug()` instead of `console.log()`
Add 'modules/debug/test_beef_debug/' module
2013-04-15 16:49:01 +09:30
Christian Frichot
1721d3c263
Fixes issue #879 . Console enhancements.
2013-04-13 14:48:40 +08:00
Christian Frichot
d855100ac9
Fixes #878 and #758 .
2013-04-08 21:52:50 +08:00
Christian Frichot
389f27360d
Slight spelling mistake fix up in the Welcome tab of the Admin UI
2013-04-01 19:51:16 +08:00
Christian Frichot
e8eda3ef99
Minor enhancements to the Admin UI. #864
2013-04-01 11:07:50 +08:00
Christian Frichot
22cd68101d
Added Bookmarklet to the Welcome Tab in the Admin UI. #863
2013-03-30 17:31:36 +08:00
Christian Frichot
26933fe146
Fix for #826 . Plus - logs also include a column for which browser an event is associated with
2013-03-29 13:33:09 +08:00
bcoles
fb26ef5f71
Add beef.browser.hookChildFrames()
...
BeEF now automatically hooks all same-domain child (i)frames
Allows logging of child frame events - fixes issue #493
2013-03-18 00:37:15 +10:30
bcoles
c98d9a4300
Manually merged Windows Media Player detection from @gcattani
...
Fix issue #833
Fix issue #847
2013-03-17 03:30:12 +10:30
Javier Marcos
657aac9dcd
Detection added for the Foxit Reader plugin, fixes #829
2013-03-11 00:19:19 +00:00
geefunkmasterpro
66d0e3535b
Added fromaddr to mass mailer JSON interface so emails can be sent from
...
any address without restart.
Removed fromaddr entry from config.yaml.
2013-02-27 23:29:08 +11:00
geefunkmasterpro
e79372f8ac
Added auth field to config so that emails are harder to track to sender
...
Added error handling to identify:
- errors creating the mail headers
- errors processing JSON input
- errors in the mailer configuration
2013-02-27 21:33:48 +11:00
bcoles
8f1a26ffa9
Add "Hardware" to console browser details
2013-02-23 15:27:29 +10:30