This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef2015jun ± rake integration | |
Starting BeEF (wait a few seconds)..................... | |
export DISPLAY=:0; cd test/integration;ruby -W0 ts_integration.rb | |
Loaded suite BeEF Integration Test Suite | |
Started | |
................{"success"=>"true", "command_id"=>"4"} | |
test_get_all_hosts::::: | |
{"count"=>6, "hosts"=>"[{\"id\":1,\"hooked_browser_id\":\"L7wFuqeoZQaBd9sptDFX40ghfkMbv65ChdYaJ3cjgGaNPuBay6Yo4i9chrZniZMi1j1aCJr1uO4JScaY\",\"ip\":\"127.0.0.1\",\"hostname\":\"localhost\",\"type\":null,\"os\":\"Intel Mac OS X 10.10\",\"mac\":null,\"cid\":\"init\"},{\"id\":2,\"hooked_browser_id\":\"FxaGyuPindoOjBylLikiZOPi1YpIFpw78WAObk1ZVXQGigr61wtuGsldYvBSqFbgGndF0MsEGA9yKGwV\",\"ip\":\"127.0.0.1\",\"hostname\":\"localhost\",\"type\":null,\"os\":\"Intel Mac OS X 10.10\",\"mac\":null,\"cid\":\"init\"},{\"id\":3,\"hooked_browser_id\":\"yqWh8a4ZHrOZ8yLNhgqHGjwFctVd4S88zHKmbXItmqmFua9IGXaXmYn7W8VZTHK2BdFgNz8ldNm59uEt\",\"ip\":\"127.0.0.1\",\"hostname\":\"localhost\",\"type\":null,\"os\":\"Intel Mac OS X 10.10\",\"mac\":null,\"ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef2015jun ± rake integration | |
Starting BeEF (wait a few seconds)..................... | |
export DISPLAY=:0; cd test/integration;ruby -W0 ts_integration.rb | |
Loaded suite BeEF Integration Test Suite | |
Started | |
.................F | |
=============================================================================================================================================================================================================================== | |
Failure: | |
<0> expected to be != to | |
<0>. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_1_dns_spoof | |
url = 'http://beefproject.com' | |
mount = '/beefproject' | |
dns_spoof = true | |
json = {:url => url, :mount => mount, :dns_spoof => dns_spoof}.to_json | |
domain = url.gsub(%r{^http://}, '') | |
response = RestClient.post("#{RESTAPI_SENG}/clone_page?token=#{@@token}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef3 ± rake integration | |
Starting BeEF (wait a few seconds)..................... | |
export DISPLAY=:0; cd test/integration;ruby -W0 ts_integration.rb | |
Loaded suite BeEF Integration Test Suite | |
Started | |
................F | |
=================================================================================================================================================================================================================================================================================== | |
Failure: | |
</ | |
^beefproject.com\.\t+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef3 ± rake integration | |
Starting BeEF (wait a few seconds)..................... | |
export DISPLAY=:0; cd test/integration;ruby -W0 ts_integration.rb | |
Loaded suite BeEF Integration Test Suite | |
Started | |
...... | |
Finished in 22.123181 seconds. | |
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
6 tests, 33 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef2015jun ± bundle list | |
Gems included by the bundle: | |
* addressable (2.3.8) | |
* ansi (1.5.0) | |
* bundler (1.10.4) | |
* chunky_png (1.3.4) | |
* daemons (1.2.2) | |
* data_objects (0.10.16) | |
* dm-core (1.2.1) | |
* dm-do-adapter (1.2.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef2015jun ± rake integration | |
Starting BeEF (wait a few seconds)..................... | |
export DISPLAY=:0; cd test/integration;ruby -W0 ts_integration.rb | |
Loaded suite BeEF Integration Test Suite | |
Started | |
.E | |
=================================================================================================================================================================================================================================================================================== | |
Error: test_2_restful_hooks(TC_DebugModules): NoMethodError: undefined method `[]' for nil:NilClass | |
/Users/xian/beef/beef2015jun/test/integration/tc_debug_modules.rb:49:in `test_2_restful_hooks' | |
46: assert_equal 200, response.code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/unit/core/filter/tc_base.rb b/test/unit/core/filter/tc_base.rb | |
index 3eb1e9d..e47fd8f 100644 | |
--- a/test/unit/core/filter/tc_base.rb | |
+++ b/test/unit/core/filter/tc_base.rb | |
@@ -130,9 +130,11 @@ class TC_Filter < Test::Unit::TestCase | |
assert((BeEF::Filters::has_non_printable_char?("\x00")), '0x00 string') | |
assert((BeEF::Filters::has_non_printable_char?("\x01")), '0x01 string') | |
assert((BeEF::Filters::has_non_printable_char?("\x02")), '0x02 string') | |
- assert((BeEF::Filters::has_non_printable_char?("\xF0")), '0xFE string') | |
- assert((BeEF::Filters::has_non_printable_char?("\xFE")), '0xFE string') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/beef/beef2015jun ± git diff core/filters/base.rb | |
diff --git a/core/filters/base.rb b/core/filters/base.rb | |
index 33ee772..9bf65df 100644 | |
--- a/core/filters/base.rb | |
+++ b/core/filters/base.rb | |
@@ -22,7 +22,7 @@ module Filters | |
# @return [Boolean] Whether or not the only characters in str are specified in chars | |
def self.only?(chars, str) | |
regex = Regexp.new('[^' + chars + ']') | |
- regex.match(str).nil? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loaded suite BeEF Unit Test Suite | |
Started | |
E | |
=============================================================================== | |
Error: test_alphanums_only(TC_Filter): ArgumentError: invalid byte sequence in UTF-8 | |
/Users/xian/beef/beef2015jun/core/filters/base.rb:25:in `match' | |
/Users/xian/beef/beef2015jun/core/filters/base.rb:25:in `only?' | |
/Users/xian/beef/beef2015jun/core/filters/base.rb:99:in `alphanums_only?' | |
/Users/xian/beef/beef2015jun/test/unit/core/filter/tc_base.rb:265:in `test_alphanums_only' | |
262: assert((not BeEF::Filters::alphanums_only?("\n")), '\\n string') |